Add FlutterMacOS.xcframework artifact (#143244)
Replace `FlutterMacOS.framework` cached artifact with `FlutterMacOS.xcframework`. Also, update usage of `FlutterMacOS.framework` to use `FlutterMacOS.xcframework`. Part of https://github.com/flutter/flutter/issues/126016.
This commit is contained in:
committed by
GitHub
parent
b2a3075fa5
commit
42252cd4c6
@@ -1728,9 +1728,9 @@ List<String> binariesWithEntitlements(String flutterRoot) {
|
||||
/// cache.
|
||||
List<String> binariesWithoutEntitlements(String flutterRoot) {
|
||||
return <String>[
|
||||
'artifacts/engine/darwin-x64-profile/FlutterMacOS.framework/Versions/A/FlutterMacOS',
|
||||
'artifacts/engine/darwin-x64-release/FlutterMacOS.framework/Versions/A/FlutterMacOS',
|
||||
'artifacts/engine/darwin-x64/FlutterMacOS.framework/Versions/A/FlutterMacOS',
|
||||
'artifacts/engine/darwin-x64-profile/FlutterMacOS.xcframework/macos-arm64_x86_64/FlutterMacOS.framework/Versions/A/FlutterMacOS',
|
||||
'artifacts/engine/darwin-x64-release/FlutterMacOS.xcframework/macos-arm64_x86_64/FlutterMacOS.framework/Versions/A/FlutterMacOS',
|
||||
'artifacts/engine/darwin-x64/FlutterMacOS.xcframework/macos-arm64_x86_64/FlutterMacOS.framework/Versions/A/FlutterMacOS',
|
||||
'artifacts/engine/darwin-x64/font-subset',
|
||||
'artifacts/engine/darwin-x64/impellerc',
|
||||
'artifacts/engine/darwin-x64/libpath_ops.dylib',
|
||||
@@ -1764,6 +1764,9 @@ List<String> signedXcframeworks(String flutterRoot) {
|
||||
'artifacts/engine/ios-release/extension_safe/Flutter.xcframework',
|
||||
'artifacts/engine/ios/Flutter.xcframework',
|
||||
'artifacts/engine/ios/extension_safe/Flutter.xcframework',
|
||||
'artifacts/engine/darwin-x64-profile/FlutterMacOS.xcframework',
|
||||
'artifacts/engine/darwin-x64-release/FlutterMacOS.xcframework',
|
||||
'artifacts/engine/darwin-x64/FlutterMacOS.xcframework',
|
||||
]
|
||||
.map((String relativePath) => path.join(flutterRoot, 'bin', 'cache', relativePath)).toList();
|
||||
}
|
||||
|
||||
@@ -118,6 +118,12 @@ class PluginTest {
|
||||
// Currently this test is only implemented for macOS; it can be extended to
|
||||
// others as needed.
|
||||
if (buildTarget == 'macos') {
|
||||
// When using a local engine, podhelper.rb will search for a "macos-"
|
||||
// directory within the FlutterMacOS.xcframework, so create a dummy one.
|
||||
Directory(
|
||||
path.join(buildDir.path, 'FlutterMacOS.xcframework/macos-arm64_x86_64'),
|
||||
).createSync(recursive: true);
|
||||
|
||||
// Clean before regenerating the config to ensure that the pod steps run.
|
||||
await inDirectory(Directory(app.rootPath), () async {
|
||||
await evalFlutter('clean');
|
||||
|
||||
Reference in New Issue
Block a user