diff --git a/examples/codeviewer/android/src/main/assets/data/EditorView.kt b/examples/codeviewer/android/src/main/assets/data/EditorView.kt index d6e3bfc926..97f0d80acf 100644 --- a/examples/codeviewer/android/src/main/assets/data/EditorView.kt +++ b/examples/codeviewer/android/src/main/assets/data/EditorView.kt @@ -4,13 +4,13 @@ package org.jetbrains.codeviewer.ui.editor -import androidx.compose.foundation.AmbientContentColor -import androidx.compose.foundation.Text import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.rememberLazyListState +import androidx.compose.material.AmbientContentColor import androidx.compose.material.CircularProgressIndicator import androidx.compose.material.Surface +import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.key diff --git a/examples/codeviewer/build.gradle.kts b/examples/codeviewer/build.gradle.kts index 77dc569f53..f9cc465b9c 100644 --- a/examples/codeviewer/build.gradle.kts +++ b/examples/codeviewer/build.gradle.kts @@ -8,9 +8,7 @@ buildscript { } dependencies { - // TODO/migrateToMaster 0.1.0-dev104 is built from "unmerged" branch, - // replace it by version from androidx-master-dev when scrollbars will be merged - classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build57") + classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build62") classpath("com.android.tools.build:gradle:4.0.1") classpath(kotlin("gradle-plugin", version = "1.4.0")) } @@ -18,8 +16,6 @@ buildscript { allprojects { repositories { - // TODO: remove after new build is published - mavenLocal() google() jcenter() maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") diff --git a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/CodeViewerView.kt b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/CodeViewerView.kt index 20197eea90..c0ad01543f 100644 --- a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/CodeViewerView.kt +++ b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/CodeViewerView.kt @@ -3,9 +3,9 @@ package org.jetbrains.codeviewer.ui import androidx.compose.animation.animate import androidx.compose.animation.core.Spring.StiffnessLow import androidx.compose.animation.core.SpringSpec -import androidx.compose.foundation.AmbientContentColor import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* +import androidx.compose.material.AmbientContentColor import androidx.compose.material.Icon import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.ArrowBack diff --git a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorEmptyView.kt b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorEmptyView.kt index 4004aab282..336ffb745a 100644 --- a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorEmptyView.kt +++ b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorEmptyView.kt @@ -1,12 +1,12 @@ package org.jetbrains.codeviewer.ui.editor -import androidx.compose.foundation.AmbientContentColor -import androidx.compose.foundation.Text import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding +import androidx.compose.material.AmbientContentColor import androidx.compose.material.Icon +import androidx.compose.material.Text import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Code import androidx.compose.runtime.Composable diff --git a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorTabsView.kt b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorTabsView.kt index bc7c100437..87e8dc751c 100644 --- a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorTabsView.kt +++ b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorTabsView.kt @@ -1,16 +1,16 @@ package org.jetbrains.codeviewer.ui.editor import androidx.compose.animation.animate -import androidx.compose.foundation.AmbientContentColor import androidx.compose.foundation.ScrollableRow -import androidx.compose.foundation.Text import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.material.AmbientContentColor import androidx.compose.material.Icon import androidx.compose.material.Surface +import androidx.compose.material.Text import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Close import androidx.compose.runtime.Composable diff --git a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorView.kt b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorView.kt index 483655d091..3760eff8d9 100644 --- a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorView.kt +++ b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/editor/EditorView.kt @@ -1,12 +1,12 @@ package org.jetbrains.codeviewer.ui.editor -import androidx.compose.foundation.AmbientContentColor -import androidx.compose.foundation.Text import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.rememberLazyListState +import androidx.compose.material.AmbientContentColor import androidx.compose.material.CircularProgressIndicator import androidx.compose.material.Surface +import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.key diff --git a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/filetree/FileTreeView.kt b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/filetree/FileTreeView.kt index 00175e7a4d..1764e355de 100644 --- a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/filetree/FileTreeView.kt +++ b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/filetree/FileTreeView.kt @@ -1,13 +1,13 @@ package org.jetbrains.codeviewer.ui.filetree -import androidx.compose.foundation.AmbientContentColor -import androidx.compose.foundation.Text import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumnFor import androidx.compose.foundation.lazy.rememberLazyListState +import androidx.compose.material.AmbientContentColor import androidx.compose.material.Icon import androidx.compose.material.Surface +import androidx.compose.material.Text import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.* import androidx.compose.runtime.Composable diff --git a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/statusbar/StatusBar.kt b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/statusbar/StatusBar.kt index bbed260a2c..1b87298406 100644 --- a/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/statusbar/StatusBar.kt +++ b/examples/codeviewer/common/src/commonMain/kotlin/org/jetbrains/codeviewer/ui/statusbar/StatusBar.kt @@ -1,9 +1,9 @@ package org.jetbrains.codeviewer.ui.statusbar -import androidx.compose.foundation.AmbientContentColor -import androidx.compose.foundation.Text import androidx.compose.foundation.layout.* +import androidx.compose.material.AmbientContentColor import androidx.compose.material.Slider +import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.Providers import androidx.compose.ui.Alignment diff --git a/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Scrollbar.kt b/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Scrollbar.kt index 5bbd7bbffc..e5f7f982fa 100644 --- a/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Scrollbar.kt +++ b/examples/codeviewer/common/src/desktopMain/kotlin/org/jetbrains/codeviewer/platform/Scrollbar.kt @@ -13,8 +13,8 @@ actual fun VerticalScrollbar( modifier: Modifier, scrollState: ScrollState ) = androidx.compose.foundation.VerticalScrollbar( - modifier, - adapter = rememberScrollbarAdapter(scrollState) + rememberScrollbarAdapter(scrollState), + modifier ) @OptIn(ExperimentalFoundationApi::class) @@ -25,6 +25,6 @@ actual fun VerticalScrollbar( itemCount: Int, averageItemSize: Dp ) = androidx.compose.foundation.VerticalScrollbar( - modifier, - adapter = rememberScrollbarAdapter(scrollState, itemCount, averageItemSize) + rememberScrollbarAdapter(scrollState, itemCount, averageItemSize), + modifier ) \ No newline at end of file diff --git a/examples/imageviewer/build.gradle.kts b/examples/imageviewer/build.gradle.kts index 727a6a6dab..53c40ef8f4 100755 --- a/examples/imageviewer/build.gradle.kts +++ b/examples/imageviewer/build.gradle.kts @@ -10,7 +10,7 @@ buildscript { } dependencies { - classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build57") + classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build62") classpath("com.android.tools.build:gradle:4.0.1") classpath(kotlin("gradle-plugin", version = "1.4.0")) } diff --git a/examples/imageviewer/common/src/desktopMain/kotlin/example/imageviewer/view/MainScreen.kt b/examples/imageviewer/common/src/desktopMain/kotlin/example/imageviewer/view/MainScreen.kt index 2933c2dabb..b45cab0565 100755 --- a/examples/imageviewer/common/src/desktopMain/kotlin/example/imageviewer/view/MainScreen.kt +++ b/examples/imageviewer/common/src/desktopMain/kotlin/example/imageviewer/view/MainScreen.kt @@ -288,9 +288,9 @@ fun setScrollableArea(content: ContentState) { } } VerticalScrollbar( + adapter = rememberScrollbarAdapter(stateVertical), modifier = Modifier.align(Alignment.CenterEnd) - .fillMaxHeight(), - adapter = rememberScrollbarAdapter(stateVertical) + .fillMaxHeight() ) } } diff --git a/examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt b/examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt index 1c0615f907..fe227c8042 100644 --- a/examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt +++ b/examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt @@ -10,7 +10,7 @@ object Deps { } object Compose { - private const val VERSION = "0.1.0-m1-build57" + private const val VERSION = "0.1.0-m1-build62" const val gradlePlugin = "org.jetbrains.compose:compose-gradle-plugin:$VERSION" } } diff --git a/examples/todoapp/desktop/src/jvmMain/kotlin/example/todo/desktop/Main.kt b/examples/todoapp/desktop/src/jvmMain/kotlin/example/todo/desktop/Main.kt index 33b60be65d..7577352fb1 100644 --- a/examples/todoapp/desktop/src/jvmMain/kotlin/example/todo/desktop/Main.kt +++ b/examples/todoapp/desktop/src/jvmMain/kotlin/example/todo/desktop/Main.kt @@ -2,6 +2,7 @@ package example.todo.desktop import androidx.compose.desktop.AppWindow import androidx.compose.desktop.DesktopTheme +import androidx.compose.desktop.Window import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material.MaterialTheme import androidx.compose.material.Surface @@ -23,7 +24,7 @@ fun main() { val lifecycle = LifecycleRegistry() lifecycle.resume() - AppWindow("Todo").show { + Window("Todo") { Surface(modifier = Modifier.fillMaxSize()) { MaterialTheme { DesktopTheme { diff --git a/templates/desktop-template/build.gradle.kts b/templates/desktop-template/build.gradle.kts index 3ee01fb050..99ea7f7923 100644 --- a/templates/desktop-template/build.gradle.kts +++ b/templates/desktop-template/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat plugins { kotlin("jvm") version "1.4.0" - id("org.jetbrains.compose") version (System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.1.0-m1-build57") + id("org.jetbrains.compose") version (System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.1.0-m1-build62") } repositories { diff --git a/templates/multiplatform-template/build.gradle.kts b/templates/multiplatform-template/build.gradle.kts index 469fb8fb93..f3b6f34779 100644 --- a/templates/multiplatform-template/build.gradle.kts +++ b/templates/multiplatform-template/build.gradle.kts @@ -1,5 +1,5 @@ buildscript { - val composeVersion = System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.1.0-m1-build57" + val composeVersion = System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION") ?: "0.1.0-m1-build62" repositories { // TODO: remove after new build is published