Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Fixed proguard rules - #7389

Merged
cammace merged 3 commits into
masterfrom
7378-fix
Dec 13, 2016
Merged

cammace merged 3 commits into
masterfrom
7378-fix

Conversation

@cammace

@cammace cammace commented Dec 12, 2016 •

Copy link
Copy Markdown
Contributor

Closes #7378
Closes #7313

There seemed to be an issue with obfuscation and JNI bindings, adding -dontobfuscate resolved #7378. I also added -dontwarn okhttp3.** which was being required in both testapp and demo app. Lastly I ported over the mapbox-java proguard rules.

@cammace cammace added Android Mapbox Maps SDK for Android bug labels Dec 12, 2016
@mention-bot

Copy link
Copy Markdown

@cammace, thanks for your PR! By analyzing this pull request, we identified @zugaldia to be potential reviewers.

# in ../sdk/tools/proguard/proguard-android.txt,
# contents of this file will be appended into proguard-android.txt
-keepattributes Signature, *Annotation*, EnclosingMethod
-dontobfuscate

@tobrun tobrun Dec 13, 2016 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How does this effect our users? Does this mean only the aar file doesn't get obfuscated or are we disabling obfuscating for our users with this?

@ivovandongen ivovandongen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@cammace
cammace merged commit 833c5ca into master Dec 13, 2016
@cammace
cammace deleted the 7378-fix branch December 13, 2016 19:41
cammace pushed a commit that referenced this pull request Dec 13, 2016
* fixed proguard rules

* disabled proguard for debug testapp builds

* removed dontobfuscate and fixed gson issue
cammace pushed a commit that referenced this pull request Dec 13, 2016
* fixed proguard rules

* disabled proguard for debug testapp builds

* removed dontobfuscate and fixed gson issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MapboxMap.queryRenderedFeatures() crash with Proguard Update Proguard rules

4 participants