-
Notifications
You must be signed in to change notification settings - Fork 47
feat: enable R8 minification and upload ReTrace mapping files #91
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -133,4 +133,109 @@ | |||
| -keep,allowobfuscation,allowshrinking class io.reactivex.rxjava3.core.Flowable | ||||
| -keep,allowobfuscation,allowshrinking class io.reactivex.rxjava3.core.Maybe | ||||
| -keep,allowobfuscation,allowshrinking class io.reactivex.rxjava3.core.Observable | ||||
| -keep,allowobfuscation,allowshrinking class io.reactivex.rxjava3.core.Single | ||||
| -keep,allowobfuscation,allowshrinking class io.reactivex.rxjava3.core.Single | ||||
|
|
||||
| #----------------- Additional Rules for V2er App ------------------------ | ||||
|
|
||||
| # Keep RxJava2 (current version used in app) | ||||
| -keep class io.reactivex.** { *; } | ||||
| -keep interface io.reactivex.** { *; } | ||||
| -dontwarn io.reactivex.** | ||||
|
|
||||
| # Dagger 2 rules | ||||
| -dontwarn com.google.errorprone.annotations.** | ||||
| -keep class dagger.** { *; } | ||||
|
||||
| -keep class dagger.** { *; } |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule is overly broad for ButterKnife. The subsequent specific rules (lines 159-165) should be sufficient to handle ButterKnife's annotation processing. Consider removing this blanket rule to allow better obfuscation of ButterKnife internals.
| -keep class butterknife.** { *; } |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule prevents all obfuscation of the Fruit library. The annotation-specific rules (lines 170-176) should be sufficient for proper functionality. Consider removing this blanket rule to allow obfuscation of non-essential Fruit classes.
| -keep class me.ghui.fruit.** { *; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These broad RxJava2 rules conflict with the existing specific RxJava3 rules (lines 134-136) and are overly permissive. The existing rules already handle RxJava properly with selective obfuscation. Consider removing these duplicate rules or being more specific about which RxJava2 classes need preservation.