alex009
10/23/2023, 3:10 AMVlad
10/26/2023, 12:25 PMExpected object 'MR' has no actual declaration in module <shared_xxDebug> for JVM
.
Although I commented out the tasks.withType<DummyFrameworkTask>().configureEach
part from the shared build.gradlealex009
10/27/2023, 11:07 AMVlad
10/27/2023, 11:10 AMalex009
10/27/2023, 11:12 AMandroidMain
sourceset explicit dependency to commonMain
.
or add sourcedir like here https://gitlab.icerockdev.com/scl/boilerplate/mobile-moko-boilerplate/-/blob/master/mpp-library/build.gradle.kts#L146Vlad
10/27/2023, 1:08 PMkotlin.version=1.9.10
agp.version=8.0.2
compose.version=1.5.3
Umesh Gupta
11/01/2023, 1:00 PMSam
11/19/2023, 2:20 PM1.9.20
and Moko Resources 0.23.0
and it all seems to just work? I've not had to apply any of the work arounds mentioned in various issue threads for iOS and only the following snippet for android. I'm only using Moko resources for strings.
Is this expected or am I going to run into unexpected subtle issues?
// hack for problem:
// "Expected object 'MR' has no actual declaration in module <mpp-library_debug> for JVM"
// Issue: <https://github.com/icerockdev/moko-resources/issues/510>
// Remove after fix this
sourceSets {
getByName("main").java.srcDirs("build/generated/moko/androidMain/src")
}