File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
library/src/main/java/com/aliernfrog/toptoast/component Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 11plugins {
2- id(" com.android.application" ) version " 8.1.4 " apply false
3- id(" com.android.library" ) version " 8.1.4 " apply false
4- id(" org.jetbrains.kotlin.android" ) version " 1.9.21 " apply false
2+ id(" com.android.application" ) version " 8.2.1 " apply false
3+ id(" com.android.library" ) version " 8.2.1 " apply false
4+ id(" org.jetbrains.kotlin.android" ) version " 1.9.22 " apply false
55}
66
77val libraryVersionName by extra { " 1.4.0-alpha03" }
88val libraryVersionCode by extra { 140 }
99
1010val coreVersion by extra { " 1.12.0" }
11- val composeCompilerVersion by extra { " 1.5.6 " }
12- val composeVersion by extra { " 1.6.0-beta03 " }
13- val material3Version by extra { " 1.2.0-beta01 " }
11+ val composeCompilerVersion by extra { " 1.5.8 " }
12+ val composeVersion by extra { " 1.6.0-rc01 " }
13+ val material3Version by extra { " 1.2.0-beta02 " }
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ android {
5757
5858dependencies {
5959 implementation(" androidx.core:core-ktx:$coreVersion " )
60- implementation(" androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 " )
60+ implementation(" androidx.lifecycle:lifecycle-runtime-ktx:2.7.0 " )
6161 implementation(" androidx.activity:activity-compose:1.8.2" )
6262 implementation(" androidx.compose.ui:ui:$composeVersion " )
6363 implementation(" androidx.compose.material:material:$composeVersion " )
Original file line number Diff line number Diff line change 11# Mon Aug 08 22:57:35 TRT 2022
22distributionBase =GRADLE_USER_HOME
3- distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.5 -bin.zip
44distributionPath =wrapper/dists
55zipStorePath =wrapper/dists
66zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import androidx.compose.animation.*
44import androidx.compose.animation.core.tween
55import androidx.compose.material3.ExperimentalMaterial3Api
66import androidx.compose.material3.SwipeToDismissBox
7- import androidx.compose.material3.SwipeToDismissValue
8- import androidx.compose.material3.rememberSwipeToDismissState
7+ import androidx.compose.material3.SwipeToDismissBoxValue
8+ import androidx.compose.material3.rememberSwipeToDismissBoxState
99import androidx.compose.runtime.Composable
1010import androidx.compose.ui.Modifier
1111import com.aliernfrog.toptoast.state.TopToastState
@@ -38,10 +38,10 @@ fun TopToastHost(
3838 )
3939 ) {
4040 if (state.allowSwipeToDismiss) SwipeToDismissBox (
41- state = rememberSwipeToDismissState (
41+ state = rememberSwipeToDismissBoxState (
4242 confirmValueChange = {
4343 val dismissed =
44- it == SwipeToDismissValue .StartToEnd || it == SwipeToDismissValue .EndToStart
44+ it == SwipeToDismissBoxValue .StartToEnd || it == SwipeToDismissBoxValue .EndToStart
4545 if (dismissed) state.dismissToast()
4646 true
4747 }
You can’t perform that action at this time.
0 commit comments