From 6099824f94c2c41548b0659dcbddc1906352f395 Mon Sep 17 00:00:00 2001 From: Guardiola31337 Date: Mon, 9 Apr 2018 13:59:54 +0200 Subject: [PATCH] fix proguard issues --- app/proguard-rules.pro | 5 +++-- plugin-geojson/proguard-consumer.pro | 2 +- plugin-locationlayer/proguard-consumer.pro | 2 +- plugin-offline/proguard-consumer.pro | 2 +- plugin-places/proguard-consumer.pro | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 7c7664c05..7a7e766d4 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,4 +1,5 @@ # Mapbox Plugin testapp ProGuard rules. --keep class com.google.** --dontwarn com.google.** \ No newline at end of file +# --- GMS --- +-keep public class com.google.android.gms.* { public *; } +-dontwarn com.google.android.gms.** \ No newline at end of file diff --git a/plugin-geojson/proguard-consumer.pro b/plugin-geojson/proguard-consumer.pro index 1128f20d5..d4e789f0a 100644 --- a/plugin-geojson/proguard-consumer.pro +++ b/plugin-geojson/proguard-consumer.pro @@ -2,7 +2,7 @@ # --- AutoValue --- # AutoValue annotations are retained but dependency is compileOnly. --dontwarn com.google.auto.value.AutoValue +-dontwarn com.google.auto.value.** # --- Retrofit --- # Retain generic type information for use by reflection by converters and adapters. diff --git a/plugin-locationlayer/proguard-consumer.pro b/plugin-locationlayer/proguard-consumer.pro index 74b666f11..377893234 100644 --- a/plugin-locationlayer/proguard-consumer.pro +++ b/plugin-locationlayer/proguard-consumer.pro @@ -2,7 +2,7 @@ # --- AutoValue --- # AutoValue annotations are retained but dependency is compileOnly. --dontwarn com.google.auto.value.AutoValue +-dontwarn com.google.auto.value.** # --- Retrofit --- # Retain generic type information for use by reflection by converters and adapters. diff --git a/plugin-offline/proguard-consumer.pro b/plugin-offline/proguard-consumer.pro index fc96d4fe4..33a63ea41 100644 --- a/plugin-offline/proguard-consumer.pro +++ b/plugin-offline/proguard-consumer.pro @@ -2,7 +2,7 @@ # --- AutoValue --- # AutoValue annotations are retained but dependency is compileOnly. --dontwarn com.google.auto.value.AutoValue +-dontwarn com.google.auto.value.** # --- Retrofit --- # Retain generic type information for use by reflection by converters and adapters. diff --git a/plugin-places/proguard-consumer.pro b/plugin-places/proguard-consumer.pro index 6848276ab..47070a645 100644 --- a/plugin-places/proguard-consumer.pro +++ b/plugin-places/proguard-consumer.pro @@ -2,7 +2,7 @@ # --- AutoValue --- # AutoValue annotations are retained but dependency is compileOnly. --dontwarn com.google.auto.value.AutoValue +-dontwarn com.google.auto.value.** # --- Retrofit --- # Retain generic type information for use by reflection by converters and adapters.