Browse Source

Move few examples to m1-build57

pull/43/head
Nikolay Igotti 4 years ago
parent
commit
5fe9d53c3c
  1. 2
      examples/imageviewer/build.gradle.kts
  2. 2
      examples/issues/build.gradle.kts
  3. 4
      examples/issues/common/src/desktopMain/kotlin/androidx/ui/examples/jetissues/common/Platform.kt
  4. 2
      examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt

2
examples/imageviewer/build.gradle.kts

@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-dev109")
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build57")
classpath("org.jetbrains.compose:compose-desktop-application-gradle-plugin:0.1.0-SNAPSHOT")
classpath("com.android.tools.build:gradle:4.0.1")
classpath(kotlin("gradle-plugin", version = "1.4.0"))

2
examples/issues/build.gradle.kts

@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-dev109")
classpath("org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build57")
classpath("com.android.tools.build:gradle:4.0.1")
classpath(kotlin("gradle-plugin", version = "1.4.0"))
}

4
examples/issues/common/src/desktopMain/kotlin/androidx/ui/examples/jetissues/common/Platform.kt

@ -5,6 +5,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.DesktopSelectionContainer
import androidx.compose.ui.selection.Selection
import androidx.compose.ui.text.InternalTextApi
@Composable
actual fun SelectionContainer(children: @Composable () -> Unit) {
@ -17,10 +18,11 @@ actual fun SelectionContainer(children: @Composable () -> Unit) {
}
@Composable
@OptIn(InternalTextApi::class)
actual fun WithoutSelection(children: @Composable () -> Unit) {
androidx.compose.ui.selection.SelectionContainer(
selection = null,
onSelectionChange = {},
children = children
)
}
}

2
examples/todoapp/buildSrc/buildSrc/src/main/kotlin/Deps.kt

@ -10,7 +10,7 @@ object Deps {
}
object Compose {
private const val VERSION = "0.1.0-dev109"
private const val VERSION = "0.1.0-m1-build57"
const val gradlePlugin = "org.jetbrains.compose:compose-gradle-plugin:$VERSION"
}
}

Loading…
Cancel
Save