@@ -4,15 +4,6 @@ plugins {
44 id(" org.jetbrains.kotlin.android" )
55}
66
7- configurations.all {
8- exclude(group = " com.google.android.play" , module = " core" )
9- exclude(group = " com.google.android.play" , module = " core-common" )
10- exclude(group = " com.google.android.play" , module = " feature-delivery" )
11- exclude(group = " com.google.android.play" , module = " app-update" )
12- exclude(group = " com.google.android.play" , module = " tasks" )
13- exclude(group = " com.google.android.play" , module = " split-install" )
14- }
15-
167android {
178 namespace = " in.commandlinecoding.elephant"
189 compileSdk = flutter.compileSdkVersion
@@ -36,7 +27,6 @@ android {
3627 signingConfig = signingConfigs.getByName(" debug" )
3728 isMinifyEnabled = true
3829 isShrinkResources = true
39-
4030 proguardFiles(
4131 getDefaultProguardFile(" proguard-android-optimize.txt" ),
4232 " proguard-rules.pro"
@@ -55,30 +45,8 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
5545 }
5646}
5747
58- project.afterEvaluate {
59- tasks.configureEach {
60- if (name.contains(" minifyReleaseWithR8" ) || name.contains(" minifyReleaseWithProguard" ) || name.contains(" dexBuilderRelease" )) {
61- doFirst {
62- logger.lifecycle(" FOSS SANITIZER: Active. Sweeping intermediate files for non-free binaries..." )
63-
64- val searchDirs = listOf (
65- File (project.layout.buildDirectory.asFile.get(), " intermediates/classes/release" ),
66- File (project.layout.buildDirectory.asFile.get(), " intermediates/javac/release" )
67- )
68-
69- for (dir in searchDirs) {
70- if (dir.exists()) {
71- dir.walkTopDown().forEach { file ->
72- if (file.isDirectory && file.absolutePath.endsWith(" com/google/android/play/core" )) {
73- file.deleteRecursively()
74- logger.lifecycle(" Successfully deleted shaded directory: ${file.absolutePath} " )
75- }
76- }
77- }
78- }
79- }
80- }
48+ afterEvaluate {
49+ configurations.all {
50+ exclude(group = " com.google.android.play" )
8151 }
82- }
83-
84- dependencies {}
52+ }
0 commit comments