Skip to content

Commit e428560

Browse files
committed
chore: update dependencies
Updates the following dependencies: * compileSdk to 35 * androidx.core:core-ktx to 1.15.0 * org.jetbrains.kotlin:kotlin-stdlib-jdk7 to 2.0.21 * id("com.android.application") to 8.8.0 * id("org.jetbrains.kotlin.android") to 2.1.0 * Gradle to 8.11.1 * Also renames the savedState variable to savedInstanceState in AmbientActivity.kt and MainActivity.kt to match the base class.
1 parent e0b85bc commit e428560

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

WearOS/Wearable/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
}
2222

2323
android {
24-
compileSdk = 34
24+
compileSdk = 35
2525

2626
defaultConfig {
2727
applicationId = "com.example.wearos"
@@ -52,8 +52,8 @@ android {
5252
// [START maps_wear_os_dependencies]
5353
dependencies {
5454
// [START_EXCLUDE]
55-
implementation("androidx.core:core-ktx:1.13.1")
56-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.0.0")
55+
implementation("androidx.core:core-ktx:1.15.0")
56+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.0.21")
5757
// [END_EXCLUDE]
5858
compileOnly("com.google.android.wearable:wearable:2.9.0")
5959
implementation("com.google.android.support:wearable:2.9.0")

WearOS/Wearable/src/main/kotlin/com/example/wearosmap/kt/AmbientActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class AmbientActivity : AppCompatActivity(), AmbientModeSupport.AmbientCallbackP
3030

3131
private lateinit var mapFragment: SupportMapFragment
3232

33-
public override fun onCreate(savedState: Bundle?) {
34-
super.onCreate(savedState)
33+
public override fun onCreate(savedInstanceState: Bundle?) {
34+
super.onCreate(savedInstanceState)
3535

3636
// Set the layout. It only contains a SupportMapFragment and a DismissOverlay.
3737
setContentView(R.layout.activity_main)

WearOS/Wearable/src/main/kotlin/com/example/wearosmap/kt/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class MainActivity : AppCompatActivity(), OnMapReadyCallback,
3939
private lateinit var mapFragment: SupportMapFragment
4040
// [END_EXCLUDE]
4141

42-
public override fun onCreate(savedState: Bundle?) {
43-
super.onCreate(savedState)
42+
public override fun onCreate(savedInstanceState: Bundle?) {
43+
super.onCreate(savedInstanceState)
4444

4545
// Set the layout. It only contains a SupportMapFragment and a DismissOverlay.
4646
setContentView(R.layout.activity_main)

WearOS/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
plugins {
18-
id("com.android.application") version "8.5.0" apply false
18+
id("com.android.application") version "8.8.0" apply false
1919
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") version "2.0.1" apply false
20-
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
20+
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
2121
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Jul 10 22:24:53 CEST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)