update android

This commit is contained in:
Tom (plebeius.eth)
2025-05-13 14:19:28 +02:00
parent 7f676a3f4a
commit dda404fa40
6 changed files with 146 additions and 141 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
}
+13 -1
View File
@@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.1.0'
classpath 'com.google.gms:google-services:4.3.5'
// NOTE: Do not place your application dependencies here; they belong
@@ -27,3 +27,15 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
// Force Java 17 for all Android modules
subprojects { project ->
project.afterEvaluate {
if (project.hasProperty('android')) {
android.compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
}
}
+3 -3
View File
@@ -1,11 +1,11 @@
ext {
minSdkVersion = 22
compileSdkVersion = 33
targetSdkVersion = 33
compileSdkVersion = 35
targetSdkVersion = 35
androidxActivityVersion = '1.2.0'
androidxAppCompatVersion = '1.2.0'
androidxCoordinatorLayoutVersion = '1.1.0'
androidxCoreVersion = '1.3.2'
androidxCoreVersion = '1.15.0'
androidxFragmentVersion = '1.3.0'
junitVersion = '4.13.1'
androidxJunitVersion = '1.1.2'