Commit 77c07871 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Updated sample app production device labs task (#10326)

parent 3bb76961
......@@ -19,17 +19,15 @@ Future<TaskResult> samplePageCatalogGenerator() async {
await inDirectory(catalogDirectory, () async {
await flutter('packages', options: <String>['get']);
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {
if (deviceOperatingSystem == DeviceOperatingSystem.ios)
await prepareProvisioningCertificates(catalogDirectory.path);
// This causes an Xcode project to be created.
await flutter('build', options: <String>['ios', '--profile']);
}
await dart(<String>['bin/sample_page.dart']);
await flutter('drive', options: <String>[
'--target',
'test_driver/screenshot.dart',
'-d',
'--device-id',
deviceId,
]);
});
......
......@@ -161,6 +161,10 @@ void generate() {
}
});
samples.sort((SampleGenerator a, SampleGenerator b) {
return a.sourceName.compareTo(b.sourceName);
});
writeExpandedTemplate(
outputFile('screenshot.dart', driverDirectory),
screenshotTemplate,
......
......@@ -19,7 +19,7 @@ void main() {
});
test('take sample screenshots', () async {
String prefix = Platform.isMacOS ? 'ios_' : "";
final String prefix = Platform.isMacOS ? 'ios_' : "";
final List<String> paths = <String>[
@(paths)
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment