Skip to content

Clear iOS/Android versions when a plugin drops them from nativephp.json - #598

Merged
simonhamp merged 1 commit into
NativePHP:mainfrom
sonalidudhia:fix/plugin-sync-clear-platform-versions
Nov 3, 2026
Merged

simonhamp merged 1 commit into
NativePHP:mainfrom
sonalidudhia:fix/plugin-sync-clear-platform-versions

Conversation

@sonalidudhia

Copy link
Copy Markdown
Contributor

Problem

After a plugin removed its iOS min_version, the plugin pages kept showing "iOS 18" in the package details. PluginSyncService only wrote ios_version / android_version when nativephp.json was present, so dropping the file left the old values in place even after a re-sync.

Fix

Always set both columns on sync — the declared value, or null when nativephp.json (or its platform entry) no longer has one.

Refreshing an affected plugin

Admin → Plugin → Re-sync from GitHub (or push a new release, which fires the webhook). Note the sync reads the latest release tag, so the change must be in a released version.

Tests

  • test_sync_clears_platform_versions_removed_from_nativephp_json
  • test_sync_clears_platform_versions_when_nativephp_json_is_removed

🤖 Generated with Claude Code

The sync only wrote ios_version and android_version when nativephp.json
existed, so removing that file left the old versions on the listing and
review pages forever. Always write both, null when no longer declared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit ab08ae2 into NativePHP:main Nov 3, 2026
1 check passed
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.

2 participants