From adbbdad7a0abb5a3a8e2596672758fdac33461ed Mon Sep 17 00:00:00 2001 From: Suman Biswas Date: Mon, 13 Jul 2026 22:46:46 +0530 Subject: [PATCH] final fix --- mobile/android/app/build.gradle.kts | 40 +++-------------------------- 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/mobile/android/app/build.gradle.kts b/mobile/android/app/build.gradle.kts index 1b55100..ceb6a87 100644 --- a/mobile/android/app/build.gradle.kts +++ b/mobile/android/app/build.gradle.kts @@ -4,15 +4,6 @@ plugins { id("org.jetbrains.kotlin.android") } -configurations.all { - exclude(group = "com.google.android.play", module = "core") - exclude(group = "com.google.android.play", module = "core-common") - exclude(group = "com.google.android.play", module = "feature-delivery") - exclude(group = "com.google.android.play", module = "app-update") - exclude(group = "com.google.android.play", module = "tasks") - exclude(group = "com.google.android.play", module = "split-install") -} - android { namespace = "in.commandlinecoding.elephant" compileSdk = flutter.compileSdkVersion @@ -36,7 +27,6 @@ android { signingConfig = signingConfigs.getByName("debug") isMinifyEnabled = true isShrinkResources = true - proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" @@ -55,30 +45,8 @@ tasks.withType().configureEach } } -project.afterEvaluate { - tasks.configureEach { - if (name.contains("minifyReleaseWithR8") || name.contains("minifyReleaseWithProguard") || name.contains("dexBuilderRelease")) { - doFirst { - logger.lifecycle("FOSS SANITIZER: Active. Sweeping intermediate files for non-free binaries...") - - val searchDirs = listOf( - File(project.layout.buildDirectory.asFile.get(), "intermediates/classes/release"), - File(project.layout.buildDirectory.asFile.get(), "intermediates/javac/release") - ) - - for (dir in searchDirs) { - if (dir.exists()) { - dir.walkTopDown().forEach { file -> - if (file.isDirectory && file.absolutePath.endsWith("com/google/android/play/core")) { - file.deleteRecursively() - logger.lifecycle("Successfully deleted shaded directory: ${file.absolutePath}") - } - } - } - } - } - } +afterEvaluate { + configurations.all { + exclude(group = "com.google.android.play") } -} - -dependencies {} +} \ No newline at end of file