-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
I'm having trouble getting the MR class to generate in a Compose Multiplatform project using the Kotlin DSL (not Groovy).
Setup
- Project type: Kotlin Multiplatform with JetBrains Compose Multiplatform (KMP)
- Kotlin DSL (
build.gradle.kts) - Not using
build.gradle(Groovy) - Plugin applied:
plugins {
id("dev.icerock.mobile.multiplatform-resources") version "0.24.5"
}
Configuration in composeApp/build.gradle.kts:
multiplatformResources {
resourcesPackage.set(".....")
iosBaseLocalizationRegion.set("pt")
iosMinimalDeploymentTarget.set("11.0")
resourcesSourceSets {
getByName("commonMain").srcDirs(File(projectDir, "customResources"))
}
}
File structure:
customResources/
└── base/
└── strings.xml
strings.xml contains:
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<string name="my_string">Test String</string>
</resources>
Issue
When I run:
./gradlew :composeApp:generateMR --rerun-tasks --no-build-cache
The task completes without errors, but:
No MR class is generated
build/generated/moko-resources/ remains empty
Even after ensuring the XML is valid, encoding is correct, and using --rerun-tasks, generation is skipped or UP-TO-DATE.
Is there something specific that must be done when using Kotlin DSL and Compose Multiplatform for the MR class to be generated?
Thanks for your help!
Metadata
Metadata
Assignees
Labels
No labels