Skip to content

Commit

Permalink
let the library ship its own proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Jan 5, 2016
1 parent 1a69883 commit 5adf6b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
8 changes: 1 addition & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ android {
defaultConfig {
minSdkVersion 4
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
}

buildTypes {
release {
minifyEnabled true
proguardFile 'proguard.txt'
}
consumerProguardFiles 'proguard.txt'
}

lintOptions {
Expand Down
4 changes: 1 addition & 3 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ android {
buildTypes {

debug {
minifyEnabled true
proguardFile 'proguard.pro'
applicationIdSuffix ".debug"
}

release {
minifyEnabled true
proguardFile 'proguard.pro'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
}
}

Expand Down
19 changes: 17 additions & 2 deletions example/proguard.pro
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
-keepattributes LineNumberTable,SourceFile
-dontoptimize
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in <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:

# 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 *;
#}

0 comments on commit 5adf6b3

Please sign in to comment.