Adds vmservices to retrieve android applink settings (#125998)

fixes https://github.com/flutter/flutter/issues/120408

Added two gradle tasks, one for grabing the application id, one for grabbing app link domains.

Added a new vmservices to call these two gradle tasks and return the result.

The expected work flow is that the devtool will first call a vmservices to grab all avaliable build variants. It will then choose one of the build variant and call this new services to get application id and app link domains.
This commit is contained in:
chunhtai
2023-06-07 15:43:11 -07:00
committed by GitHub
parent 2754514ce2
commit 5328bd9ae0
11 changed files with 672 additions and 24 deletions

View File

@@ -39,6 +39,12 @@ class FakeAndroidBuilder implements AndroidBuilder {
@override
Future<List<String>> getBuildVariants({required FlutterProject project}) async => const <String>[];
@override
Future<List<String>> getAppLinkDomainsForVariant(String buildVariant, {required FlutterProject project}) async => const <String>[];
@override
Future<String> getApplicationIdForVariant(String buildVariant, {required FlutterProject project}) async => '';
}
/// Creates a [FlutterProject] in a directory named [flutter_project]