Pass filesystem-root, filesystem-scheme options through flutter run, build and gradle. (#15592)

* Pass filesystem-root, filesystem-scheme options through flutter run/build/gradle.
This commit is contained in:
Alexander Aprelev
2018-03-16 11:16:54 -07:00
committed by GitHub
parent 95fbd819fa
commit 0f659fb10b
11 changed files with 126 additions and 10 deletions

View File

@@ -303,6 +303,10 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta
command.add('-Pextra-front-end-options=${buildInfo.extraFrontEndOptions}');
if (buildInfo.extraGenSnapshotOptions != null)
command.add('-Pextra-gen-snapshot-options=${buildInfo.extraGenSnapshotOptions}');
if (buildInfo.fileSystemRoots != null)
command.add('-Pfilesystem-roots=${buildInfo.fileSystemRoots.join('|')}');
if (buildInfo.fileSystemScheme != null)
command.add('-Pfilesystem-scheme=${buildInfo.fileSystemScheme}');
}
if (buildInfo.preferSharedLibrary && androidSdk.ndkCompiler != null) {
command.add('-Pprefer-shared-library=true');