Skip to content

Commit 915a7f0

Browse files
author
wangzhengqi
committed
update libs version
1 parent 8cedfb8 commit 915a7f0

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ room {
1818

1919
android {
2020
namespace = "com.wzq.jd.compose.app"
21-
compileSdk = 34
21+
compileSdk = 35
2222

2323
defaultConfig {
2424
applicationId = "com.wzq.jd.compose.app"
2525
minSdk = 23
26-
targetSdk = 34
26+
targetSdk = 35
2727
versionCode = 1
2828
versionName = "1.0"
2929

app/src/main/java/com/wzq/jd/compose/app/ui/theme/Theme.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import androidx.compose.ui.graphics.Color
1414
import androidx.compose.ui.graphics.toArgb
1515
import androidx.compose.ui.platform.LocalContext
1616
import androidx.compose.ui.platform.LocalView
17+
import androidx.core.view.ViewCompat
1718
import androidx.core.view.WindowCompat
19+
import androidx.core.view.WindowInsetsCompat
1820

1921
private val DarkColorScheme = darkColorScheme(
2022
primary = Purple80,
@@ -59,7 +61,10 @@ fun JetpackDemoTheme(
5961
SideEffect {
6062
val window = (view.context as Activity).window
6163
WindowCompat.setDecorFitsSystemWindows(window, false)
62-
window.statusBarColor = Color.Transparent.toArgb()
64+
// val insetController = WindowCompat.getInsetsController(window, view)
65+
// ViewCompat.setOnApplyWindowInsetsListener(view) { v, insets ->
66+
// WindowInsetsCompat.CONSUMED
67+
// }
6368
WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = !darkTheme
6469
}
6570
}

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ agp = "8.7.1"
44
kotlin = "2.0.21"
55
ksp = "2.0.21-1.0.26"
66

7-
core-ktx = "1.13.1"
8-
lifecycle = "2.8.6"
7+
core-ktx = "1.15.0"
8+
lifecycle = "2.8.7"
99

10-
activity-compose = "1.9.3"
11-
compose-bom = "2024.10.00"
12-
navigation-compose = "2.8.3"
10+
activity-compose = "1.10.0"
11+
compose-bom = "2025.01.00"
12+
navigation-compose = "2.8.5"
1313

1414
ktor = "3.0.0"
1515
coil = "2.7.0"

0 commit comments

Comments
 (0)