From 4a1ff5a9fe7b6435a6252d14033ea89f9a047c66 Mon Sep 17 00:00:00 2001 From: Ujwal Date: Wed, 25 Feb 2026 22:15:54 +0545 Subject: [PATCH] Fix Play Core: ProGuard stripping + scanignore --- android/app/build.gradle.kts | 3 --- android/app/proguard-rules.pro | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 5a737c4..22d0532 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -64,9 +64,6 @@ android { } configurations.all { - exclude(group = "com.google.android.play", module = "core") - exclude(group = "com.google.android.play", module = "core-common") - exclude(group = "com.google.android.play", module = "feature-delivery") } } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index f3f6096..b5e0cd4 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -1,3 +1,11 @@ +# Strip Google Play Core (Flutter engine bundles these unnecessarily for F-Droid) +-dontwarn com.google.android.play.core.** +-dontwarn com.google.android.play.core.splitinstall.** +-dontwarn com.google.android.play.core.tasks.** +-assumenosideeffects class com.google.android.play.core.** { *; } +-assumenosideeffects class com.google.android.play.core.splitinstall.** { *; } +-assumenosideeffects class com.google.android.play.core.tasks.** { *; } + # Flutter Wrapper -keep class io.flutter.app.** { *; } -keep class io.flutter.plugin.** { *; }