Skip to content

Commit 936cfb8

Browse files
authored
reduce warnings inside flutter.groovy file #2 (flutter#155628)
follow up for : [flutter#152073](flutter#152073)
1 parent 146ea07 commit 936cfb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter_tools/gradle/src/main/groovy/flutter.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,15 +1423,15 @@ class FlutterPlugin implements Plugin<Project> {
14231423
filename += "-${buildModeFor(variant.buildType)}"
14241424
project.copy {
14251425
from new File("$outputDirectoryStr/${output.outputFileName}")
1426-
into new File("${project.buildDir}/outputs/flutter-apk")
1426+
into new File("${project.layout.buildDirectory.dir("outputs/flutter-apk").get()}")
14271427
rename {
14281428
return "${filename}.apk"
14291429
}
14301430
}
14311431
}
14321432
}
14331433
// Copy the native assets created by build.dart and placed here by flutter assemble.
1434-
String nativeAssetsDir = "${project.buildDir}/../native_assets/android/jniLibs/lib/"
1434+
String nativeAssetsDir = "${project.layout.buildDirectory.dir("../native_assets/android/jniLibs/lib").get()}/"
14351435
project.android.sourceSets.main.jniLibs.srcDir(nativeAssetsDir)
14361436
}
14371437
configurePlugins(project)

0 commit comments

Comments
 (0)