refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

Koin uses different version number for different artifacts

Open rvp-diconium opened this issue 3 years ago • 1 comments

🐛 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.c on the version.properties to allows us to instead of using withVersion("3.4.1"), we can instead go for withVersion(versionFor("mySpecificArtifact")) (or maybe withVersionPlaceholder() is appropriated for that?).

Thanks

rvp-diconium avatar Jan 12 '23 11:01 rvp-diconium

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.

brewin avatar May 19 '24 17:05 brewin