Skip to content

Commit bbc3744

Browse files
authored
Merge pull request #313 from AppDevNext/proguard
introduce a consumer proguard file
2 parents 2d0faac + 5cc36fd commit bbc3744

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/Android-CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
- uses: gradle/actions/wrapper-validation@v4
4949
- name: Install Android SDK
5050
uses: hannesa2/action-android/install-sdk@0.1.16.7
51+
- name: Build release
52+
run: ./gradlew assemble
5153
- name: Run instrumentation tests
5254
uses: hannesa2/action-android/emulator-run-cmd@0.1.16.7
5355
with:

MPChartLib/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ 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
@@ -34,7 +34,6 @@ android {
3434
buildTypes {
3535
release {
3636
minifyEnabled false
37-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3837
}
3938
}
4039
buildFeatures {
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)