mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Remove:
```
__LATEST_COMPOSE_RELEASE_VERSION__
__KOTLIN_COMPOSE_VERSION__
System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION")
```
They pollute templates/examples.
Now, all paths where we need to change the version are hardcoded in the script.
Usage:
```
./replace.sh 1.0.0-rc6
```
This script is planned to run on CI
In the future I will add support for changing Kotlin version
23 lines
733 B
Kotlin
Executable File
23 lines
733 B
Kotlin
Executable File
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
google()
|
|
}
|
|
|
|
plugins {
|
|
val kotlinVersion = extra["kotlin.version"] as String
|
|
val agpVersion = extra["agp.version"] as String
|
|
val composeVersion = extra["compose.version"] as String
|
|
|
|
kotlin("jvm").version(kotlinVersion)
|
|
kotlin("multiplatform").version(kotlinVersion)
|
|
kotlin("android").version(kotlinVersion)
|
|
id("com.android.application").version(agpVersion)
|
|
id("com.android.library").version(agpVersion)
|
|
id("org.jetbrains.compose").version(composeVersion)
|
|
}
|
|
}
|
|
|
|
include(":common", ":android", ":desktop")
|