jean
10/29/2024, 8:32 AMinternal
by default
internal val Res.drawable.myDrawable: DrawableResource
get() = CommonMainDrawable0.myDrawable
The idea is to have a commonResource
module in my project that can be used from existing android apps are from a widget module for example. Android widgets with compose uses the Glance framework, which make shared UI unusable. But I’m trying to expose the resources so I don’t need to reimport them locally in the module.
Or am I missing something?Jacob Ras
10/29/2024, 9:10 AMcompose.resources {
publicResClass = true
}
will make them non-internal anymore.jean
10/29/2024, 9:10 AMJacob Ras
10/29/2024, 9:10 AMJacob Ras
10/29/2024, 9:12 AMJason
10/29/2024, 7:36 PMjean
10/29/2024, 9:24 PMCannot access class ‘org. jetbrains. compose. resources. DrawableResource’. Check your module classpath for missing or conflicting dependencies
jean
10/29/2024, 9:25 PMimplementation(project(":commonResources"))
in my build.gradle of the android app, and it seems to resolve the dependency since I don’t get any error from gradle