-
Notifications
You must be signed in to change notification settings - Fork 87
Extract r8 rules based on version #511
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
Open
snazhmudinov
wants to merge
9
commits into
bazelbuild:main
from
snazhmudinov:extract-r8-rules-based-on-ver
+264
−182
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
32e17ef
Read R8 version from runfiles in proguard extractors
snazhmudinov 3958338
Pass r8_version through extractor function signatures
snazhmudinov 02afdd9
Filter JAR R8 rules by version range, fall back to legacy
snazhmudinov 391cf34
Filter AAR R8 rules by version range, fall back to proguard.txt
snazhmudinov 7b7c6b0
Handle the case, when r8_version is missing
snazhmudinov 962b5e9
Make bound checking a bit more readable
snazhmudinov 4c61322
Fix the stale comment
snazhmudinov a53a9bf
Extract rules from each jar
snazhmudinov 5e30c57
Create R8Version extractor; read the R8 versionf from jar's Version.j...
snazhmudinov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
tools/android/R8Version.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package tools.android; | ||
|
|
||
| public class R8Version { | ||
| public static void main(String[] args) { | ||
| System.out.println(com.android.tools.r8.Version.LABEL); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.