From 435b378bb738c6d709eddfdb5538da1eb39ed9bf Mon Sep 17 00:00:00 2001 From: Igor Demin Date: Tue, 15 Jun 2021 17:03:18 +0300 Subject: [PATCH] Fix tutorials --- tutorials/Getting_Started/README.md | 6 +++--- tutorials/Window_API/README.md | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tutorials/Getting_Started/README.md b/tutorials/Getting_Started/README.md index 937b33ac90..41dc638485 100644 --- a/tutorials/Getting_Started/README.md +++ b/tutorials/Getting_Started/README.md @@ -32,11 +32,11 @@ packaging JDK 15 or later must be used. ### Update the wizard plugin -The Сompose plugin version used in the wizard above may be not the last. Update the version of the plugin to the latest available by editing the `build.gradle.kts` file, finding and updating the version information as shown below. In this example the latest version of the plugin was 0.4.0 and a compatible version of kotlin was 1.5.10. For the latest versions, see the [latest versions](https://github.com/JetBrains/compose-jb/releases) site and the [Kotlin](https://kotlinlang.org/) site. +The Сompose plugin version used in the wizard above may be not the last. Update the version of the plugin to the latest available by editing the `build.gradle.kts` file, finding and updating the version information as shown below. In this example the latest version of the plugin was 0.5.0-build225 and a compatible version of kotlin was 1.5.10. For the latest versions, see the [latest versions](https://github.com/JetBrains/compose-jb/releases) site and the [Kotlin](https://kotlinlang.org/) site. ``` plugins { kotlin("jvm") version "1.5.10" - id("org.jetbrains.compose") version "0.4.0" + id("org.jetbrains.compose") version "0.5.0-build225" } ``` @@ -72,7 +72,7 @@ import org.jetbrains.compose.compose plugins { kotlin("jvm") version "1.5.10" - id("org.jetbrains.compose") version "0.4.0" + id("org.jetbrains.compose") version "0.5.0-build225" } repositories { diff --git a/tutorials/Window_API/README.md b/tutorials/Window_API/README.md index cdbe72ff0d..c673e1599d 100755 --- a/tutorials/Window_API/README.md +++ b/tutorials/Window_API/README.md @@ -92,6 +92,7 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material.Button import androidx.compose.runtime.mutableStateOf import androidx.compose.ui.Alignment +import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.input.key.Key import androidx.compose.ui.Modifier import androidx.compose.ui.unit.IntOffset @@ -103,6 +104,7 @@ import androidx.compose.ui.window.v1.MenuBar import java.awt.Color import java.awt.image.BufferedImage +@OptIn(ExperimentalComposeUiApi::class) fun main() { val count = mutableStateOf(0) val windowPos = mutableStateOf(IntOffset.Zero)