Add usage event when iOS app is archived (#108643)

This commit is contained in:
Jenn Magder
2022-07-29 15:44:06 -07:00
committed by GitHub
parent c7498f607b
commit 7f1a8f7948
17 changed files with 127 additions and 23 deletions

View File

@@ -17,9 +17,16 @@ Future<void> main() async {
section('Archive');
await inDirectory(flutterProject.rootPath, () async {
await flutter('build', options: <String>[
final String output = await evalFlutter('build', options: <String>[
'xcarchive',
'-v',
]);
// Note this isBot so usage won't actually be sent,
// this log line is printed whenever the app is archived.
if (!output.contains('Sending archive event if usage enabled')) {
throw TaskResult.failure('Usage archive event not sent');
}
});
final String archivePath = path.join(