-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Geowidget module - Integrate into Quest - Add Geowidget debug build variant that enables running quest with Geowidget - Implement displaying families with locations on Quest - Implement family registration with location from geowidget * Zoom to registered families & remove register family btn * Fix Kujaku version and add turf dependency - Turf is used for measurements and calculations but a runtime dependency on Mapbox SDK * Connect maps menu to Geowidget - Remove hardcoded Geowidget menu - Remove geowidget module from FHIR Core engine - Move kujaku dependency to deps.gradle file - Update naming in fhircore_style.json - Add GEOWIDGET_ENABLED BuildConfig to disable the maps menu - Fix maps English translation for configurable menu - Code cleanup * Disable maps menu when geowidgetEnabled config is false * Update eCBIS geowidget questionnaire to work with non-geowidget versions * Add empty action when family is clicked - Add family-id to feature JSON - Cleanup code in GeowidgetActivity - Comment out hardcoded questionnaire and structure-map * Enable syncing of Locations in quest * Enable saving new points into Location boundary extension - Enable parsing feature from the Location Boundary GeoJSON extension - Refactor code in GeowidgetActivity - Code reformat - Move strings to strings.xml * Add Geowidget module tests & spotless checks to CI - Add jacoco report generation to the Geowidget module - Add licenses to the Geowidget module files - Fix wildcard imports in Geowidget tests * Move data from AppMainActivity * Add KujakuFhirCoreConverterTest - Rename KujakuConversionInterface to KujakuFhirCoreConverter - Code cleanup * Add GeowidgetViewModel tests * GeowidgetActivity tests * Re-enable removed sync configs * Fix quest sync config failing test * Exclude META-INF/sun-jaxb.episode from packing in Geowidget module - This fixes the build failure * Exclude META-INF files causing build failure in geowidget - Fix codacy reported issues * Set application flavor for geowidget Refactor the implementation for navigating to maps UI to use the Navigation configs. Also fix sync location by organization. Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Navigate to profile from geowidget Introduce GeoWidgetConfiguration which will be used to configure the map. Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Refactor GeoWidgetActivity to a Fragement In order to honor the single Activtivity architecture, the GeoWidgetActivity has been converted to a Fragment and all the composable screens are now wrapped in a Fragment. Using a Fragment allows for a more hybrid approach that will also take care of other custom views that are still using XML layout at the same time be able to render composable views. Instead of using Composable (MainScreen) as the NavigationHost, we now use the AppMainActivity as the Host, with NavHostFragment as the container for the fragments. UserProfileScreen has also been renamed to UserSettingScreen and it is now rendered in the UserSettingFragment. The application side menu (drawer navigation) has been moved to RegisterFragement setContent method. It makes sense to be able to access the drawer via the registers. MainScreen is therefore no longer needed so it has been deleted. GeoWidgetViewModel is now instantiated in the GeoWidgetFragement with the activityViewModels extension function. This is to allow the activity to access the geoWidgetEventLiveData to react to the events created via the GeoWidgetFragment. Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Setup toolbar on map view Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Remove P2P menu for Geowidget NavMenu * Delete irrelevant test Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Fix failing tests across modules Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Fix GeoWidgeViewModelTest Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Fix permissions request from GeoWidgetFragment Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Set test logs Indicate tests that are passing, skipped or failed Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> Co-authored-by: Elly Kitoto <junkmailstoelly@gmail.com> Co-authored-by: Francis Odhiambo Otieno <4540684+f-odhiambo@users.noreply.github.com>
- Loading branch information
1 parent
98f2c5e
commit 0ffd664
Showing
98 changed files
with
16,117 additions
and
669 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def geowidgetEnabled = true | ||
ext.geowidgetEnabled = geowidgetEnabled |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
31 changes: 31 additions & 0 deletions
31
.../java/org/smartregister/fhircore/engine/configuration/geowidget/GeoWidgetConfiguration.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2021 Ona Systems, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.smartregister.fhircore.engine.configuration.geowidget | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.smartregister.fhircore.engine.configuration.ConfigType | ||
import org.smartregister.fhircore.engine.configuration.Configuration | ||
import org.smartregister.fhircore.engine.configuration.QuestionnaireConfig | ||
|
||
@Serializable | ||
data class GeoWidgetConfiguration( | ||
override var appId: String, | ||
override var configType: String = ConfigType.GeoWidget.name, | ||
val id: String, | ||
val profileId: String, | ||
val registrationQuestionnaire: QuestionnaireConfig | ||
) : Configuration() |
This file contains 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
This file contains 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
Oops, something went wrong.