From c5f7ca21be8794ec604a344293bed40de2010663 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sat, 5 Jan 2019 09:33:18 +0100 Subject: [PATCH 1/2] introduce a consumer proguard file --- MPChartLib/build.gradle | 3 +-- MPChartLib/{proguard-project.txt => proguard-lib.pro} | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename MPChartLib/{proguard-project.txt => proguard-lib.pro} (99%) diff --git a/MPChartLib/build.gradle b/MPChartLib/build.gradle index b6068579ca..631ad32dc9 100644 --- a/MPChartLib/build.gradle +++ b/MPChartLib/build.gradle @@ -25,7 +25,7 @@ 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 @@ -34,7 +34,6 @@ android { buildTypes { release { minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } buildFeatures { diff --git a/MPChartLib/proguard-project.txt b/MPChartLib/proguard-lib.pro similarity index 99% rename from MPChartLib/proguard-project.txt rename to MPChartLib/proguard-lib.pro index 79ed867aa8..12070e28a3 100644 --- a/MPChartLib/proguard-project.txt +++ b/MPChartLib/proguard-lib.pro @@ -4,4 +4,4 @@ -keep class com.github.mikephil.charting.** { *; } -keep public class com.github.mikephil.charting.animation.* { public protected *; -} \ No newline at end of file +} From 5cc36fdc86fb5a1710362be5f1b6bc89af526bae Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Sat, 5 Jul 2025 08:46:09 +0200 Subject: [PATCH 2/2] Build release --- .github/workflows/Android-CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml index 552019d4af..01a1795a01 100644 --- a/.github/workflows/Android-CI.yml +++ b/.github/workflows/Android-CI.yml @@ -48,6 +48,8 @@ jobs: - uses: gradle/actions/wrapper-validation@v4 - name: Install Android SDK uses: hannesa2/action-android/install-sdk@0.1.16.7 + - name: Build release + run: ./gradlew assemble - name: Run instrumentation tests uses: hannesa2/action-android/emulator-run-cmd@0.1.16.7 with: