Manual Roll of Flutter Engine from 67254d6e4b03 to 8d83b98c55b3 (#116635)

* Roll Flutter Engine from 67254d6e4b03 to 8d83b98c55b3

* Roll Dart SDK from 35a9facce191 to e517487c5679 (Dart 3.0) (#38105)

* Bump SDK versions.

* Bump Dart SDK version constraints

* Update shrine package to 2.0.1 (null safe version)

* Fix more tests.

* Include patches from Jason for min android sdk version

* Fix analyzer warning
This commit is contained in:
Siva
2022-12-08 18:03:51 -08:00
committed by GitHub
parent afdc484011
commit 7c8e171320
104 changed files with 132 additions and 121 deletions

View File

@@ -287,6 +287,20 @@ android {
pubspec.writeAsStringSync(content, flush: true);
}
Future<void> setMinSdkVersion(int sdkVersion) async {
final File buildScript = File(
path.join(androidPath, 'app', 'build.gradle'),
);
buildScript.openWrite(mode: FileMode.append).write('''
android {
defaultConfig {
minSdkVersion $sdkVersion
}
}
''');
}
Future<void> getPackages() async {
await inDirectory(Directory(rootPath), () async {
await flutter('pub', options: <String>['get']);