-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[android] config proguard-rules.pro file for release #8931
Comments
@Larnoo thank you for this question, we package a proguard configuration file in the SDK. You activate it with using the following in your build.gradle:
|
@tobrun |
Thank you for the report @mpuchala, going to use this issue to track it for 5.1.0 release. |
pinpointed the native crash to |
|
This landed in #8944 to the release branch, closing |
My app crashes when using proguard with version 5.1.0.beta.3 or snapshot, working fine with 5.0.2. |
I'm not running in any proguard issues using the test app. Are you hooking into the "default" proguard config? release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} For the reference this is the config I'm using in the test app:
Without having more information, I'm not able to look into this more. Closing as non reproducible. |
Sorry, i thought it wasn't app specific, cause it's working with 5.0.2, here's the config:
Rules:
|
@mare011 what happens if you add the following to that config?
|
@tobrun This line helped: -keep class com.google.** |
a great @mare011! afaik this isn't something that we should include in our config. Thank you for following up! |
No problem. |
@tobrun at the very least I'm working on the upgrade to 5.1 and it seems that the sdk is accessing these gson classes as part of the new strategy for handling modifying geojson? |
Platform: Android
Mapbox SDK version: 5.0.0
[android] when app use mapbox sdk, how to config proguard-rules.pro file for app release
The text was updated successfully, but these errors were encountered: