Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aliernfrog committed Apr 17, 2024
1 parent 5dee938 commit 75d1cbb
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 25 deletions.
14 changes: 7 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ plugins {
id("org.jetbrains.kotlin.plugin.parcelize")
}

val composeMaterialVersion = "1.6.2"
val composeMaterial3Version = "1.2.0"
val composeCompilerVersion = "1.5.10"
val composeMaterialVersion = "1.7.0-alpha07"
val composeMaterial3Version = "1.3.0-alpha05"
val composeCompilerVersion = "1.5.12"
val lifecycleVersion = "2.7.0"
val shizukuVersion = "13.1.5"

Expand Down Expand Up @@ -81,7 +81,7 @@ android.defaultConfig.buildConfigField("String[]", "LANGUAGES", "new String[]{${
}}")

dependencies {
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.core:core-ktx:1.13.0")
implementation("androidx.core:core-splashscreen:1.0.1")
implementation("androidx.compose.ui:ui:$composeMaterialVersion")
implementation("androidx.compose.material:material:$composeMaterialVersion")
Expand All @@ -90,10 +90,10 @@ dependencies {
implementation("androidx.compose.material3:material3-window-size-class:$composeMaterial3Version")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
implementation("androidx.lifecycle:lifecycle-runtime-compose:$lifecycleVersion")
implementation("androidx.activity:activity-compose:1.8.2")
implementation("androidx.activity:activity-compose:1.9.0")
implementation("androidx.navigation:navigation-compose:2.7.7")
implementation("io.insert-koin:koin-androidx-compose:3.5.3")
implementation("aliernfrog:top-toast-compose:2.0.0")
implementation("io.insert-koin:koin-androidx-compose:3.5.6")
implementation("aliernfrog:top-toast-compose:2.0.1-alpha01")
implementation("com.lazygeniouz:dfc:1.0.8")
implementation("dev.rikka.shizuku:api:$shizukuVersion")
implementation("dev.rikka.shizuku:provider:$shizukuVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ fun BaseModalBottomSheet(
dragHandle = dragHandle,
windowInsets = WindowInsets(0.dp)
) {
content(
// Adding top padding since Modifier.padding causes an offset on the bottom sheet
insetsViewModel.topPadding+insetsViewModel.bottomPadding
)
content(insetsViewModel.bottomPadding)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ fun InsetsObserver(
Spacer(
modifier = Modifier
.onSizeChanged {
// no idea why height is doubled
insetsViewModel.topPadding = toDp(it.height/2)
insetsViewModel.topPadding = toDp(it.height)
}
.statusBarsPadding()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.clickable
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.runtime.remember
import androidx.compose.material3.ripple
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.draw.drawWithContent
Expand All @@ -21,8 +19,8 @@ fun Modifier.clickableWithColor(
onClick: () -> Unit
): Modifier = composed {
this.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(color = color),
interactionSource = null,
indication = ripple(color = color),
onClick = onClick
)
}
Expand All @@ -34,8 +32,8 @@ fun Modifier.combinedClickableWithColor(
onClick: () -> Unit
): Modifier = composed {
this.combinedClickable(
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(color = color),
interactionSource = null,
indication = ripple(color = color),
onLongClick = onLongClick,
onClick = onClick
)
Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.application") version "8.2.2" apply false
id("com.android.library") version "8.2.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
id("org.jetbrains.kotlin.plugin.parcelize") version "1.9.22" apply false
id("com.android.application") version "8.3.2" apply false
id("com.android.library") version "8.3.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
id("org.jetbrains.kotlin.plugin.parcelize") version "1.9.23" apply false
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu May 12 18:53:32 TRT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

0 comments on commit 75d1cbb

Please sign in to comment.