Skip to content

Commit

Permalink
fix proguard rules to prevent crash in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvchandler committed Mar 28, 2019
1 parent b74f38c commit 785d5ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'

ext.ver_major = 1
ext.ver_minor = 0
ext.ver_patch = 3
ext.ver_patch = 4
ext.min_sdk = 19

private Integer gen_version_code()
Expand Down
6 changes: 3 additions & 3 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
public <fields>;
}

-keepclasseswithmembers class android.databinding.ObservableInt {
-keepclasseswithmembers class androidx.databinding.ObservableInt {
void set(int);
}
-keepclasseswithmembers class android.databinding.ObservableFloat {
-keepclasseswithmembers class androidx.databinding.ObservableFloat {
void set(float);
}

-keepclasseswithmembers class android.support.v4.content.ContextCompat {
-keepclasseswithmembers class androidx.core.content.ContextCompat {
int getColor(android.content.Context, int);
}
-keepclasseswithmembers class org.mattvchandler.a2050.R$array {
Expand Down

0 comments on commit 785d5ed

Please sign in to comment.