Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3855: Removed Pinview thirdparty library #4041

Merged
merged 7 commits into from
Jan 12, 2022

Conversation

deepanshu731
Copy link
Contributor

Fixes #3855 removed lib from build bazel,gradle and versions.bzl

@deepanshu731
Copy link
Contributor Author

@BenHenning i have removed library from build.bazel and gradle and also from versions.bzl after that i removed dependencies from maven_install.json when i tried to repin dependencies its showing error running one into another(kind of loop)
Screenshot from 2021-12-14 11-16-07
following this i added maven_install.json attribute in workspace file and runned the command bazel run@unpinned_maven//:pin
Screenshot from 2021-12-14 11-16-26
but it shows to remove again the maven_install.json attribute and this goes in a continous loop. Can you help me out

@BenHenning
Copy link
Sponsor Member

@deepanshu731 I suggest reverting the changes to the maven_install.json file, then re-running the pin command to see if it regenerates correctly. If that doesn't work, you'll need to follow the step-by-step instructions that the error outputted in your screenshot.

@BenHenning
Copy link
Sponsor Member

Hi. As of today, some main reviewers have taken time off for the next few weeks, so it may take a little while before we can look at this PR. We appreciate your patience while some of our team members recharge. We'll be fully returning on 4 January 2021.

@oppiabot
Copy link

oppiabot bot commented Dec 24, 2021

Hi @deepanshu731, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Dec 24, 2021
@deepanshu731 deepanshu731 removed the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Dec 31, 2021
@deepanshu731
Copy link
Contributor Author

@deepanshu731 I suggest reverting the changes to the maven_install.json file, then re-running the pin command to see if it regenerates correctly. If that doesn't work, you'll need to follow the step-by-step instructions that the error outputted in your screenshot.

thanks @BenHenning maven dependencies got repinned but some CL checks are failing. can you help me out with that?

@BenHenning
Copy link
Sponsor Member

@deepanshu731 I suggest reverting the changes to the maven_install.json file, then re-running the pin command to see if it regenerates correctly. If that doesn't work, you'll need to follow the step-by-step instructions that the error outputted in your screenshot.

thanks @BenHenning maven dependencies got repinned but some CL checks are failing. can you help me out with that?

@deepanshu731 apologies for the late reply.

The Bazel failure is due to an incompatibility between the new dependency graph & the Proguard configuration. Here are the specific errors:

2021-12-31T07:04:36.1638303Z Warning: androidx.appcompat.widget.ActivityChooserView: can't find referenced method 'void saveAttributeDataForStyleable(android.content.Context,int[],android.util.AttributeSet,android.content.res.TypedArray,int,int)' in program class androidx.appcompat.widget.ActivityChooserView
2021-12-31T07:04:36.1644332Z Warning: androidx.appcompat.widget.ButtonBarLayout: can't find referenced method 'void saveAttributeDataForStyleable(android.content.Context,int[],android.util.AttributeSet,android.content.res.TypedArray,int,int)' in program class androidx.appcompat.widget.ButtonBarLayout
2021-12-31T07:04:36.1647507Z Warning: there were 2 unresolved references to program class members.
2021-12-31T07:04:36.1648331Z          Your input classes appear to be inconsistent.
2021-12-31T07:04:36.1649000Z          You may need to recompile the code.
2021-12-31T07:04:36.1650210Z          (http://proguard.sourceforge.net/manual/t

This is probably happening because removing the pinview library inadvertently downgraded appcompat (see https://github.com/oppia/oppia-android/pull/4041/files#diff-c6821e7e22305da601268ca77e90fa7b1d33be10fc8ea6746832d2c3a794d2feR14). I suggest updating appcompat in versions.bzl to 1.2.0 so that it doesn't get downgraded & see if it builds. To test locally, run:

bazel build //:oppia_android_alpha

(It'll probably take 10-15 minutes to build since it runs 3 Proguard optimization passes).

The Gradle failure seems like a flake, so after you fix the dependencies & restart CI I'd expect it to then pass.

@BenHenning BenHenning assigned deepanshu731 and unassigned BenHenning Jan 8, 2022
@deepanshu731
Copy link
Contributor Author

@deepanshu731 I suggest reverting the changes to the maven_install.json file, then re-running the pin command to see if it regenerates correctly. If that doesn't work, you'll need to follow the step-by-step instructions that the error outputted in your screenshot.

thanks @BenHenning maven dependencies got repinned but some CL checks are failing. can you help me out with that?

@deepanshu731 apologies for the late reply.

The Bazel failure is due to an incompatibility between the new dependency graph & the Proguard configuration. Here are the specific errors:

2021-12-31T07:04:36.1638303Z Warning: androidx.appcompat.widget.ActivityChooserView: can't find referenced method 'void saveAttributeDataForStyleable(android.content.Context,int[],android.util.AttributeSet,android.content.res.TypedArray,int,int)' in program class androidx.appcompat.widget.ActivityChooserView
2021-12-31T07:04:36.1644332Z Warning: androidx.appcompat.widget.ButtonBarLayout: can't find referenced method 'void saveAttributeDataForStyleable(android.content.Context,int[],android.util.AttributeSet,android.content.res.TypedArray,int,int)' in program class androidx.appcompat.widget.ButtonBarLayout
2021-12-31T07:04:36.1647507Z Warning: there were 2 unresolved references to program class members.
2021-12-31T07:04:36.1648331Z          Your input classes appear to be inconsistent.
2021-12-31T07:04:36.1649000Z          You may need to recompile the code.
2021-12-31T07:04:36.1650210Z          (http://proguard.sourceforge.net/manual/t

This is probably happening because removing the pinview library inadvertently downgraded appcompat (see https://github.com/oppia/oppia-android/pull/4041/files#diff-c6821e7e22305da601268ca77e90fa7b1d33be10fc8ea6746832d2c3a794d2feR14). I suggest updating appcompat in versions.bzl to 1.2.0 so that it doesn't get downgraded & see if it builds. To test locally, run:

bazel build //:oppia_android_alpha

(It'll probably take 10-15 minutes to build since it runs 3 Proguard optimization passes).

The Gradle failure seems like a flake, so after you fix the dependencies & restart CI I'd expect it to then pass.

thanks @BenHenning PTAL

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM @deepanshu731. Thanks again!

@BenHenning BenHenning merged commit 7a5b0bc into oppia:develop Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Pinview thirdparty library.
2 participants