Skip to content

Instantly share code, notes, and snippets.

@rakawestu
Created March 12, 2017 14:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakawestu/56f3dfda2ca0e45e12bbc0c8a286cbc6 to your computer and use it in GitHub Desktop.
Save rakawestu/56f3dfda2ca0e45e12bbc0c8a286cbc6 to your computer and use it in GitHub Desktop.
Library Module Proguard
buildTypes {
release {
minifyEnabled true
consumerProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
# Keep Public Class
-keep class com.example.sdk.LibraryExample { *; }
# Keep all classes in models package
-keep class com.example.sdk.models.** { *; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment