commit 999ac573197d6454bce42791a02cb301ae0163b8 Author: Fabio Mazza Date: Thu Oct 1 17:55:17 2026 +0200 Upgrade gradle plugin and libraries Summary: Update google libraries and remove as many legacy flags as possible Update MQTT library Reviewers: #libre_busto_hackers, valerio.bozzolan Reviewed By: #libre_busto_hackers, valerio.bozzolan Subscribers: valerio.bozzolan Project Tags: #libre_busto Differential Revision: https://gitpull.it/D260 diff --git a/app/build.gradle b/app/build.gradle index 5abdd8e..5c19af7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,5 @@ plugins { id 'com.google.protobuf' - id 'org.jetbrains.kotlin.android' id 'com.android.application' id 'com.google.devtools.ksp' } @@ -109,7 +108,6 @@ ksp { dependencies { coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.1.5" - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version" implementation 'androidx.legacy:legacy-support-v4:1.0.0' @@ -121,8 +119,8 @@ dependencies { implementation "androidx.fragment:fragment-ktx:$fragment_version" implementation "androidx.activity:activity-ktx:$activity_version" - implementation "androidx.annotation:annotation:1.9.1" - implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" + implementation "androidx.annotation:annotation:1.11.0" + implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0" implementation "androidx.appcompat:appcompat:$appcompat_version" implementation "androidx.appcompat:appcompat-resources:$appcompat_version" implementation "androidx.preference:preference-ktx:$preference_version" @@ -131,12 +129,12 @@ dependencies { implementation "androidx.work:work-runtime-ktx:$work_version" - implementation "com.google.android.material:material:1.13.0" - implementation 'androidx.constraintlayout:constraintlayout:2.2.1' + implementation "com.google.android.material:material:1.14.0" + implementation 'androidx.constraintlayout:constraintlayout:2.2.2' implementation "androidx.coordinatorlayout:coordinatorlayout:1.3.0" - implementation 'org.jsoup:jsoup:1.22.1' + implementation 'org.jsoup:jsoup:1.23.2' implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1' implementation 'com.android.volley:volley:1.2.1' //maplibre @@ -151,13 +149,13 @@ dependencies { implementation "ch.acra:acra-mail:$acra_version" implementation "ch.acra:acra-dialog:$acra_version" // google transit realtime - implementation 'com.google.protobuf:protoc:4.34.1' - implementation 'com.google.protobuf:protobuf-javalite:4.34.1' + implementation 'com.google.protobuf:protoc:4.36.2' + implementation 'com.google.protobuf:protobuf-javalite:4.36.2' // mqtt library //implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' //implementation 'com.github.hannesa2:paho.mqtt.android:4.4' - implementation("com.hivemq:hivemq-mqtt-client:1.3.13") - implementation(platform("com.hivemq:hivemq-mqtt-client-websocket:1.3.13")) + implementation("com.hivemq:hivemq-mqtt-client:1.4.0") + implementation(platform("com.hivemq:hivemq-mqtt-client-websocket:1.4.0")) // ViewModel implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" // LiveData diff --git a/build.gradle b/build.gradle index 431791c..0f1849e 100644 --- a/build.gradle +++ b/build.gradle @@ -6,17 +6,16 @@ buildscript { maven { url 'https://maven.google.com' } google() maven { url 'https://jitpack.io' } - + gradlePluginPortal() } //kotlin ext.kotlin_version = '2.2.20' ext.coroutines_version = "1.10.2" dependencies { - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.5' // or latest - classpath 'com.android.tools.build:gradle:8.13.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:$kotlin_version-2.0.4" + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.10.0' // or latest + classpath 'com.android.tools.build:gradle:9.1.0' + classpath "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:2.3.4" } } @@ -27,16 +26,16 @@ ext { //multidex multidex_version = "2.0.1" //libraries versions - fragment_version = "1.8.9" + fragment_version = "1.9.1" activity_version = "1.13.0" - appcompat_version = "1.7.1" + appcompat_version = "1.8.0" preference_version = "1.2.1" - work_version = "2.11.2" + work_version = "2.12.0" acra_version = "5.13.1" - lifecycle_version = "2.10.0" + lifecycle_version = "2.11.0" arch_version = "2.1.0" - room_version = "2.8.4" + room_version = "2.8.5" } diff --git a/gradle.properties b/gradle.properties index f12939a..36e57e5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,4 @@ +android.enableAppCompileTimeRClass=false android.nonFinalResIds=false android.nonTransitiveRClass=false android.useAndroidX=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37f853b..37f78a6 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME