Skip to content

feat: let the host plugin unregister the location button - #28

Merged
ItsChaceD merged 1 commit into
nextfrom
feat/RMET-5199/unregister-location-button
Nov 30, 2026
Merged

ItsChaceD merged 1 commit into
nextfrom
feat/RMET-5199/unregister-location-button

Conversation

@ItsChaceD

Copy link
Copy Markdown
Contributor

Description

⚠️ 🤖 AI-assisted development with Claude Code.

  • Adds IONGLOCLocationButtonRegistry.unregister(controller). The host plugin calls it when it is destroyed, so the location button's registration no longer keeps the plugin, its WebView and its Activity in memory. It only removes the registration that controller made, so a newer plugin instance stays registered.
  • Depends on io.ionic.libs:ionnativeislands-android:1.1.0, which adds the identity-safe NativeIslandsRegistry.unregister, and sets the version to 4.1.0.

Context

Type of changes

  • Fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Refactor (cosmetic changes)
  • Breaking change (change that would cause existing functionality to not work as expected)

Tests

  • New IONGLOCLocationButtonRegistryTest: unregistering removes the controller's own registration, and leaves a later one in place.
  • ./gradlew testDebugUnitTest and lintDebug pass against ionnativeislands-android 1.1.0.
  • Both plugins build with it.

Checklist

  • Code follows code style of this project
  • CHANGELOG.md file is correctly updated
  • Changes require an update to the documentation
    • Documentation has been updated accordingly

@ItsChaceD
ItsChaceD merged commit 3e655cb into next Nov 30, 2026
1 check passed
@ItsChaceD
ItsChaceD deleted the feat/RMET-5199/unregister-location-button branch December 1, 2026 04:35
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