Migrate location widget to datacapture module - #32
Open
MeshackKangi wants to merge 5 commits into
Open
Conversation
Move the location capture widget implementation from the :catalog module into :datacapture so it is available as a reusable component across all platforms. - Add LocationCaptureItemViewFactory, LocationCoordinateItemViewFactory, LocationEventBus, and Geolocator with platform actuals for Android, iOS, JVM, and wasmJs - Add ic_location_on and gm_location_on_24 drawable resources - Update QuestionnaireScreen to import matchers from :datacapture Closes ohs-foundation#10
The location widget requires the compass geolocation library to resolve GPS coordinates across all supported platforms. - Add compass.geolocation to commonMain dependencies - Add compass.geolocation.mobile to androidMain and iosMain - Add compass.geolocation.browser to wasmJsMain - Add record_gps_location string resource to strings.xml - Increase Gradle JVM heap to 4g to prevent OOM daemon crashes
LZRS
reviewed
Jul 6, 2026
Comment on lines
+1
to
+3
| org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=512m | ||
| org.gradle.workers.max=2 | ||
| org.gradle.parallel=true |
Author
location-demo.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move the location capture widget implementation from the :catalog module into :datacapture so it is available as a reusable component across all platforms.
Closes #10