|
|
|
@ -6,11 +6,12 @@ This tutorial covers topic of using Compose Multiplatform for multiplatform buil
|
|
|
|
|
|
|
|
|
|
## Intro |
|
|
|
|
|
|
|
|
|
Compose Multiplatform doesn't contain any Android artifacts. Instead it references Jetpack Compose Android artifacts published by Google |
|
|
|
|
Compose Multiplatform doesn't contain any Android artifacts. |
|
|
|
|
Instead it references Jetpack Compose Android artifacts [published by Google](https://developer.android.com/jetpack/compose). |
|
|
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
Jetpack Compose interoperability is enabled on publication level - nothing needs to be explicitly enabled. |
|
|
|
|
Jetpack Compose interoperability is enabled on the publication level - nothing needs to be explicitly enabled. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The easiest way to start is to use Kotlin Project Wizard with Compose Multiplatform template - one of the target platform is Android. |
|
|
|
@ -22,5 +23,16 @@ Another option is to take [multiplatform template](https://github.com/JetBrains/
|
|
|
|
|
## Versioning |
|
|
|
|
|
|
|
|
|
Compose Multiplatform 1.0.0 references Jetpack Compose 1.1.0-beta02. If you want to use higher version, you could explicitly |
|
|
|
|
add Jetpack Compose dependencies to the Android module. However please note, that Kotlin Compiler compatibility should be considered. |
|
|
|
|
add Jetpack Compose dependencies to the Android module like this |
|
|
|
|
|
|
|
|
|
```kotlin |
|
|
|
|
configurations.all { |
|
|
|
|
resolutionStrategy { |
|
|
|
|
force("androidx.compose.animation:animation:1.1.0-beta03") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
However please note, that Kotlin Compiler version used for Android must match. |
|
|
|
|
|
|
|
|
|