mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 00:42:13 +08:00
Skip podspec Swift Search Path validation if only swift file is Package.swift for darwin plugins (#6635)
Fix for iOS was added in https://github.com/flutter/packages/pull/6627, but neglected to handle when plugin uses darwin directory. Supplemental fix for https://github.com/flutter/flutter/issues/147548.
This commit is contained in:

committed by
GitHub

parent
1856a6ef69
commit
62c08f4471
@ -405,6 +405,28 @@ void main() {
|
||||
));
|
||||
});
|
||||
|
||||
test(
|
||||
'does not require the search paths workaround for darwin Package.swift',
|
||||
() async {
|
||||
final RepositoryPackage plugin = createFakePlugin(
|
||||
'plugin1',
|
||||
packagesDir,
|
||||
extraFiles: <String>['darwin/plugin1/Package.swift'],
|
||||
);
|
||||
_writeFakePodspec(plugin, 'darwin');
|
||||
|
||||
final List<String> output =
|
||||
await runCapturingPrint(runner, <String>['podspec-check']);
|
||||
|
||||
expect(
|
||||
output,
|
||||
containsAllInOrder(
|
||||
<Matcher>[
|
||||
contains('Ran for 1 package(s)'),
|
||||
],
|
||||
));
|
||||
});
|
||||
|
||||
test('does not require the search paths workaround for macOS plugins',
|
||||
() async {
|
||||
final RepositoryPackage plugin = createFakePlugin('plugin1', packagesDir,
|
||||
|
Reference in New Issue
Block a user