Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ProGuard rules #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions example/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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.** { *; }
1 change: 1 addition & 0 deletions idvos-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ android {
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Expand Down
23 changes: 23 additions & 0 deletions idvos-app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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.** { *; }