-
Notifications
You must be signed in to change notification settings - Fork 48
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
Update Proguard rules #81
Conversation
- add gms rules to location to handle issues - ignore warning during compile - keep files for run time calls
cc'ing to follow @langsmith |
- move proguard rules to core instead of location - add in MockLocationEngine, color, and Lost rules
- remove mocklocationengine - remove MAS dependency
- update snapshot branch - change snapshot name
- revert test-snapshot changes
- remove lost dependency and classes
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.
Looks great, could we add
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
To the debug section of the build.gradle? this is handy for testing downstream so proguard picks up the configuration when running in debug mode
libcore/proguard-rules.pro
Outdated
-keep public class com.google.android.gms.* { public *; } | ||
-dontwarn com.google.android.gms.** | ||
-dontwarn java.awt.Color | ||
-dontwarn com.mapzen.android.lost.api** |
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.
since we are removing lost from the dependencies list, we can drop this line
libcore/proguard-rules.pro
Outdated
#-renamesourcefileattribute SourceFile | ||
-keep public class com.google.android.gms.* { public *; } | ||
-dontwarn com.google.android.gms.** | ||
-dontwarn java.awt.Color |
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.
since we are removing mapboxServices, we can drop this line
- add proguard rules to debug section - change some rules
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.
🚀
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile | ||
-keep public class com.google.android.gms.* { public *; } |
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.
Wondering if these lines are necessary 🤔
Did you see any warnings in downstream @tobrun @LukasPaczos?
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.
@Guardiola31337 If you take a look at mapbox/mapbox-gl-native#11417, there are a bunch of warnings from com.google.android.gms
package.
* Add GMS Rules - add gms rules to location to handle issues - ignore warning during compile - keep files for run time calls * Remove MAS dependency + MockLocationEngine - remove mocklocationengine - remove MAS dependency * Remove LOST - remove lost dependency and classes * Proguard rules in Debug and change rules - add proguard rules to debug section - change some rules
Add in rules to handle warnings when utilizing proguard (unable to find certain play service classes) in builds