Enable Swift Package Manager by default on master channel (#152049)

Changes:

1. Enables Swift Package Manager by default on the main/master channel
2. Fixes tests that fail if Swift Package Manager is enabled

Corresponding docs change: https://github.com/flutter/website/pull/10938

Addresses https://github.com/flutter/flutter/issues/151567
This commit is contained in:
Loïc Sharma
2024-07-24 09:24:31 -07:00
committed by GitHub
parent 0d504914c7
commit 08d8a7fa81
9 changed files with 215 additions and 85 deletions

View File

@@ -308,3 +308,17 @@ File? _createDisabledSandboxEntitlementFile(
return disabledSandboxEntitlementFile;
}
/// Returns global (external) symbol table entries, delimited by new lines.
Future<String> dumpSymbolTable(String filePath) {
return eval(
'nm',
<String>[
'--extern-only',
'--just-symbol-name',
filePath,
'-arch',
'arm64',
],
);
}