Skip to content

Commit 6980f6e

Browse files
committed
introduce a consumer proguard file
1 parent d7a9d4e commit 6980f6e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

MPChartLib/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@ android {
2525
// https://issuetracker.google.com/issues/158695880
2626
buildConfigField 'String', 'VERSION_NAME', "\"${getTag()}\""
2727

28-
consumerProguardFiles 'proguard-project.txt'
28+
consumerProguardFiles 'proguard-lib.pro'
2929
}
3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_17
3232
targetCompatibility JavaVersion.VERSION_17
3333
}
3434
buildTypes {
3535
release {
36-
minifyEnabled false
37-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
36+
minifyEnabled true
3837
}
3938
}
4039
buildFeatures {

MPChartLib/proguard-project.txt renamed to MPChartLib/proguard-lib.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
-keep class com.github.mikephil.charting.** { *; }
55
-keep public class com.github.mikephil.charting.animation.* {
66
public protected *;
7-
}
7+
}

0 commit comments

Comments
 (0)