Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9dba38

Browse filesBrowse files
committed
Fix ios_app_with_extensions
1 parent aa1212e commit a9dba38
Copy full SHA for a9dba38

File tree

Expand file treeCollapse file tree

1 file changed

+12
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-2
lines changed

‎dev/devicelab/bin/tasks/ios_app_with_extensions_test.dart

Copy file name to clipboardExpand all lines: dev/devicelab/bin/tasks/ios_app_with_extensions_test.dart
+12-2Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:flutter_devicelab/framework/framework.dart';
88
import 'package:flutter_devicelab/framework/task_result.dart';
99
import 'package:flutter_devicelab/framework/utils.dart';
1010
import 'package:path/path.dart' as path;
11+
import 'package:yaml_edit/yaml_edit.dart';
1112

1213
Future<void> main() async {
1314
await task(() async {
@@ -16,16 +17,25 @@ Future<void> main() async {
1617
final Directory tempDir = Directory.systemTemp.createTempSync(
1718
'flutter_ios_app_with_extensions_test.',
1819
);
19-
final Directory projectDir = Directory(path.join(tempDir.path, 'app_with_extensions'));
20+
final Directory rootDir = Directory(path.join(tempDir.path, 'app_workspace'));
21+
final Directory projectDir = Directory(path.join(rootDir.path, 'app_with_extensions'));
2022
try {
21-
mkdir(projectDir);
23+
mkdirs(projectDir);
2224
recursiveCopy(
2325
Directory(
2426
path.join(flutterDirectory.path, 'dev', 'integration_tests', 'ios_app_with_extensions'),
2527
),
2628
projectDir,
2729
);
2830

31+
final String rootPubspec =
32+
File(path.join(flutterDirectory.path, 'pubspec.yaml')).readAsStringSync();
33+
final YamlEditor yamlEditor = YamlEditor(rootPubspec);
34+
yamlEditor.update(<String>['workspace'], <String>['app_with_extensions']);
35+
File(path.join(rootDir.path, 'pubspec.yaml'))
36+
..createSync()
37+
..writeAsStringSync(yamlEditor.toString());
38+
2939
section('Create release build');
3040

3141
// This attempts to build the companion watchOS app. However, the watchOS

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.