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 Proguard issues #825

Merged
merged 1 commit into from
Apr 4, 2018
Merged

Fix Proguard issues #825

merged 1 commit into from
Apr 4, 2018

Conversation

Guardiola31337
Copy link
Contributor

  • Adds Proguard rules to libandroid-navigation and libandroid-navigation-ui so that builds with Proguard enabled don't fail.

  • Adds a step to the CI build to attempt to check if Proguard rules work.

  • Fixes Proguard Release Build Fails #824

👀 @danesfeder @devotaaabel

@@ -18,8 +18,7 @@ android {
testCoverageEnabled = false
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be removing the proguard file here? Will our rules still be tested if we do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we be removing the proguard file here?

Yeah, we're not including any specific Proguard rules for the test app.

Will our rules still be tested if we do?

Yeah, this is managed by consumerProguardFiles. BTW you can check the build and 👀 that Proguard is running and working https://circleci.com/gh/mapbox/mapbox-navigation-android/3875?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link (Build release to test ProGuard rules step)

Copy link
Contributor

@danesfeder danesfeder left a comment

Choose a reason for hiding this comment

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

@Guardiola31337 awesome, thanks for the clarification and quick turn around on this

@Guardiola31337 Guardiola31337 merged commit 98ffc5e into master Apr 4, 2018
@Guardiola31337 Guardiola31337 deleted the pg-824-proguard-issues branch April 4, 2018 19:59
@osana
Copy link

osana commented Apr 5, 2018

Here are the proguard rules (coming from MAS) that worked for MapsSdkTestApp
mapbox/mapbox-gl-native#11593

@Guardiola31337 @devotaaabel @danesfeder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants