From 3cd957d1bfecd8f442b86a56433a60d2a42a9cba Mon Sep 17 00:00:00 2001 From: FunkyMuse Date: Wed, 20 Sep 2023 10:14:34 +0200 Subject: [PATCH] update to latest commons --- app/build.gradle.kts | 2 -- .../simplemobiletools/thankyou/screens/MainScreen.kt | 11 ----------- gradle/libs.versions.toml | 4 +--- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 04bc2e6..7f68cf8 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -107,8 +107,6 @@ android { } dependencies { - implementation(libs.kotlin.immutable.collections) - implementation(libs.simple.tools.commons) implementation(libs.bundles.lifecycle) implementation(libs.bundles.compose) diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt index 7aa8a42..020015a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/screens/MainScreen.kt @@ -81,17 +81,6 @@ internal fun MainScreen( } } -@Composable -fun topAppBarColors( - statusBarColor: Int, - colorTransitionFraction: Float, - contrastColor: Color -) = TopAppBarDefaults.topAppBarColors( - scrolledContainerColor = Color(statusBarColor), - containerColor = if (colorTransitionFraction == 1f) contrastColor else MaterialTheme.colorScheme.surface, - navigationIconContentColor = if (colorTransitionFraction == 1f) contrastColor else MaterialTheme.colorScheme.surface -) - @Composable @MyDevices private fun MainScreenPreview() { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c6c1dc6..57a07a7 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,9 +1,8 @@ [versions] #jetbrains kotlin = "1.9.10" -kotlin-immutable-collections = "0.3.5" #todo remove #Simple tools -simple-commons = "eceb48949e" +simple-commons = "985e1da5f9" #Compose composeActivity = "1.8.0-beta01" compose = "1.6.0-alpha05" @@ -47,7 +46,6 @@ compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" } compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "compose" } compose-uiTooling-debug = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" } compose-uiTooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" } -kotlin-immutable-collections = {module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlin-immutable-collections"} #todo remove [bundles] compose = [ "compose-activity",