Skip to content

Commit fc2be23

Browse files
committed
Support Android 35
1 parent bfa75a1 commit fc2be23

File tree

4 files changed

+29
-28
lines changed

4 files changed

+29
-28
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313

1414
defaultConfig {
1515
// versionCode and versionName must be hardcoded to support F-droid
16-
versionCode = 1706041
17-
versionName = "17.6.4"
16+
versionCode = 1707001
17+
versionName = "17.7.0"
1818
minSdk = libs.versions.minSdk.get().toInt()
1919
targetSdk = libs.versions.targetSdk.get().toInt()
2020
compileSdk = libs.versions.compileSdk.get().toInt()

app/src/main/java/dev/lucasnlm/antimine/GameActivity.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@ class GameActivity :
9393
}
9494

9595
@SuppressLint("MissingSuperCall")
96-
override fun onNewIntent(intent: Intent?) {
96+
override fun onNewIntent(intent: Intent) {
9797
super.onNewIntent(intent)
98-
intent?.run(::handleIntent)
98+
intent.run(::handleIntent)
9999

100100
GameContext.zoom = 1.0f
101101
GameContext.zoomLevelAlpha = 1.0f
102102
}
103103

104+
@SuppressLint("DefaultLocale")
104105
private fun Int.toL10nString() = String.format("%d", this)
105106

106107
private fun showGameWarning(
@@ -154,7 +155,7 @@ class GameActivity :
154155
when {
155156
queryParamDifficulty != null -> {
156157
val upperDifficulty = queryParamDifficulty.uppercase()
157-
val difficulty = Difficulty.values().firstOrNull { it.id == upperDifficulty }
158+
val difficulty = Difficulty.entries.firstOrNull { it.id == upperDifficulty }
158159
if (difficulty == null) {
159160
gameViewModel.loadLastGame()
160161
} else {

gradle/libs.versions.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
[versions]
22
minSdk = "21"
3-
targetSdk = "34"
3+
targetSdk = "35"
44
wearTargetSdk = "33"
55
wearMinSdk = "25"
6-
compileSdk = "34"
6+
compileSdk = "35"
77

88
acra = "5.11.2"
9-
activityKtx = "1.8.1"
9+
activityKtx = "1.9.0"
1010
amplitude = "2.32.1"
11-
appcompat = "1.6.1"
12-
billingKtx = "6.1.0"
11+
appcompat = "1.7.0"
12+
billingKtx = "7.0.0"
1313
bugsnagAndroid = "5.31.2"
1414
constraintlayout = "2.1.4"
15-
coreKtx = "1.12.0"
16-
coreKtxVersion = "1.5.0"
17-
coreSplashscreen = "1.1.0-alpha02"
18-
espressoCore = "3.5.1"
19-
fragmentKtx = "1.6.2"
15+
coreKtx = "1.13.1"
16+
coreKtxVersion = "1.6.1"
17+
coreSplashscreen = "1.1.0-rc01"
18+
espressoCore = "3.6.1"
19+
fragmentKtx = "1.8.1"
2020
gdx = "1.12.1"
2121
google-coreKtx = "1.8.1"
2222
junit = "4.13.2"
23-
junitVersion = "1.1.5"
23+
junitVersion = "1.2.1"
2424
koinAndroid = "3.1.2"
2525
konfettiXml = "2.0.3"
2626
kotlinxCoroutinesCore = "1.7.3"
27-
lifecycleViewmodelKtx = "2.6.2"
28-
material = "1.10.0"
27+
lifecycleViewmodelKtx = "2.8.3"
28+
material = "1.12.0"
2929
mockitoCore = "4.6.1"
3030
mockitoKotlin = "2.1.0"
3131
mockk = "1.13.5"
3232
multidex = "2.0.1"
3333
okhttp = "4.10.0"
34-
orchestrator = "1.4.2"
35-
playServicesAds = "22.6.0"
36-
playServicesAuth = "20.7.0"
37-
playServicesGames = "23.1.0"
38-
playServicesInstantapps = "18.0.1"
34+
orchestrator = "1.5.0"
35+
playServicesAds = "23.2.0"
36+
playServicesAuth = "21.2.0"
37+
playServicesGames = "23.2.0"
38+
playServicesInstantapps = "18.1.0"
3939
preferenceKtx = "1.2.1"
4040
recyclerview = "1.3.2"
4141
robolectric = "4.5.1"
42-
runner = "1.5.2"
42+
runner = "1.6.1"
4343

4444
# Plugins
45-
android = "8.1.4"
46-
kotlin = "1.9.20"
47-
googleServices = "4.4.0"
45+
android = "8.5.0"
46+
kotlin = "1.9.22"
47+
googleServices = "4.4.2"
4848
wear = "1.3.0"
4949

5050
[libraries]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sat Oct 07 16:06:38 BRT 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)