Skip to content

Commit 83ae63d

Browse files
🤖 Update Dependencies (#440)
* 🤖 Update Dependencies * Update Gradle wrapper properties * Update to remove casting * Apply Spotless --------- Co-authored-by: Meghan <[email protected]> Co-authored-by: MagicalMeghan <[email protected]>
1 parent b9c07aa commit 83ae63d

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/touchinput/keyboardinput/KeyboardShortcutsHelper.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,20 @@
1616

1717
package com.example.compose.snippets.touchinput.keyboardinput
1818

19-
import android.app.Activity
2019
import android.os.Build
2120
import android.os.Bundle
2221
import android.view.KeyEvent
2322
import android.view.KeyboardShortcutGroup
2423
import android.view.KeyboardShortcutInfo
2524
import android.view.Menu
2625
import androidx.activity.ComponentActivity
26+
import androidx.activity.compose.LocalActivity
2727
import androidx.activity.compose.setContent
2828
import androidx.activity.enableEdgeToEdge
2929
import androidx.annotation.RequiresApi
3030
import androidx.compose.material3.Button
3131
import androidx.compose.material3.MaterialTheme
3232
import androidx.compose.material3.Text
33-
import androidx.compose.ui.platform.LocalContext
3433

3534
class MainActivity : ComponentActivity() {
3635
// Activity codes such as overridden onStart method.
@@ -66,7 +65,7 @@ class AnotherActivity : ComponentActivity() {
6665
setContent {
6766
MaterialTheme {
6867
// [START android_compose_keyboard_shortcuts_helper_request]
69-
val activity = LocalContext.current as? Activity
68+
val activity = LocalActivity.current
7069

7170
Button(
7271
onClick = {

gradle/libs.versions.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[versions]
22
accompanist = "0.36.0"
3-
androidGradlePlugin = "8.7.3"
4-
androidx-activity-compose = "1.9.3"
3+
androidGradlePlugin = "8.8.0"
4+
androidx-activity-compose = "1.10.0"
55
androidx-appcompat = "1.7.0"
6-
androidx-compose-bom = "2024.12.01"
6+
androidx-compose-bom = "2025.01.00"
77
androidx-compose-ui-test = "1.7.0-alpha08"
88
androidx-constraintlayout = "2.2.0"
99
androidx-constraintlayout-compose = "1.1.0"
@@ -18,44 +18,44 @@ androidx-navigation = "2.8.5"
1818
androidx-paging = "3.3.5"
1919
androidx-test = "1.6.1"
2020
androidx-test-espresso = "3.6.1"
21-
androidx-window = "1.4.0-alpha05"
21+
androidx-window = "1.4.0-beta01"
2222
androidxHiltNavigationCompose = "1.2.0"
2323
coil = "2.7.0"
2424
# @keep
2525
compileSdk = "35"
2626
compose-latest = "1.7.6"
2727
composeUiTooling = "1.4.0"
2828
coreSplashscreen = "1.0.1"
29-
coroutines = "1.9.0"
29+
coroutines = "1.10.1"
3030
glide = "1.0.0-beta01"
3131
google-maps = "19.0.0"
3232
gradle-versions = "0.51.0"
3333
guava = "33.4.0-jre"
34-
hilt = "2.53.1"
34+
hilt = "2.55"
3535
horologist = "0.6.22"
3636
junit = "4.13.2"
3737
kotlin = "2.1.0"
38-
kotlinxSerializationJson = "1.7.3"
38+
kotlinxSerializationJson = "1.8.0"
3939
ksp = "2.1.0-1.0.29"
40-
maps-compose = "6.4.0"
41-
material = "1.13.0-alpha08"
40+
maps-compose = "6.4.1"
41+
material = "1.13.0-alpha09"
4242
material3-adaptive = "1.0.0"
4343
material3-adaptive-navigation-suite = "1.3.1"
44-
media3 = "1.5.0"
44+
media3 = "1.5.1"
4545
# @keep
4646
minSdk = "21"
4747
playServicesWearable = "19.0.0"
48-
protolayout = "1.3.0-alpha05"
49-
protolayoutExpression = "1.3.0-alpha05"
50-
protolayoutMaterial = "1.3.0-alpha05"
51-
recyclerview = "1.3.2"
48+
protolayout = "1.3.0-alpha06"
49+
protolayoutExpression = "1.3.0-alpha06"
50+
protolayoutMaterial = "1.3.0-alpha06"
51+
recyclerview = "1.4.0"
5252
# @keep
5353
targetSdk = "34"
54-
tiles = "1.5.0-alpha05"
55-
tilesRenderer = "1.5.0-alpha05"
56-
tilesTesting = "1.5.0-alpha05"
57-
tilesTooling = "1.5.0-alpha05"
58-
tilesToolingPreview = "1.5.0-alpha05"
54+
tiles = "1.5.0-alpha06"
55+
tilesRenderer = "1.5.0-alpha06"
56+
tilesTesting = "1.5.0-alpha06"
57+
tilesTooling = "1.5.0-alpha06"
58+
tilesToolingPreview = "1.5.0-alpha06"
5959
version-catalog-update = "0.8.5"
6060
wear = "1.3.0"
6161
wearComposeFoundation = "1.4.0"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)