Skip to content

fix: handle Cordova plugins without iOS source files#8443

Open
OS-ruimoreiramendes wants to merge 1 commit intomainfrom
fix/RMET-5159/cdv-without-src-code
Open

fix: handle Cordova plugins without iOS source files#8443
OS-ruimoreiramendes wants to merge 1 commit intomainfrom
fix/RMET-5159/cdv-without-src-code

Conversation

@OS-ruimoreiramendes
Copy link
Copy Markdown
Contributor

  • Fix getPluginPlatform to return undefined instead of [] when a plugin has no <platform> tags
  • Skip Package.swift generation for Cordova plugins with <platform name="ios"> but no source files
  • Skip adding those plugins to the generated CapApp-SPM/Package.swift

Reference: https://outsystemsrd.atlassian.net/browse/RMET-5159

Tests
Validated with three dummy plugins:
test-plugin-no-platform: no <platform> tags -> correctly skipped as incompatible
test-plugin-no-sources: <platform name="ios"> with only entries -> sync completes, config still processed
test-plugin-with-sources: <platform name="ios"> with source files -> continues to work normally

@OS-ruimoreiramendes OS-ruimoreiramendes marked this pull request as ready for review April 27, 2026 17:04
@OS-ruimoreiramendes OS-ruimoreiramendes requested a review from a team April 27, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant