Skip to content

Commit

Permalink
update proguard rules for androidx library, fixes #810 (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfs authored Jun 15, 2019
1 parent a097413 commit e711e6e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions opentasks/proguard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@

# Keep our own classes to keep stack traces readable.
-keep class org.dmfs.** {*;}

# Allow obfuscation of android.support.v7.internal.view.menu.**
# to avoid problem on Samsung 4.2.2 devices with appcompat v21
# see https://code.google.com/p/android/issues/detail?id=78377
-keep class !android.support.v7.internal.view.menu.**,android.support.** {*;}
-keep class androidx.** {*;}

# this is required to keep the Annotations for retention-magic and to keep the line numbers n stack traces
-keepattributes *Annotation*,SourceFile,LineNumberTable
Expand Down Expand Up @@ -77,4 +73,11 @@
java.lang.String TAG;
@org.dmfs.android.retentionmagic.annotations.* <fields>;
private long mId;
}

# same for support library Fragments
-keepclassmembers class * extends androidx.fragment.app.Fragment {
java.lang.String TAG;
@org.dmfs.android.retentionmagic.annotations.* <fields>;
private long mId;
}

0 comments on commit e711e6e

Please sign in to comment.