hotwired / turbo-android

Android framework for making Turbo native apps
MIT License
407 stars 51 forks source link

proguard rules for R8 full mode #301

Closed svantepolk closed 4 months ago

svantepolk commented 5 months ago

We recently encountered a crash-on-boot in our release builds after updating Android Gradle Plugin from an older version. AGP 8 turns on full mode for R8 by default.

Adding this line to the proguard-rules.pro file fixed the issue in our app:

-keep,allowobfuscation,allowshrinking class * extends androidx.navigation.Navigator

I think this can be fixed here by adding something similar to proguard-consumer-rules.pro

Here's a similar issue in retrofit: https://github.com/square/retrofit/issues/3880