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
ac6e3f87
Unverified
Commit
ac6e3f87
authored
Mar 06, 2021
by
Jenn Magder
Committed by
GitHub
Mar 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add iOS archive codesign test (#77428)
parent
e5322acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
ios_content_validation_test.dart
dev/devicelab/bin/tasks/ios_content_validation_test.dart
+28
-4
No files found.
dev/devicelab/bin/tasks/ios_content_validation_test.dart
View file @
ac6e3f87
...
...
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:io'
;
import
'package:flutter_devicelab/framework/apk_utils.dart'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/framework/task_result.dart'
;
...
...
@@ -28,16 +30,38 @@ Future<void> main() async {
'Runner.xcarchive'
,
);
checkDirectoryExists
(
path
.
join
(
archivePath
,
'Products'
,
));
final
String
products
=
path
.
join
(
archivePath
,
'Products'
);
checkDirectoryExists
(
products
);
checkDirectoryExists
(
path
.
join
(
archivePath
,
'dSYMs'
,
'Runner.app.dSYM'
,
));
final
Directory
applications
=
Directory
(
path
.
join
(
products
,
'Applications'
));
final
Directory
appBundle
=
applications
.
listSync
()
.
whereType
<
Directory
>()
.
singleWhere
((
Directory
directory
)
=>
path
.
extension
(
directory
.
path
)
==
'.app'
,
orElse:
()
=>
null
);
final
String
flutterFramework
=
path
.
join
(
appBundle
.
path
,
'Frameworks'
,
'Flutter.framework'
,
'Flutter'
,
);
// Exits 0 only if codesigned.
eval
(
'xcrun'
,
<
String
>[
'codesign'
,
'--verify'
,
flutterFramework
]);
final
String
appFramework
=
path
.
join
(
appBundle
.
path
,
'Frameworks'
,
'App.framework'
,
'App'
,
);
eval
(
'xcrun'
,
<
String
>[
'codesign'
,
'--verify'
,
appFramework
]);
});
return
TaskResult
.
success
(
null
);
...
...
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