File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed
deviceTests/src/main/kotlin/com/evernote/android/state/demo Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1+ ## 1.1.1
2+
3+ * Add a Proguard rule to keep the class name if the class contains a ` State ` or ` StateReflection annoation ` , see #23
4+
15## 1.1.0 (2017-06-05)
26
37* Remove unnecessary Proguard rules prevent proper obfuscation, see #15
Original file line number Diff line number Diff line change @@ -37,13 +37,14 @@ class ProguardTest {
3737
3838 @Test
3939 fun verifyCodeObfuscated () {
40- TestProguard ::class .java.getDeclaredField(" a " ) // test1
41- TestProguard ::class .java.getDeclaredField(" b " ) // test2
40+ TestProguard ::class .java.getDeclaredField(" test1 " ) // test1
41+ TestProguard ::class .java.getDeclaredField(" test2 " ) // test2
4242 TestProguard ::class .java.getDeclaredField(" test3" )
4343 TestProguard ::class .java.getDeclaredMethod(" a" ) // getTest2()
4444
45- TestProguardBundler ::class .java.getDeclaredField(" a " ) // mData2
45+ TestProguardBundler ::class .java.getDeclaredField(" mData2 " ) // mData2
4646 TestProguardBundler ::class .java.getDeclaredField(" mDataReflOtherName" )
47+ TestProguardBundler ::class .java.getDeclaredMethod(" a" ) // getData2()
4748 }
4849
4950 @Test
Original file line number Diff line number Diff line change 1- # VERSION_NAME=1.1.0
2- VERSION_NAME =1.1.0 -SNAPSHOT
1+ # VERSION_NAME=1.1.1
2+ VERSION_NAME =1.1.1 -SNAPSHOT
33VERSION_CODE =1
Original file line number Diff line number Diff line change 11-dontwarn com.evernote.android.state.**
22-keep class com.evernote.android.state.** { *; }
33-keep class **$$StateSaver { *; }
4- -keepclassmembers class * {
5- @com.evernote.android.state.StateReflection <fields>;
6- }
4+ -keepnames class * { @com.evernote.android.state.State *; }
5+ -keepnames class * { @com.evernote.android.state.StateReflection *; }
You can’t perform that action at this time.
0 commit comments