diff --git a/android/build.gradle b/android/build.gradle index 0ccd3a9..77fbb44 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -27,6 +27,7 @@ android { targetSdkVersion 26 versionCode 1 versionName "1.0" + consumerProguardFiles("consumer-proguard-rules.pro") } lintOptions { abortOnError false @@ -52,7 +53,7 @@ allprojects { dependencies { implementation("com.facebook.react:react-native:+") - implementation("com.launchdarkly:launchdarkly-android-client-sdk:3.1.0") + implementation("com.launchdarkly:launchdarkly-android-client-sdk:3.1.1") implementation("com.jakewharton.timber:timber:4.7.1") implementation("com.google.code.gson:gson:2.8.6") } diff --git a/android/consumer-proguard-rules.pro b/android/consumer-proguard-rules.pro new file mode 100644 index 0000000..df05664 --- /dev/null +++ b/android/consumer-proguard-rules.pro @@ -0,0 +1,13 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ~/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +-keep class com.launchdarkly.sdk.LDUser$Builder { public ; } +-keep class com.launchdarkly.sdk.android.LDConfig$Builder { public ; }