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

@@ -15,7 +15,8 @@ Future<void> main() async {
try {
await runProjectTest((FlutterProject flutterProject) async {
section('APK contains plugin classes');
flutterProject.addPlugin('google_maps_flutter', value: '^1.0.10');
await flutterProject.setMinSdkVersion(20);
flutterProject.addPlugin('google_maps_flutter', value: '^2.2.1');
await inDirectory(flutterProject.rootPath, () async {
await flutter('build', options: <String>[

View File

@@ -170,7 +170,7 @@ Future<void> main() async {
'''
dependencies:
url_launcher: 6.0.20
android_alarm_manager: 0.4.5+11
android_alarm_manager: 2.0.2
google_sign_in_ios: 5.5.0
$dartPluginName:
path: ../$dartPluginName

View File

@@ -101,7 +101,7 @@ dependencies:
sdk: flutter
environment:
sdk: ">=2.0.0-dev.28.0 <3.0.0"
sdk: ">=2.0.0-dev.28.0 <4.0.0"
flutter: ">=1.5.0"
''', flush: true);

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']);

View File

@@ -3,7 +3,7 @@ description: Flutter continuous integration performance and correctness tests.
homepage: https://github.com/flutter/flutter
environment:
sdk: ">=2.17.0-0 <3.0.0"
sdk: ">=2.17.0-0 <4.0.0"
dependencies:
archive: 3.3.2