Skip to content

Commit

Permalink
fix some gradle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Nov 10, 2024
1 parent f713b83 commit f2e0074
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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") ||
Expand All @@ -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 {
Expand Down

0 comments on commit f2e0074

Please sign in to comment.