Skip to content

Commit

Permalink
Migrate to 0.0.0-sync-2021-07-23-build267
Browse files Browse the repository at this point in the history
  • Loading branch information
igordmn committed Jul 26, 2021
1 parent cd7fb8c commit f58fc63
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion templates/desktop-template/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
// __KOTLIN_COMPOSE_VERSION__
kotlin("jvm") version "1.5.21"
// __LATEST_COMPOSE_RELEASE_VERSION__
id("org.jetbrains.compose") version (System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.5.0-build262")
id("org.jetbrains.compose") version (System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.0.0-sync-2021-07-23-build267")
}

repositories {
Expand Down
19 changes: 11 additions & 8 deletions templates/desktop-template/src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import androidx.compose.desktop.Window
import androidx.compose.material.Text
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application

fun main() = Window {
var text by remember { mutableStateOf("Hello, World!") }
fun main() = application {
Window(onCloseRequest = ::exitApplication) {
var text by remember { mutableStateOf("Hello, World!") }

MaterialTheme {
Button(onClick = {
text = "Hello, Desktop!"
}) {
Text(text)
MaterialTheme {
Button(onClick = {
text = "Hello, Desktop!"
}) {
Text(text)
}
}
}
}
2 changes: 1 addition & 1 deletion templates/multiplatform-template/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
// __LATEST_COMPOSE_RELEASE_VERSION__
val composeVersion = System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.5.0-build262"
val composeVersion = System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.0.0-sync-2021-07-23-build267"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import androidx.compose.desktop.Window
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application

fun main() = Window {
App()
fun main() = application {
Window(onCloseRequest = ::exitApplication) {
App()
}
}

0 comments on commit f58fc63

Please sign in to comment.