Marcelo Hernandez
12/15/2021, 8:29 PMsetContent
function is called directly instead of a custom setFooContent { }
which takes care of theming. However when it comes to testing the rule, how does one include the class path of the Compose environment when the custom rule project is a pure Kotlin library?Brais Gabin
12/16/2021, 12:17 PMjar
instead of an aar
. And be sure that you don't use any android reference in your production code.Marcelo Hernandez
12/16/2021, 7:09 PMschalkms
12/16/2021, 9:06 PMMarcelo Hernandez
12/16/2021, 9:59 PMMarcelo Hernandez
12/16/2021, 10:01 PMandroidx.activity.compose.setContent
and suggests that com.foo.bar.setFooBarView
(hypothetically speaking) be used instead.