From 4a6ebfa2b1bacfe309ff1c18343a9bbb215d7a9e Mon Sep 17 00:00:00 2001 From: alperozturk96 Date: Fri, 6 Nov 2026 11:08:08 +0300 Subject: [PATCH 1/3] disable r8 Signed-off-by: alperozturk96 --- app/build.gradle.kts | 6 +++--- fastlane/Fastfile | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index bc3732168e3f..2a81f95c5d9a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -128,9 +128,6 @@ android { buildTypes { release { - optimization { - enable = true - } buildConfigField("String", "NC_TEST_SERVER_DATA_STRING", "\"\"") ndk { abiFilters += allAbis @@ -140,6 +137,9 @@ android { enableUnitTestCoverage = project.hasProperty("coverage") enableAndroidTestCoverage = project.hasProperty("coverage") resConfigs("xxxhdpi") + optimization { + enable = true + } ndk { abiFilters += if (ciBuild) allAbis else localDebugAbis } diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4e757647d078..971d71dff2c2 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -29,13 +29,6 @@ GRADLE_SIGNING_PROPERTIES = { import("./common.Fastfile") platform :android do - - before_all do - gradleFile = "../app/build.gradle.kts" - content = File.read(gradleFile) - File.write(gradleFile, content.sub(/(optimization\s*\{\s*enable\s*=\s*)true/, '\\1false')) - end - ## private lanes desc "check if library is set correctly" private_lane :checkLibrary do |options| From 81c6a3578118f66be3ff807231d8b067cfc043f5 Mon Sep 17 00:00:00 2001 From: alperozturk96 Date: Fri, 6 Nov 2026 11:10:54 +0300 Subject: [PATCH 2/3] configure r8 Signed-off-by: alperozturk96 --- app/build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2a81f95c5d9a..fe8617584ea5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,6 +19,7 @@ val ciBuild = System.getenv("CI") == "true" val perfAnalysis = project.hasProperty("perfAnalysis") val allAbis = listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64") +var enableR8 = false val localDebugAbis = when (System.getProperty("os.arch")) { "aarch64", "arm64" -> listOf("arm64-v8a") else -> listOf("arm64-v8a", "x86_64") @@ -129,6 +130,9 @@ android { buildTypes { release { buildConfigField("String", "NC_TEST_SERVER_DATA_STRING", "\"\"") + optimization { + enable = enableR8 + } ndk { abiFilters += allAbis } @@ -138,7 +142,7 @@ android { enableAndroidTestCoverage = project.hasProperty("coverage") resConfigs("xxxhdpi") optimization { - enable = true + enable = enableR8 } ndk { abiFilters += if (ciBuild) allAbis else localDebugAbis @@ -168,6 +172,7 @@ android { dimension = "default" versionCode = 20220322 versionName = "20220322" + enableR8 = true } register("qa") { From bafaac595157ac10b5bba2774938b03bb2a13ae1 Mon Sep 17 00:00:00 2001 From: alperozturk96 Date: Fri, 6 Nov 2026 11:18:58 +0300 Subject: [PATCH 3/3] configure r8 Signed-off-by: alperozturk96 --- app/build.gradle.kts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fe8617584ea5..59573848d528 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,7 +19,6 @@ val ciBuild = System.getenv("CI") == "true" val perfAnalysis = project.hasProperty("perfAnalysis") val allAbis = listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64") -var enableR8 = false val localDebugAbis = when (System.getProperty("os.arch")) { "aarch64", "arm64" -> listOf("arm64-v8a") else -> listOf("arm64-v8a", "x86_64") @@ -130,9 +129,6 @@ android { buildTypes { release { buildConfigField("String", "NC_TEST_SERVER_DATA_STRING", "\"\"") - optimization { - enable = enableR8 - } ndk { abiFilters += allAbis } @@ -142,7 +138,7 @@ android { enableAndroidTestCoverage = project.hasProperty("coverage") resConfigs("xxxhdpi") optimization { - enable = enableR8 + enable = true } ndk { abiFilters += if (ciBuild) allAbis else localDebugAbis @@ -172,7 +168,9 @@ android { dimension = "default" versionCode = 20220322 versionName = "20220322" - enableR8 = true + optimization { + enable = true + } } register("qa") {