icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.11k stars 120 forks source link

How do we add moko-resources plugin to lib.versions.toml file? #776

Closed davebren closed 1 month ago

davebren commented 1 month ago

Maybe this is more of an issue with gradle/android not documenting the new toml dependencies schema, but since it's used as the default when setting up a new multiplatform compose project, maybe it could be added to the setup documentation here?

I try to add this under the [plugins] block in the toml:

moko-resources = { id = "dev.icerock.moko.multiplatform-resources", version.ref = "moko-resources" }

For plugins, it won't accept a group parameter, and won't allow the id to be specified with a colon such as dev.icerock.moko:multiplatform-resources

I get an error Plugin [id: 'dev.icerock.moko.multiplatform-resources', version: '0.24.2', apply: false] was not found in any of the following sources:

Does anyone know the magic syntax to get this to work?

davebren commented 1 month ago

Fixed the issue using, dev.icerock.mobile instead of dev.icerock.moko. Odd that it had a different qualifier for the classpath than the plugin