diff --git a/analytics/build.gradle b/analytics/build.gradle index a5e8dd79e..5df8ac735 100644 --- a/analytics/build.gradle +++ b/analytics/build.gradle @@ -3,6 +3,12 @@ apply plugin: 'com.getkeepsafe.dexcount' apply from: rootProject.file('gradle/android.gradle') +android { + defaultConfig { + consumerProguardFiles 'proguard-rules-lib.txt' + } +} + dependencies { api rootProject.ext.deps.supportAnnotations diff --git a/analytics/proguard-rules-lib.txt b/analytics/proguard-rules-lib.txt new file mode 100755 index 000000000..6e379eb19 --- /dev/null +++ b/analytics/proguard-rules-lib.txt @@ -0,0 +1,3 @@ +-keepclassmembers class com.segment.analytics.** extends com.segment.analytics.ValueMap { + (java.util.Map); +}