disabled R8 full mode

This commit is contained in:
Thibault Deckers 2023-05-28 12:34:48 +02:00
parent 195e28ec60
commit 162a7d7389
2 changed files with 7 additions and 0 deletions

View file

@ -4,3 +4,6 @@
# referenced from: com.google.crypto.tink # referenced from: com.google.crypto.tink
-dontwarn com.google.errorprone.annotations.** -dontwarn com.google.errorprone.annotations.**
-dontwarn javax.annotation.** -dontwarn javax.annotation.**
# report all the code that R8 removed (<output-dir> is `/build/app/outputs/mapping/[build]/`)
-printusage <output-dir>/usage.txt

View file

@ -19,6 +19,10 @@ android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false android.nonTransitiveRClass=false
android.nonFinalResIds=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 # 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 # cf https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-common-faq-0000001063210244#section17273113244910
apmsInstrumentationEnabled=false apmsInstrumentationEnabled=false