Koin uses different version number for different artifacts
- [X] I have read the guidelines for submitting issues
🐛 Describe the bug
Koin library uses different version numbers for different artefacts. https://insert-koin.io/docs/setup/koin#version At time of writing this report:
koin_version= "3.3.2"
koin_android_version= "3.3.2"
koin_android_compose_version= "3.4.1"
koin_ktor= "3.3.0"
That means if developers using Android Jetpack Compose the latest is 3.4.1. This latest version is needed for compatibility and fixes with the compose libraries.
⚠️ Current behavior
The version.properties we can only have 1 version per group, which means we're stuck in 3.3.2
There's a workaround to use implementation(Koin.compose.withVersion("3.4.1")).
Unfortunately that workaround basically disables the version management (for this artifact) that refreshVersions gives us.
✅ Expected behavior
- Either a fix/workaround specific to Koin. or
- Some well documented way to specify
<group>.<artifactId> = a.b.con the version.properties to allows us to instead of usingwithVersion("3.4.1"), we can instead go forwithVersion(versionFor("mySpecificArtifact"))(or maybewithVersionPlaceholder()is appropriated for that?).
Thanks
Any update on this? I just started using koin-compose-viewmodel and ran into this issue. I tried manually adding version.io.insert-koin.koin-compose-viewmodel=1.2.0-Beta4 in versions.properties, but refreshVersions ignores it in favor of version.koin=3.6.0-Beta4.