diff --git a/android/app/build.gradle b/android/app/build.gradle index db299abb..8d01abf2 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -85,7 +85,7 @@ android { // so `flutter run --release` works. signingConfig keystorePropertiesFile.exists() ? signingConfigs.release : signingConfigs.debug ndk { - debugSymbolLevel "full" + debugSymbolLevel "SYMBOL_TABLE" } proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" minifyEnabled true diff --git a/android/build.gradle b/android/build.gradle index b662475b..65d9c84d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -10,7 +10,9 @@ allprojects { mavenCentral() } } -rootProject.buildDir = "../build" +Directory newBuildDir = rootProject.layout.buildDirectory.dir("../../build").get() +rootProject.layout.buildDirectory.value(newBuildDir) + subprojects { afterEvaluate { project -> if (project.plugins.hasPlugin("com.android.application") || @@ -21,12 +23,14 @@ subprojects { } } } - project.buildDir = "${rootProject.buildDir}/${project.name}" + def newSubprojectBuildDir = newBuildDir.dir(project.name) + project.layout.buildDirectory.value(newSubprojectBuildDir) + project.evaluationDependsOn(":app") } tasks.register("clean", Delete) { - delete rootProject.buildDir + delete rootProject.layout.buildDirectory } configurations.all { resolutionStrategy {