Skip to content

Commit

Permalink
Fixed proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzojdana committed Mar 13, 2018
1 parent 10db18e commit 5daace2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ allprojects {
Add the dependency to your project's `build.gradle`:
```groovy
dependencies {
implementation 'com.github.grzegorzojdana:SpacingItemDecoration:1.0.0'
implementation 'com.github.grzegorzojdana:SpacingItemDecoration:1.0.1'
}
```

Expand Down
7 changes: 3 additions & 4 deletions spacingitemdecorationlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ android {
defaultConfig {
minSdkVersion globalMinSdkVersion
targetSdkVersion globalTargetSdkVersion
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}

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

Expand Down
7 changes: 1 addition & 6 deletions spacingitemdecorationlib/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
-dontobfuscate
-optimizations !code/allocation/variable

-keep public class * {
public protected *;
}
-keep class com.grzegorzojdana.spacingitemdecoration.** { *; }

0 comments on commit 5daace2

Please sign in to comment.