DealORound / Deal-O-Round

Flutter port of the Deal-O-Round board card game
MIT License
2 stars 0 forks source link

Missing classes detected while running R8 #28

Closed MrCsabaToth closed 1 year ago

MrCsabaToth commented 1 year ago

This happens only with release builds. I think I tackled this with Track My Indoor Workout already. It is caused by some ProGuard rules added for https://github.com/flutter/flutter/issues/78625#issuecomment-804164524 See ref end of https://github.com/TrackMyIndoorWorkout/TrackMyIndoorWorkout/issues/435 and https://github.com/TrackMyIndoorWorkout/TrackMyIndoorWorkout/commit/77f4023d9e30c8ed15b3e9a31518c7185bbb0582

MrCsabaToth commented 1 year ago

The whole error message: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/csaba/repos/flutter/Deal-O-Round/deal_o_round/build/app/outputs/mapping/release/missing_rules.txt.

And the content of the referenced file:

# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn com.google.android.play.core.splitcompat.SplitCompatApplication
-dontwarn com.google.android.play.core.splitinstall.SplitInstallException
-dontwarn com.google.android.play.core.splitinstall.SplitInstallManager
-dontwarn com.google.android.play.core.splitinstall.SplitInstallManagerFactory
-dontwarn com.google.android.play.core.splitinstall.SplitInstallRequest$Builder
-dontwarn com.google.android.play.core.splitinstall.SplitInstallRequest
-dontwarn com.google.android.play.core.splitinstall.SplitInstallSessionState
-dontwarn com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener
-dontwarn com.google.android.play.core.tasks.OnFailureListener
-dontwarn com.google.android.play.core.tasks.OnSuccessListener
-dontwarn com.google.android.play.core.tasks.Task
MrCsabaToth commented 1 year ago

But as I figured out the real reason is beyond those rules.