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

Feat/rmet 3901/watch position #2

Draft
wants to merge 27 commits into
base: development
Choose a base branch
from

Conversation

OS-ricardomoreirasilva
Copy link

No description provided.

@OS-ricardomoreirasilva OS-ricardomoreirasilva force-pushed the feat/rmet-3901/watch-position branch 2 times, most recently from 5327c2f to 7bdfb6b Compare December 20, 2024 16:49
OS-martacarlos and others added 3 commits December 20, 2024 16:54
Using Combine, the main idea is to use publishers to track the location and authorisation status updates.
@OS-ricardomoreirasilva OS-ricardomoreirasilva force-pushed the feat/rmet-3901/watch-position branch from 7bdfb6b to dc6a0a6 Compare December 20, 2024 17:57
@OS-ricardomoreirasilva OS-ricardomoreirasilva force-pushed the feat/rmet-3901/watch-position branch from dc6a0a6 to d45b4b2 Compare December 31, 2024 10:39
This is done differently for Cordova and Capacitor
Use the latest 'alwaysusagedescription' plist entry.
@OS-ricardomoreirasilva OS-ricardomoreirasilva force-pushed the feat/rmet-3901/watch-position branch from e529143 to cb6c202 Compare January 2, 2025 09:15
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.
Setup bindings creates the location publisher with nil value, so this must be dropped in order for the first value to be an actual position.
…ion retrieval

Have a similar logic to Cordova
Considering that the `currentLocation` property is initialised at nil, change its publisher to drop the first value automatically (to avoid triggering the initial value) and convert the optional property into a non-optional but failable publisher.
Split OSGLOCAuthorisation's granted to authorisedAlways and authorisedWhenInUse. This allows to differ behaviour between both.
Adapt tests accordingly.
Add unit tests to test authorisation and current location sequential changes.
…d new OSGLOCAuthorisation values

Remove the no longer needed error case.
…new OSGLOCAuthorisation values

Remove the no longer needed error case.
@OS-ricardomoreirasilva OS-ricardomoreirasilva force-pushed the feat/rmet-3901/watch-position branch from b16043b to 58a5ca5 Compare January 3, 2025 15:58
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.

3 participants