diff --git a/README.md b/README.md index a7214e1..85d0e4d 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,15 @@ And those to root build.gradle allprojects: maven { url 'http://download.crashlytics.com/maven' } } +## ProGuard release configuration + +Add the following lines to your proguard-rules configuration file if you have set **minifyEnabled** to true in your debug/release build type: + + # OpenTok + -keep class com.opentok.jni.** { *; } + -keep class com.opentok.android.** { *; } + -keep class com.opentok.client.** { *; } + -keep class com.opentok.impl.** { *; } ## SDK Setup diff --git a/example/proguard-rules.pro b/example/proguard-rules.pro index 0cb295f..b846749 100644 --- a/example/proguard-rules.pro +++ b/example/proguard-rules.pro @@ -15,3 +15,9 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +# OpenTok +-keep class com.opentok.jni.** { *; } +-keep class com.opentok.android.** { *; } +-keep class com.opentok.client.** { *; } +-keep class com.opentok.impl.** { *; } diff --git a/idvos-app/build.gradle b/idvos-app/build.gradle index 7eb8996..10f0f94 100644 --- a/idvos-app/build.gradle +++ b/idvos-app/build.gradle @@ -15,6 +15,7 @@ android { buildTypes { release { minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } diff --git a/idvos-app/proguard-rules.pro b/idvos-app/proguard-rules.pro new file mode 100644 index 0000000..b846749 --- /dev/null +++ b/idvos-app/proguard-rules.pro @@ -0,0 +1,23 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/biovamp/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: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# OpenTok +-keep class com.opentok.jni.** { *; } +-keep class com.opentok.android.** { *; } +-keep class com.opentok.client.** { *; } +-keep class com.opentok.impl.** { *; }