Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
77c07871
Commit
77c07871
authored
May 25, 2017
by
Hans Muller
Committed by
GitHub
May 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated sample app production device labs task (#10326)
parent
3bb76961
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
sample_catalog_generator.dart
dev/devicelab/lib/tasks/sample_catalog_generator.dart
+3
-5
sample_page.dart
examples/catalog/bin/sample_page.dart
+4
-0
screenshot_test.dart.template
examples/catalog/bin/screenshot_test.dart.template
+1
-1
No files found.
dev/devicelab/lib/tasks/sample_catalog_generator.dart
View file @
77c07871
...
...
@@ -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-i
d'
,
deviceId
,
]);
});
...
...
examples/catalog/bin/sample_page.dart
View file @
77c07871
...
...
@@ -161,6 +161,10 @@ void generate() {
}
});
samples
.
sort
((
SampleGenerator
a
,
SampleGenerator
b
)
{
return
a
.
sourceName
.
compareTo
(
b
.
sourceName
);
});
writeExpandedTemplate
(
outputFile
(
'screenshot.dart'
,
driverDirectory
),
screenshotTemplate
,
...
...
examples/catalog/bin/screenshot_test.dart.template
View file @
77c07871
...
...
@@ -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)
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment