Skip to content

Commit

Permalink
introduce a consumer proguard file
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jan 15, 2025
1 parent d7a9d4e commit f826a45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MPChartLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ android {
// https://issuetracker.google.com/issues/158695880
buildConfigField 'String', 'VERSION_NAME', "\"${getTag()}\""

consumerProguardFiles 'proguard-project.txt'
consumerProguardFiles 'proguard-lib.pro'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled true
}
}
buildFeatures {
Expand Down
4 changes: 4 additions & 0 deletions MPChartLib/proguard-lib.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Whitelist MPAndroidChart
# Preserve all public classes and methods

-keep class com.github.mikephil.charting.** { *; }

0 comments on commit f826a45

Please sign in to comment.