diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index 06e861e19..284ada19f 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -4,3 +4,6 @@ # referenced from: com.google.crypto.tink -dontwarn com.google.errorprone.annotations.** -dontwarn javax.annotation.** + +# report all the code that R8 removed ( is `/build/app/outputs/mapping/[build]/`) +-printusage /usage.txt diff --git a/android/gradle.properties b/android/gradle.properties index 9a6e41359..390313428 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -19,6 +19,10 @@ android.defaults.buildfeatures.buildconfig=true android.nonTransitiveRClass=false android.nonFinalResIds=false +# full mode is too aggressive and removes essential code +# of `metadata-extractor` even when adding `-keep class com.drew.**{ *; }` +android.enableR8.fullMode=false + # fix for AppGallery Connect plugin which does not support yet Gradle 8 # cf https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-common-faq-0000001063210244#section17273113244910 apmsInstrumentationEnabled=false