android: bump targetSdkVersion to 35, update dependencies

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
angott/libs-update-250114
Andrea Gottardo 11 months ago
parent a2850b1078
commit aa535f421e

@ -11,7 +11,7 @@ buildscript {
} }
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:8.6.1' classpath 'com.android.tools.build:gradle:8.8.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath("com.ncorti.ktfmt.gradle:plugin:0.17.0") classpath("com.ncorti.ktfmt.gradle:plugin:0.17.0")
@ -33,10 +33,10 @@ apply plugin: 'com.ncorti.ktfmt.gradle'
android { android {
ndkVersion "23.1.7779620" ndkVersion "23.1.7779620"
compileSdkVersion 34 compileSdkVersion 35
defaultConfig { defaultConfig {
minSdkVersion 26 minSdkVersion 26
targetSdkVersion 34 targetSdkVersion 35
versionCode 346 versionCode 346
versionName getVersionProperty("VERSION_LONG") versionName getVersionProperty("VERSION_LONG")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@ -109,11 +109,11 @@ android {
dependencies { dependencies {
// Android dependencies. // Android dependencies.
implementation "androidx.core:core:1.13.1" implementation "androidx.core:core:1.15.0"
implementation 'androidx.core:core-ktx:1.13.1' implementation 'androidx.core:core-ktx:1.15.0'
implementation "androidx.browser:browser:1.8.0" implementation "androidx.browser:browser:1.8.0"
implementation "androidx.security:security-crypto:1.1.0-alpha06" implementation "androidx.security:security-crypto:1.1.0-alpha06"
implementation "androidx.work:work-runtime:2.9.1" implementation "androidx.work:work-runtime:2.10.0"
// Kotlin dependencies. // Kotlin dependencies.
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
@ -124,21 +124,21 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// Compose dependencies. // Compose dependencies.
def composeBom = platform('androidx.compose:compose-bom:2024.09.03') def composeBom = platform('androidx.compose:compose-bom:2024.12.01')
implementation composeBom implementation composeBom
implementation 'androidx.compose.material3:material3:1.3.0' implementation 'androidx.compose.material3:material3:1.3.1'
implementation 'androidx.compose.material:material-icons-core:1.7.3' implementation 'androidx.compose.material:material-icons-core:1.7.6'
implementation "androidx.compose.ui:ui:1.7.3" implementation "androidx.compose.ui:ui:1.7.6"
implementation "androidx.compose.ui:ui-tooling:1.7.3" implementation "androidx.compose.ui:ui-tooling:1.7.6"
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.6' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
implementation 'androidx.activity:activity-compose:1.9.2' implementation 'androidx.activity:activity-compose:1.9.3'
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version" implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version" implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
implementation "androidx.core:core-splashscreen:1.1.0-rc01" implementation "androidx.core:core-splashscreen:1.1.0-rc01"
implementation "androidx.compose.animation:animation:1.7.4" implementation "androidx.compose.animation:animation:1.7.6"
// Navigation dependencies. // Navigation dependencies.
def nav_version = "2.8.2" def nav_version = "2.8.5"
implementation "androidx.navigation:navigation-compose:$nav_version" implementation "androidx.navigation:navigation-compose:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version" implementation "androidx.navigation:navigation-ui-ktx:$nav_version"

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d distributionSha256Sum=31c55713e40233a8303827ceb42ca48a47267a0ad4bab9177123121e71524c26
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

@ -53,7 +53,7 @@ object TSLog {
appContext.packageManager.getPackageInfo(appContext.packageName, 0).versionName appContext.packageManager.getPackageInfo(appContext.packageName, 0).versionName
// Extract the middle number and check if it's odd // Extract the middle number and check if it's odd
val middleNumber = versionName.split(".").getOrNull(1)?.toIntOrNull() val middleNumber = versionName?.split(".")?.getOrNull(1)?.toIntOrNull()
return middleNumber?.let { it % 2 == 1 } ?: false return middleNumber?.let { it % 2 == 1 } ?: false
} }

Loading…
Cancel
Save