You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am using Ruler to measure the size of an app through App Bundle analysis.
I will add a dynamic feature that depends transitively on Restring.
When trying to do aab analysis via Ruler on a release buildtype of an app using shrinker, I get an error
* What went wrong:
Execution failed for task ':app:analyzeReleaseBundle'.
> Resource table of module 'dynamic' contains references to non-existing files: [res/layout/test_layout.xml, res/menu/test_menu.xml]
Can you add these resources to the test sourceset?
I'm using workaround to keep shrinker from deleting these resources, but I still don't like them going into the release build.
@Keep
classRulerWorkaround {
val testMenu
get() = dev.b3nedikt.restring.R.menu.test_menu
val testLayout
get() = dev.b3nedikt.restring.R.layout.test_layout
}
The text was updated successfully, but these errors were encountered:
0xffrom
changed the title
Ruler error when using and Restring in dynamic feature
Ruler error when using Restring in dynamic feature
Sep 8, 2024
What is Ruler?
Also on the stackoverflow answer you linked someone wrote the solution does not work anymore in newer IDE versions. I guess the simplest solution would be to move the tests including the test only resources to a different module.
If you think a different solution makes sense though, feel free to create a PR :)
Hi! I am using Ruler to measure the size of an app through App Bundle analysis.
I will add a dynamic feature that depends transitively on Restring.
When trying to do aab analysis via Ruler on a release buildtype of an app using shrinker, I get an error
Can you add these resources to the test sourceset?
I'm using workaround to keep shrinker from deleting these resources, but I still don't like them going into the release build.
The text was updated successfully, but these errors were encountered: