Closed Jaehwa-Noh closed 2 months ago
Thanks for spotting this. Investigating now.
This is caused by https://issuetracker.google.com/353898971. Workaround is to use @Keep
on any routes which aren't referenced directly in code.
In this case, we have:
@Serializable data object DetailPaneNavHostRoute
NavHost(..., route = DetailPaneNavHostRoute::class)
nestedNavController.navigateToTopic(topicId) {
popUpTo<DetailPaneNavHostRoute>()
}
So the class reference and the type parameter (presumably) aren't enough to stop DetailPaneNavHostRoute
being removed during minification.
@dturner Thanks for sharing a reason of error and resolve it.
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
Build variants: demoRelease This happened after had been merged #1413 .
https://github.com/user-attachments/assets/00b26cca-bb92-4768-ae6c-ea44d0a88f65
It worked on 371e181b79ebcca4d7b38e24b800143025ae96f9.
Relevant logcat output
Code of Conduct