web-dev-qa-db-fra.com

Comment utiliser Shrinker (R8) avec React-Native

Je mets à jour la version native de React vers 0.60.4, mais lorsque j'essaie de créer une version, je suis coincé dans la tâche: app: transformClassesAndResourcesWithR8ForRelease

J'ai essayé de désactiver R8 et ça marche mais j'ai une apk 3 fois plus grande

R8 is the new Android code shrinker. If you experience any issues, please file a bug at
https://issuetracker.google.com, using 'Shrinker (R8)' as component name. You can
disable R8 by updating gradle.properties with 'Android.enableR8=false'.
Current version is: 1.4.94 (build 3904928f0db9c3bf128ce3bbfb160 from go/r8bot (luci-r8-ci-archive-0-5g74)).


D8: The rule `-keep class * extends com.facebook.react.bridge.JavaScriptModule {
  *;
}` uses extends but actually matches implements.
D8: The rule `-keep class * extends com.facebook.react.bridge.NativeModule {
  *;
}` uses extends but actually matches implements.
D8: The rule `-keep public class * extends androidx.versionedparcelable.VersionedParcelable {
  <init>();
}` uses extends but actually matches implements.
8
user3758896
2
Jaura