Skip to content

Commit 008c0d6

Browse files
committed
build(android): configure R8 optimized resource shrinking and Play Core keep rules
1 parent c6a2c6d commit 008c0d6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

android/app/proguard-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# prevents accidental stripping or aggressive obfuscation if future reflection is added.
1515
-keep class com.escapebranch.unfilter.** { *; }
1616

17+
# Google Play Core (In-App Updates & Reviews)
18+
-keep class com.google.android.play.core.** { *; }
19+
1720
# Default Android checks and harmless warnings
1821
-dontwarn android.support.**
1922
-dontwarn androidx.**
2023
-dontwarn io.flutter.**
24+
-dontwarn com.google.android.play.**

android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ android.useAndroidX=true
33
android.newDsl=false
44
# This builtInKotlin flag was added automatically by Flutter migrator
55
android.builtInKotlin=false
6+
# Enables R8 integrated code and resource optimization pipeline (AGP 8.12+)
7+
android.r8.optimizedResourceShrinking=true

0 commit comments

Comments
 (0)