-
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.
Implement debug suffix config loader (#1271)
* Refactor AppSettingActivity.kt * Add debug mode parser * Load local Composition and Binary configs * Refactor AppSettingActivity * Rename method to hasDebugSuffix * Use only a single FHIR parser * Move Quest configs to Assets * Move G6PD configs to Assets * Use .first() to get appId * Move ANC configs to Assets * Move eCBIS configs to Assets * Delete unused configs * Move COVAX configs to Assets * Move JNJ configs to Assets * Fix bugs * spotlessApply * Update CHANGELOG.md * Move sample configs to Assets * Rename sample configs * Update sample default theme * Fix bug * Add test * Fix engine failing test * Fix Quest failing test * Remove unnecessary comments * spotlessApply * Fix Quest failing test
- Loading branch information
1 parent
8ac11e7
commit 67e2f0f
Showing
73 changed files
with
465 additions
and
308 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
92 changes: 0 additions & 92 deletions
92
android/anc/src/test/resources/configs/ecbis/config_sync.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
android/engine/src/main/assets/configs/default/config_application.json
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,12 @@ | ||
{ | ||
"appId": "default", | ||
"classification": "application", | ||
"theme": "DefaultAppTheme", | ||
"languages": [ | ||
"en", | ||
"sw" | ||
], | ||
"applicationName": "Sample App", | ||
"appLogoIconResourceFile": "ic_launcher", | ||
"count": "100" | ||
} |
87 changes: 87 additions & 0 deletions
87
android/engine/src/main/assets/configs/default/config_composition.json
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,87 @@ | ||
{ | ||
"resourceType": "Composition", | ||
"id": "71728", | ||
"status": "final", | ||
"date": "2022-02-08", | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "http://snomed.info/sct", | ||
"code": "1156600005", | ||
"display": "Device setting parameter" | ||
} | ||
] | ||
}, | ||
"identifier": { | ||
"use": "official", | ||
"value": "default" | ||
}, | ||
"title": "Device configurations", | ||
"confidentiality": "L", | ||
"section": [ | ||
{ | ||
"title": "App configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/62938", | ||
"identifier": { "value": "application" } | ||
} | ||
}, | ||
{ | ||
"title": "Login configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/62940", | ||
"identifier": { "value": "login" } | ||
} | ||
}, | ||
{ | ||
"title": "Patient Register configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/62952", | ||
"identifier": { "value": "patient_register" } | ||
} | ||
}, | ||
{ | ||
"title": "Patient Task Register View configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/87021", | ||
"identifier": { "value": "patient_task_register" } | ||
} | ||
}, | ||
{ | ||
"title": "Pin View configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/63003", | ||
"identifier": { "value": "pin" } | ||
} | ||
}, | ||
{ | ||
"title": "Patient Details View configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/63011", | ||
"identifier": { "value": "patient_details_view" } | ||
} | ||
}, | ||
{ | ||
"title": "Result Details Navigation configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/63007", | ||
"identifier": { "value": "result_details_navigation" } | ||
} | ||
}, | ||
{ | ||
"title": "Sync configuration", | ||
"mode": "working", | ||
"focus": { | ||
"reference": "Binary/56181", | ||
"identifier": { "value": "sync" } | ||
} | ||
} | ||
] | ||
} |
5 changes: 3 additions & 2 deletions
5
...sources/configs/login_configurations.json → .../assets/configs/default/config_login.json
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"appId": "appId", | ||
"appId": "default", | ||
"classification": "login", | ||
"applicationName": "Sample App", | ||
"applicationVersion": "0.0.1", | ||
"darkMode": false, | ||
"showLogo": false | ||
"showLogo": false, | ||
"enablePin": false | ||
} |
11 changes: 11 additions & 0 deletions
11
android/engine/src/main/assets/configs/default/config_patient_details_view.json
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,11 @@ | ||
{ | ||
"appId": "default", | ||
"classification": "patient_details_view", | ||
"contentTitle": "Responses", | ||
"dynamicRows": [], | ||
"questionnaireFilter": { | ||
"key": "context", | ||
"code": "000002", | ||
"system": "http://fhir.ona.io" | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
android/engine/src/main/assets/configs/default/config_patient_register.json
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,59 @@ | ||
{ | ||
"appId": "default", | ||
"classification": "patient_register", | ||
"appTitle": "Clients", | ||
"filterText": "Show overdue", | ||
"searchBarHint": "Search for ID or client name", | ||
"newClientButtonText": "Register new client", | ||
"newClientButtonStyle": "rounded_corner", | ||
"showSearchBar": true, | ||
"showFilter": false, | ||
"showScanQRCode": false, | ||
"showNewClientButton": true, | ||
"showSideMenu": false, | ||
"showBottomMenu": true, | ||
"registrationForm": "3435", | ||
"primaryFilter": { | ||
"key": "_tag", | ||
"system": "http://fhir.ona.io", | ||
"code": "000003" | ||
}, | ||
"bottomNavigationOptions": [ | ||
{ | ||
"id": "menu_item_clients", | ||
"title": "Clients", | ||
"icon" : "ic_users", | ||
"action": { | ||
"type": "switch_fragment", | ||
"tag": "PatientRegisterFragment", | ||
"isRegisterFragment": true, | ||
"isFilterVisible": false, | ||
"toolbarTitle": null | ||
} | ||
}, | ||
{ | ||
"id": "menu_item_tasks", | ||
"title": "Tasks", | ||
"icon" : "ic_tasks", | ||
"action": { | ||
"type": "switch_fragment", | ||
"tag": "PatientTaskFragment", | ||
"isRegisterFragment": false, | ||
"isFilterVisible": false, | ||
"toolbarTitle": "Tasks" | ||
} | ||
}, | ||
{ | ||
"id": "menu_item_settings", | ||
"title": "Settings", | ||
"icon" : "ic_settings", | ||
"action": { | ||
"type": "switch_fragment", | ||
"tag": "UserProfileFragment", | ||
"isRegisterFragment": false, | ||
"isFilterVisible": false, | ||
"toolbarTitle": "Settings" | ||
} | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
android/engine/src/main/assets/configs/default/config_patient_task_register.json
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,7 @@ | ||
{ | ||
"appId": "default", | ||
"classification": "patient_task_register", | ||
"showHeader": false, | ||
"showFooter": false, | ||
"useLabel": false | ||
} |
4 changes: 2 additions & 2 deletions
4
...rces/configs/pin_view_configurations.json → ...in/assets/configs/default/config_pin.json
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"appId": "appId", | ||
"appId": "default", | ||
"classification": "pin", | ||
"applicationName": "Sample App", | ||
"appLogoIconResourceFile": "ic_launcher", | ||
"enablePin": true, | ||
"showLogo": true | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
android/engine/src/main/assets/configs/default/config_result_details_navigation.json
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,16 @@ | ||
{ | ||
"appId": "deafult", | ||
"classification": "result_details_navigation", | ||
"navigationOptions": [ | ||
{ | ||
"id": "open_questionnaire", | ||
"title": "Questionnaire", | ||
"icon": "", | ||
"action": { | ||
"type": "questionnaire", | ||
"form": "", | ||
"readOnly": true | ||
} | ||
} | ||
] | ||
} |
File renamed without changes.
Oops, something went wrong.