66
77import com.android.build.api.artifact.SingleArtifact
88import com.android.build.api.variant.ResValue
9- import org.gradle.api.GradleException
10- import java.io.File
119import com.android.ddmlib.DdmPreferences
1210import java.io.FileInputStream
1311import java.text.SimpleDateFormat
@@ -32,6 +30,15 @@ if (propertiesFile.exists()) {
3230 keystoreProperties.load(FileInputStream (propertiesFile))
3331}
3432
33+ kotlin {
34+ jvmToolchain(21 )
35+
36+ compilerOptions {
37+ jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_21 )
38+ freeCompilerArgs.add(" -opt-in=kotlin.RequiresOptIn" )
39+ }
40+ }
41+
3542android {
3643 compileSdk = rootProject.extra[" compileSdkVersion" ] as Int
3744 namespace = " com.flowcrypt.email"
@@ -94,7 +101,6 @@ android {
94101
95102 buildTypes {
96103 getByName(" release" ) {
97- isShrinkResources = false
98104 isMinifyEnabled = false
99105 proguardFiles(getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro" )
100106 signingConfig = signingConfigs.getByName(" release" )
@@ -395,20 +401,6 @@ easylauncher {
395401 }
396402}
397403
398- java {
399- toolchain {
400- languageVersion.set(JavaLanguageVersion .of(21 ))
401- }
402- }
403-
404-
405- kotlin {
406- compilerOptions {
407- jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_21 )
408- freeCompilerArgs.add(" -opt-in=kotlin.RequiresOptIn" )
409- }
410- }
411-
412404tasks.register(" checkCorrectBranch" ) {
413405 if (! grgit.branch.current().name.equals(" master" )) {
414406 throw GradleException (" Please use 'master' branch to generate a release build" )
@@ -470,7 +462,7 @@ dependencies {
470462 androidTestImplementation(" androidx.test.uiautomator:uiautomator:2.3.0" )
471463 androidTestImplementation(" androidx.room:room-testing:2.8.4" )
472464 androidTestImplementation(" androidx.arch.core:core-testing:2.2.0" )
473- androidTestImplementation(" androidx.work:work-testing:2.11.0 " )
465+ androidTestImplementation(" androidx.work:work-testing:2.11.2 " )
474466 androidTestImplementation(" com.squareup.okhttp3:mockwebserver:5.3.2" )
475467 androidTestImplementation(" com.squareup.okhttp3:okhttp-tls:5.3.2" )
476468 androidTestImplementation(" com.athaydes.rawhttp:rawhttp-core:2.6.0" )
@@ -492,7 +484,7 @@ dependencies {
492484 implementation(" androidx.appcompat:appcompat:1.7.1" )
493485 implementation(" androidx.legacy:legacy-preference-v14:1.0.0" )
494486 implementation(" androidx.cardview:cardview:1.0.0" )
495- implementation(" androidx.browser:browser:1.9 .0" )
487+ implementation(" androidx.browser:browser:1.10 .0" )
496488 implementation(" androidx.recyclerview:recyclerview:1.4.0" )
497489 implementation(" androidx.recyclerview:recyclerview-selection:1.2.0" )
498490 implementation(" androidx.constraintlayout:constraintlayout:2.2.1" )
@@ -509,30 +501,30 @@ dependencies {
509501 // noinspection GradleDependency
510502 implementation(" androidx.paging:paging-runtime-ktx:2.1.2" )
511503 implementation(" androidx.preference:preference-ktx:1.2.1" )
512- implementation(" androidx.core:core-ktx:1.17 .0" )
504+ implementation(" androidx.core:core-ktx:1.18 .0" )
513505 implementation(" androidx.core:core-splashscreen:1.2.0" )
514506 implementation(" androidx.activity:activity-ktx:1.12.2" )
515507 implementation(" androidx.fragment:fragment-ktx:1.8.9" )
516- implementation(" androidx.work:work-runtime-ktx:2.11.0 " )
517- implementation(" androidx.navigation:navigation-fragment-ktx:2.9.6 " )
518- implementation(" androidx.navigation:navigation-ui-ktx:2.9.6 " )
519- implementation(" androidx.navigation:navigation-runtime-ktx:2.9.6 " )
508+ implementation(" androidx.work:work-runtime-ktx:2.11.2 " )
509+ implementation(" androidx.navigation:navigation-fragment-ktx:2.9.8 " )
510+ implementation(" androidx.navigation:navigation-ui-ktx:2.9.8 " )
511+ implementation(" androidx.navigation:navigation-runtime-ktx:2.9.8 " )
520512 implementation(" androidx.webkit:webkit:1.15.0" )
521513
522514 implementation(" com.google.android.gms:play-services-base:18.10.0" )
523- implementation(" com.google.android.gms:play-services-auth:21.5.0 " )
515+ implementation(" com.google.android.gms:play-services-auth:21.5.1 " )
524516 implementation(" com.google.android.material:material:1.13.0" )
525517 implementation(" com.google.android.flexbox:flexbox:3.0.0" )
526518 implementation(" com.google.code.gson:gson:2.13.2" )
527- implementation(" com.google.api-client:google-api-client-android:2.8.1 " )
519+ implementation(" com.google.api-client:google-api-client-android:2.9.0 " )
528520 implementation(" com.google.apis:google-api-services-gmail:v1-rev20251201-2.0.0" )
529521 // ACRA needs the following dependency to use a custom report sender
530522 implementation(" com.google.auto.service:auto-service-annotations:1.1.1" )
531523
532524 implementation(" com.squareup.retrofit2:retrofit:3.0.0" )
533525 implementation(" com.squareup.retrofit2:converter-gson:3.0.0" )
534526 implementation(" com.squareup.retrofit2:converter-scalars:3.0.0" )
535- implementation(" com.squareup.okio:okio:3.16.4 " )
527+ implementation(" com.squareup.okio:okio:3.17.0 " )
536528 implementation(" com.squareup.okhttp3:logging-interceptor:5.3.2" )
537529
538530 implementation(" com.github.bumptech.glide:glide:5.0.7" )
@@ -549,7 +541,7 @@ dependencies {
549541 implementation(" org.pgpainless:pgpainless-core:2.0.2" )
550542 implementation(" org.eclipse.angus:angus-mail:2.0.5" )
551543 implementation(" org.eclipse.angus:gimap:2.0.5" )
552- implementation(" commons-io:commons-io:2.21 .0" )
544+ implementation(" commons-io:commons-io:2.22 .0" )
553545 implementation(" net.openid:appauth:0.11.1" )
554546 implementation(" ch.acra:acra-http:5.13.1" )
555547 implementation(" io.github.everythingme:overscroll-decor-android:1.1.1" )
0 commit comments