forked from firka/flutter
Use flutter from in same repo (not path) in generate_gradle_lockfiles.dart (#155790)
Should hopefully fix https://github.com/flutter/flutter/issues/155704 ð
This commit is contained in:
@@ -179,7 +179,11 @@ void main(List<String> arguments) {
|
||||
final String appDirectory = androidDirectory.parent.absolute.path;
|
||||
|
||||
// Fetch pub dependencies.
|
||||
exec('flutter', <String>['pub', 'get'], workingDirectory: appDirectory);
|
||||
final String flutterPath = repoRoot
|
||||
.childDirectory('bin')
|
||||
.childFile('flutter')
|
||||
.path;
|
||||
exec(flutterPath, <String>['pub', 'get'], workingDirectory: appDirectory);
|
||||
|
||||
// Verify that the Gradlew wrapper exists.
|
||||
final File gradleWrapper = androidDirectory.childFile('gradlew');
|
||||
|
||||
Reference in New Issue
Block a user