reduce warnings inside flutter.groovy file #2 (#155628)

follow up for : [#152073](https://github.com/flutter/flutter/pull/152073)
This commit is contained in:
Mohellebi abdessalem 2024-09-25 20:41:20 +01:00 committed by GitHub
parent 146ea07abd
commit 936cfb8edc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1423,7 +1423,7 @@ class FlutterPlugin implements Plugin<Project> {
filename += "-${buildModeFor(variant.buildType)}"
project.copy {
from new File("$outputDirectoryStr/${output.outputFileName}")
into new File("${project.buildDir}/outputs/flutter-apk")
into new File("${project.layout.buildDirectory.dir("outputs/flutter-apk").get()}")
rename {
return "${filename}.apk"
}
@ -1431,7 +1431,7 @@ class FlutterPlugin implements Plugin<Project> {
}
}
// Copy the native assets created by build.dart and placed here by flutter assemble.
String nativeAssetsDir = "${project.buildDir}/../native_assets/android/jniLibs/lib/"
String nativeAssetsDir = "${project.layout.buildDirectory.dir("../native_assets/android/jniLibs/lib").get()}/"
project.android.sourceSets.main.jniLibs.srcDir(nativeAssetsDir)
}
configurePlugins(project)