-
Notifications
You must be signed in to change notification settings - Fork 205
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
Specify consumer Proguard files #345
Conversation
Specifies the classes in this library which should be kept if ProGuard is enabled. See https://developer.android.com/studio/projects/android-library
What can we do to make this transition smoother? Can the Gradle plugin be changed to conditionally add the Bugsnag rules (based on the version of bugsnag-android in use or something)?
Seems ok here too. |
It should be possible to check the dependency at runtime within the gradle plugin, using something along the following lines:
If it makes sense we could grab the lowest version from the dependencySet (after de-duping etc), and only write to the ProGuard file if the version is less than 4.X.X. |
Sounds good to me 🤔 |
Tweak error message for missing source-map tool
Soft fail on Android for Unity 2017
Goal
Adds ProGuard keep rules to the AAR artefact. This means that the library will work correctly when minification is enabled, without relying on the bugsnag gradle plugin to edit the library's proguard files.
Design
This allows users to avoid using the bugsnag gradle plugin if they so wish, without any additional configuration of ProGuard on their part.
Changeset
Added a proguard file with keep rules for the relevant classes.
Tests
Used Android Studio's APK analyzer to verify that an example project without the gradle plugin applied retained the correct classes in its Dex file.
Discussion
read the release notes.
Review
For the submitter, initial self-review:
For the pull request reviewer(s), this changeset has been reviewed for: