Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RMET-3900 :: bridge :: add getCurrentPosition wrapper for both capacitor and cordova #1

Merged
merged 20 commits into from
Jan 6, 2025

Conversation

OS-martacarlos
Copy link
Collaborator

Description

This PR provides a wrapper to the plugin, adding timeout logic for getCurrentPosition.
The main goal is to use this code inside the OutSystems Plugin, but it can also be used outside of it. I
As it already uses CapacitorUtils.Synapse it's ready for both cordova and capacitor plugins.

It can also detect if an old build of the plugin is being used (aka the old cordova-geolocation-plugin)

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)

Platforms affected

  • Android
  • iOS
  • JavaScript

Screenshots (if appropriate)

Screenshot 2024-12-19 at 17 46 09

Checklist

  • Pull request title follows the format RNMT-XXXX <title>
  • 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

@OS-martacarlos OS-martacarlos requested a review from a team December 19, 2024 17:48
@OS-martacarlos OS-martacarlos self-assigned this Dec 19, 2024
@OS-martacarlos OS-martacarlos force-pushed the feat/RMET-3900/get-location branch from 81e3eb1 to 1fa586f Compare December 20, 2024 11:26
Update the generated definitions to the latest version.
Considering that the plugin.xml needs to be on the root folder, there's no need to have it inside the cordova-plugin folder.
This is the structure to be used by watchPosition. It's a mix of both CurrentPositionOptions (new name for PositionOptions) and ClearWatchOptions.
Add default constant for the new structure.
Update Outsystems wrapper implementation.
@OS-martacarlos OS-martacarlos force-pushed the feat/RMET-3900/get-location branch from 4d745ad to 2fcd073 Compare January 6, 2025 11:11
@OS-martacarlos OS-martacarlos merged commit fc11136 into development Jan 6, 2025
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.

4 participants