A quick guide to sharing code between `Android` an...
# feed
c
A quick guide to sharing code between
Android
and
desktop JVM
target in a Kotlin Multiplatform project! https://chetan-garg36.medium.com/kotlin-multiplatform-sharing-code-between-android-and-jvm-targets-091c4ab3838c
🚫 1
👎 1
👍🏾 1
s
I think we use the Kotlin Hierarchy Template group configuration to achieve the same without the explicit dependency wiring
Copy code
kotlin {
  applyDefaultHierarchyTemplate {
    common {
      group("commonAndroidJvm") {
        withJvm()
        withAndroidTarget()
      }
     }
   }
}
👍 1
c
Hi @suresh thanks, let me check for same if it work I will definitely update. I used official source to set this up : https://kotlinlang.org/docs/multiplatform-hierarchy.html#manual-configuration
Hi @suresh it worked, thanks for help ✌️
🎉 1