Skip to content

Commit f406551

Browse files
committed
Add consumerProguardFiles, avoid proguard issue.
1 parent de252e9 commit f406551

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

andlinker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ android {
1313
buildTypes {
1414
release {
1515
minifyEnabled false
16-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
16+
consumerProguardFiles 'proguard-rules.pro'
1717
}
1818
}
1919

andlinker/proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
23+
-dontwarn com.codezjx.andlinker.adapter.**
24+
-keep class * implements android.os.Parcelable {*;}
25+
-keep @com.codezjx.andlinker.annotation.ClassName class *
26+
-keepclassmembers class * {
27+
@com.codezjx.andlinker.annotation.MethodName <methods>;
28+
}

0 commit comments

Comments
 (0)