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

Nigeria client migration #2110

Open
wants to merge 147 commits into
base: flavor-nigeria-dcis
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
b96ba59
Removes Team Id Check on the Authorization service
paulinembabu Jan 21, 2021
a24e291
V 0.1.7
paulinembabu Feb 2, 2021
8e6a68a
Build Fixes
paulinembabu Aug 30, 2021
d4c99d3
Sets Entity type to name to Capitalize first letter
paulinembabu Aug 30, 2021
28beb28
Merge branch 'lmh_issue_fixes_vts_2.0' of github.com:opensrp/opensrp-…
paulinembabu Aug 31, 2021
7245389
Removes Phone Icon from LMH Flavor
paulinembabu Sep 1, 2021
3036738
Clean up on branch
paulinembabu Sep 1, 2021
c819869
Removes french Language switcher option
paulinembabu Sep 1, 2021
08aca36
Removes french Language switcher option
paulinembabu Sep 1, 2021
3c07f39
Fix Action text for children over 5
paulinembabu Sep 2, 2021
752343a
Fixes the Child Registration Edit Text for LMH
paulinembabu Sep 2, 2021
a761a31
Lmh show error on click of next in register family member form
paulinembabu Sep 9, 2021
65d0e1c
lmh edit confirmation text cancel on edit
paulinembabu Sep 13, 2021
c9a067c
Add Vaccine card for children under age of 5
paulinembabu Sep 13, 2021
529df0f
Removes due today services for boys ages 9-10
paulinembabu Sep 17, 2021
b62056d
Remove vaccinations due screen when none are due
paulinembabu Sep 17, 2021
c432e91
set BCG cutoff max-age of 1 year
LZRS Sep 20, 2021
50ccf9a
Fix period in between DOB and todays date
paulinembabu Sep 20, 2021
52b8a48
Merge pull request #1900 from opensrp/lmh_change_bcg_date
LZRS Sep 21, 2021
389c87f
Removes unuused imports
paulinembabu Sep 22, 2021
9025c9f
Add test
paulinembabu Sep 22, 2021
abbdcaa
Adds AboveFiveChildProfileActivyTest
paulinembabu Sep 26, 2021
9a5d16e
Merge pull request #1901 from opensrp/lmh_fix_period_between_dob_and_…
paulinembabu Sep 26, 2021
22dfbc9
Fix vaccine date due date on home visit
paulinembabu Sep 28, 2021
7c42c15
Changes All Children Text. Changes Sex on reister family member to ra…
paulinembabu Sep 29, 2021
b6c2f84
Removes due only toggle button from family register
paulinembabu Sep 29, 2021
678ccc8
add descriptions for report labels
LZRS Sep 30, 2021
3d2ec93
Show Progress Dialog on Sync
paulinembabu Sep 30, 2021
ed4625f
make different lmh ui screen for bluetooth sync (#1913)
LZRS Oct 4, 2021
c967abc
remove vaccine from list of administered, if unchecked/invalid (#1910)
LZRS Oct 4, 2021
84941d1
update date theme for each of generated date pickers
LZRS Sep 10, 2021
5342eaa
add tests for date fix
LZRS Sep 21, 2021
9dd595c
remove onclicklistener on title_layout (#1885)
LZRS Oct 4, 2021
575ffb7
move bottom navigation to side menu
LZRS Oct 4, 2021
c8afc0a
Merge remote-tracking branch 'origin/lmh_fix_reports_ui' into lmh-mov…
LZRS Oct 4, 2021
7acf282
change icons for reports and 'add new family'
LZRS Oct 5, 2021
4ce4434
Modifys the PIN Login Page
paulinembabu Oct 5, 2021
7c33f65
Modifys the PIN Login fragment Layout
paulinembabu Oct 5, 2021
07e2522
Set Pin Max Length to 4
paulinembabu Oct 5, 2021
2a9e6f1
reset build.gradle file changes
LZRS Oct 5, 2021
f3845e9
Resolves merge conflict
paulinembabu Oct 5, 2021
7514b71
Add UniqueIds to 1000
paulinembabu Oct 7, 2021
2bf0587
LMH1-103: set fitsSystemsWindows true for p2p page
LZRS Oct 12, 2021
773b7e5
LMH1-12: disable toolbar click for family register
LZRS Oct 12, 2021
a287cb6
LMH1-108: remove 'windowTranslucentStatus' attribute
LZRS Oct 12, 2021
5e362ac
Add test
paulinembabu Oct 12, 2021
6268b18
LMH1-104: update 'child client' menu title to enable selection
LZRS Oct 13, 2021
58b0693
LMH1-85: hide ID field in family forms
LZRS Oct 13, 2021
b62ec38
LMH1-58: update adding family members to be intuitive
LZRS Oct 18, 2021
41c5af7
Merge changes
paulinembabu Oct 19, 2021
f9faa60
Lmh Keycloak Preview Migration
paulinembabu Oct 21, 2021
180df9b
LMH1-98: fix navigate back to family profile, for child
LZRS Oct 25, 2021
f18a895
LMH1-64: set initial checkbox state to be false
LZRS Oct 25, 2021
a86c3cb
LMH1-73: grey out form next/save when form fields missing
LZRS Oct 27, 2021
562c303
Set a dark line on the set Pin EditText
paulinembabu Oct 28, 2021
03eee92
Remove due only filter for children Register
paulinembabu Oct 28, 2021
5b4020b
LMH1-73: grey out save for family member forms
LZRS Oct 27, 2021
ab1c878
LMH1-61: consistent placement of buttons for forms
LZRS Oct 28, 2021
c1b2c1d
LMH1-111: revert 'hidden=true' for registration forms
LZRS Nov 1, 2021
2586f2c
Fixes Pin Login. Adds Missing Migration
paulinembabu Nov 3, 2021
e5bb935
Version Code Bump up
paulinembabu Nov 3, 2021
08c5637
Reverted Debug OpenMRS Id Number
paulinembabu Nov 3, 2021
883bfe9
Build Changes
paulinembabu Nov 4, 2021
7484824
Update chw-core to v1.5.25-LMH-Beta-06-SNAPSHOT
LZRS Nov 4, 2021
98a7e6d
Merge conflicts resolved
paulinembabu Nov 4, 2021
c118d5d
LMH1-114: Add the text 'years' to child under 11
LZRS Nov 8, 2021
c970de8
Merge conflicts
paulinembabu Nov 9, 2021
f545c08
Add radio button to the family member register and the child enrollme…
paulinembabu Nov 9, 2021
93b92af
LMH1-27: Correct error message when date is missing
LZRS Nov 9, 2021
fa6c0d5
LMH1-116: rename reports menu title to Dashboard
LZRS Nov 10, 2021
05f73a3
Add menu family profile menu items
paulinembabu Nov 10, 2021
dbe1c0d
LMH1-99: add check for pending vaccines when listing due
LZRS Nov 16, 2021
20f25cc
Merge branch 'lmh-move-navigation-to-side' of github.com:opensrp/open…
paulinembabu Nov 17, 2021
68d0bcc
Sprint 6 Merge Commits
paulinembabu Nov 18, 2021
4759633
LMH1-125: Rename 'reports' page title to 'dashboard'
LZRS Nov 19, 2021
c547928
LMH1-101: refactor fix on app closing on double tap
LZRS Nov 19, 2021
65f728b
Merged Changes
paulinembabu Nov 19, 2021
3fe7a96
Merge all the Sprints work
paulinembabu Nov 24, 2021
8258d97
LMH1-3: Modify query for members to check child's dod
LZRS Nov 18, 2021
1936a8a
Fix issues raised from BA flavor
LZRS Nov 24, 2021
0b0ff59
fix errors on codacy and tests issues
LZRS Nov 24, 2021
9738cb0
fix merge errors in family_/_member_register json
LZRS Nov 24, 2021
4c96e2d
fix test errors on startActivity
LZRS Nov 24, 2021
159d27f
Fixed class name 'Login' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Help…
paulinembabu Nov 25, 2021
c498bf1
Fix crash issues
paulinembabu Nov 26, 2021
5bf5a63
Bumps up gradle version
paulinembabu Nov 26, 2021
1f6a99c
Resolves fixes on date format after sync and vaccine being checked on…
paulinembabu Dec 1, 2021
c5daab6
Add relevant tests to fix coverage
LZRS Dec 3, 2021
02c79e4
Fix activity tests for coverage
LZRS Dec 9, 2021
4fe9f81
fix gradle dependencies not found
LZRS Dec 16, 2021
f1c380f
LMH1-140: fix timestamp after sync not showing
LZRS Dec 20, 2021
768a68b
LMH1-142: Vaccine dates not saving correctly
LZRS Dec 23, 2021
0ccfaf0
LMH1-141: increase uniqueid limit to 100000
LZRS Jan 6, 2022
8376813
LMH1-139: check due vaccines, for new members in family profile
LZRS Dec 23, 2021
c1af4ca
LMH1-139: Calculate family due services from list of upcoming services
LZRS Jan 6, 2022
a15f4e1
LMH1-139: Disable defaultDueFilter for child
LZRS Jan 7, 2022
f8947b0
LMH1-140: Fix sync fail when default location id doesn't exist in fet…
LZRS Jan 26, 2022
8d612a1
LMH1-139: Ensure due tab shows members due even with visit made
LZRS Jan 26, 2022
d25b730
Allow timber for preview to log to crashlytics
LZRS Jan 26, 2022
5fc30a0
Tag username to crashlytics crashes
LZRS Jan 27, 2022
55985fe
Fix bug in log out process
LZRS Jan 27, 2022
94858f5
LMH1-147: Vaccine page bug, checkboxes start checked
LZRS Jan 27, 2022
3f55edb
LMH1-147: generate unique id for vaccination view generated dynamically
LZRS Jan 27, 2022
681526e
On edit, only show datepickers for selected vaccines
LZRS Jan 27, 2022
9fe193c
Pin Login Implementation fixes
paulinembabu Jan 28, 2022
c57b399
Merge branch 'all_sprints_and_keycloak_migration' of github.com:opens…
paulinembabu Jan 28, 2022
f41703d
Check for the correct user location when doing p2p tranfer
paulinembabu Jan 31, 2022
19cfd63
Adds null check when default location is null to return the user loca…
paulinembabu Jan 31, 2022
59fe4bf
Fix layouting for save button to be visible
LZRS Feb 8, 2022
b6bc306
Show pin login only when forceRemoteLogin 'false'
LZRS Feb 8, 2022
1466098
LMH1-180: Add a Typhoid Vaccine to the immunization schedule
LZRS Mar 4, 2022
3cc7afe
LMH1-187: fix 'medical history not updating' when done to not done
LZRS Mar 16, 2022
cd0e495
LMH1-182: Ensure hideProgressDialog hides 'saving' dialog
LZRS Mar 16, 2022
4f1dca9
Fix tests on familyregister progressdialog
LZRS Mar 31, 2022
0f40f23
Merge pull request #1959 from opensrp/all_sprints_and_keycloak_migration
LZRS Apr 4, 2022
4f58a52
LMH1-194: fix due count not matching due family children
LZRS Apr 4, 2022
7fc4a4a
update the url
dubdabasoduba Apr 5, 2022
7381678
Merge branch 'master' of github.com:opensrp/opensrp-client-chw
dubdabasoduba Apr 5, 2022
ce9d678
sync with using POST request
LZRS Apr 5, 2022
b363d02
:wrench: Change the identifier sources and version
dubdabasoduba Apr 6, 2022
669868e
Merge pull request #2021 from opensrp/lmh-sync-post
LZRS Apr 6, 2022
29f4e82
Merge branch 'update_identifier_sources' into lmh1-194
LZRS Apr 6, 2022
dba92d3
Merge pull request #2020 from opensrp/lmh1-194
LZRS Apr 6, 2022
347ef26
set openmrs_unique_id settings to be only configurable in flavor
LZRS Apr 6, 2022
e5f2b25
Merge pull request #2022 from opensrp/update_identifier_sources
LZRS Apr 6, 2022
9c21f5a
LMH1-205: Unable to register vaccinations for child 2+ years
LZRS May 26, 2022
42c8f34
Merge pull request #2064 from opensrp/lmh1-205
dubdabasoduba May 31, 2022
69dad55
Update increment LMH release version code
LZRS Jun 3, 2022
47df06e
Merge pull request #2066 from opensrp/update-lmh-version-code
LZRS Jun 3, 2022
2bd4e84
LMH1-211: Display "Child vaccine card recieved" for children less tha…
LZRS Jul 27, 2022
2b0c325
Merge pull request #2090 from opensrp/lmh1-211
LZRS Aug 1, 2022
a7186bf
added Client Migration for changing the validation status to Invalid
junaidwarsivd Jan 27, 2023
ef1328f
updated unit test for the repository utils
junaidwarsivd Jan 27, 2023
0737895
updated unit test for the repository utils
junaidwarsivd Jan 30, 2023
293b808
updated unit test for the repository utils
junaidwarsivd Jan 30, 2023
985705f
added unit test for ChwRepositoryFlv
junaidwarsivd Jan 30, 2023
6109c03
updated method name
junaidwarsivd Feb 1, 2023
ddcd139
removed unused variables
junaidwarsivd Feb 1, 2023
b9e6f14
restored the variables
junaidwarsivd Feb 1, 2023
b6b64c0
added test for the All client utils
junaidwarsivd Feb 2, 2023
61efb28
chaged the ba Unique ID source to 1
junaidwarsivd Feb 2, 2023
ca0aaa2
added the migration for all clients
junaidwarsivd Feb 3, 2023
d81b0a7
added the migration for all clients ba, chad,drc,guinea,liberia,lmh,togo
junaidwarsivd Feb 3, 2023
fd56abc
added the migration for all clients ba, chad,drc,guinea,liberia,lmh,togo
junaidwarsivd Feb 3, 2023
e093fa0
added the migration for all clients ba, chad,drc,guinea,liberia,lmh,togo
junaidwarsivd Feb 6, 2023
2e28b3e
Merge branch 'client-migration' into nigeria-client-migration
junaidwarsivd Feb 6, 2023
16d7fdb
addede nigeria client migration
junaidwarsivd Feb 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ allprojects {
maven { url "https://cloudant.github.io/cloudant-sync-eap/repository" }
maven { url 'https://maven.fabric.io/public' }
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
maven { url 'https://nexus.pentaho.org/content/groups/omni/' }
maven { url 'https://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases' }
// maven { url 'https://nexus.pentaho.org/content/groups/omni/' }
maven {
url 'https://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases'
content {
// Does only include this group
includeGroup "com.ibm.fhir"
}
}
}
}

Expand All @@ -68,7 +74,7 @@ subprojects {
ext.androidBuildToolsVersion = '29.0.3'
ext.androidMinSdkVersion = 19
ext.androidCompileSdkVersion = 30
ext.androidTargetSdkVersion = 30
ext.androidTargetSdkVersion = 31

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure this branch was generated from the Nigeria branch

ext.androidAnnotationsVersion = '3.0.1'
ext.androidAnnotationsAPIVersion = '3.0.1'
Expand Down
109 changes: 78 additions & 31 deletions opensrp-chw/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ android {
checkReleaseBuilds false
abortOnError false
}
defaultConfig {
// Required when setting minSdkVersion to 20 or lower
multiDexEnabled true
}

compileOptions {
coreLibraryDesugaringEnabled true

sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Expand Down Expand Up @@ -159,6 +165,7 @@ android {
buildConfigField "int", "STOCK_USAGE_REPORT_MINUTES", '1440'
buildConfigField "boolean", "USE_UNIFIED_REFERRAL_APPROACH", "true"
buildConfigField "boolean", "BUILD_FOR_BORESHA_AFYA_SOUTH", "false"
buildConfigField "boolean", "LOG_CRASHLYTICS", "true"
}

debug {
Expand All @@ -177,8 +184,14 @@ android {
buildConfigField "int", "STOCK_USAGE_REPORT_MINUTES", '1440'
buildConfigField "boolean", "USE_UNIFIED_REFERRAL_APPROACH", "true"
buildConfigField "boolean", "BUILD_FOR_BORESHA_AFYA_SOUTH", "false"
buildConfigField "boolean", "LOG_CRASHLYTICS", "false"
testCoverageEnabled true
}

preview {
initWith debug
buildConfigField "boolean", "LOG_CRASHLYTICS", "true"
}
}

packagingOptions {
Expand Down Expand Up @@ -223,8 +236,11 @@ android {
ba {
dimension = 'baseDimension'
applicationIdSuffix ".ba"
versionCode 8
versionName "1.0.8"
versionCode 9
versionName "1.0.9"
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "String", 'opensrp_url', '"https://boresha-afya.smartregister.org/opensrp/"'
buildConfigField "String", 'guidebooks_url', '"https://opensrp.s3.amazonaws.com/media/ba/"'
buildConfigField "String", 'opensrp_url_debug', '"https://boresha-afya-stage.smartregister.org/opensrp/"'
Expand All @@ -234,13 +250,16 @@ android {
buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS_DEBUG", '{"Ward", "MOH Jhpiego Facility Name", "Health Facility", "Village", "Village Sublocations"}'
buildConfigField "String", 'DEFAULT_LOCATION', '"Village Sublocations"'
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"Village"'
buildConfigField "int", "DATABASE_VERSION", '23'
buildConfigField "int", "DATABASE_VERSION", '24'
}
chad {
dimension = 'baseDimension'
applicationIdSuffix ".chad"
versionCode 3
versionName "1.0.3"
versionCode 4
versionName "1.0.4"
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "String", 'opensrp_url', '"https://wcaro-td.smartregister.org/opensrp/"'
buildConfigField "String", 'guidebooks_url', '"https://opensrp.s3.amazonaws.com/media/chad/"'
buildConfigField "String", 'opensrp_url_debug', '"https://wcaro-stage.smartregister.org/opensrp/"'
Expand All @@ -249,16 +268,19 @@ android {
buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS_DEBUG", '{"Clinic" , "CHSS" , "CHA"}'
buildConfigField "String", 'DEFAULT_LOCATION', '"Village"'
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"CHA"'
buildConfigField "int", "DATABASE_VERSION", '15'
buildConfigField "int", "DATABASE_VERSION", '16'
buildConfigField "int", "MAX_CONNECTION_TIMEOUT", '5'
buildConfigField "int", "MAX_READ_TIMEOUT", '5'
}
drc {
resConfigs "en", "fr"
dimension = 'baseDimension'
applicationIdSuffix ".drc"
versionCode 11
versionName "1.0.16"
versionCode 12
versionName "1.0.17"
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '10'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "String", 'opensrp_url', '"https://wcaro-cd.smartregister.org/opensrp/"'
buildConfigField "String", 'guidebooks_url', '"https://opensrp.s3.amazonaws.com/media/drc/"'
buildConfigField "String", 'opensrp_url_preview', '"https://wcaro-cd-preview.smartregister.org/opensrp/"'
Expand All @@ -270,13 +292,13 @@ android {
buildConfigField "String", 'DEFAULT_LOCATION', '"VILLAGE/COMMUNAUTE"'
buildConfigField "int", "MAX_CONNECTION_TIMEOUT", '5'
buildConfigField "int", "MAX_READ_TIMEOUT", '5'
buildConfigField "int", "DATABASE_VERSION", '12'
buildConfigField "int", "DATABASE_VERSION", '13'
}
nigeria {
dimension = 'baseDimension'
applicationIdSuffix ".nigeria"
versionCode 5
versionName "1.0.5"
versionCode 6
versionName "1.0.6"
buildConfigField "String", 'opensrp_url', '"https://dcis-ng.smartregister.org/opensrp/"'
buildConfigField "String", 'guidebooks_url', '"https://opensrp.s3.amazonaws.com/media/chad/"'
buildConfigField "String", 'opensrp_url_debug', '"https://dcis-ng.labs.smartregister.org/opensrp/"'
Expand All @@ -285,13 +307,14 @@ android {
buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS_DEBUG", '{"State" , "Lga" , "Ward","Community","Sub-Community"}'
buildConfigField "String", 'DEFAULT_LOCATION', '"Sub-Community"'
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"Sub-Community"'
buildConfigField "int", "DATABASE_VERSION", '16'
buildConfigField "int", "DATABASE_VERSION", '17'
}
guinea {
dimension = 'baseDimension'
applicationIdSuffix ".guinea"
versionCode 4
versionName "1.0.3"
versionCode 5
versionName "1.0.4"
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '1000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '500'
buildConfigField "String", 'opensrp_url', '"https://wcaro-guinea.smartregister.org/opensrp/"'
Expand All @@ -305,13 +328,14 @@ android {
buildConfigField "String", 'DEFAULT_LOCATION_PREVIEW', '"Village"'
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"CHW"'
buildConfigField "String", 'DEFAULT_LOCATION', '"Village"'
buildConfigField "int", "DATABASE_VERSION", '8'
buildConfigField "int", "DATABASE_VERSION", '9'
}
togo {
dimension = 'baseDimension'
applicationIdSuffix ".togo"
versionCode 26
versionName "1.2.7"
versionCode 27
versionName "1.2.8"
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '1000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '500'
buildConfigField "String", 'opensrp_url', '"https://wcaro-tg.smartregister.org/opensrp/"'
Expand All @@ -324,12 +348,15 @@ android {
buildConfigField "String", 'DEFAULT_LOCATION', '"Village"'
buildConfigField "int", "MAX_CONNECTION_TIMEOUT", '10'
buildConfigField "int", "MAX_READ_TIMEOUT", '10'
buildConfigField "int", "DATABASE_VERSION", '21'
buildConfigField "int", "DATABASE_VERSION", '22'
}
liberia {
dimension = 'baseDimension'
versionCode 8
versionName "1.0.1"
versionCode 9
versionName "1.0.2"
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "String", 'opensrp_url', '"https://wcaro-lr.smartregister.org/opensrp/"'
buildConfigField "String", 'guidebooks_url', '"https://opensrp.s3.amazonaws.com/media/liberia/"'
buildConfigField "String", 'opensrp_url_debug', '"https://wcaro-stage.smartregister.org/opensrp/"'
Expand All @@ -340,22 +367,25 @@ android {
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"CHA"'
buildConfigField "int", "MAX_CONNECTION_TIMEOUT", '5'
buildConfigField "int", "MAX_READ_TIMEOUT", '5'
buildConfigField "int", "DATABASE_VERSION", '8'
buildConfigField "int", "DATABASE_VERSION", '9'
}
lmh {
dimension = 'baseDimension'
applicationIdSuffix ".lmh"
versionCode 2
versionName "0.1.7"
buildConfigField "String", 'opensrp_url', '"https://lmh-liberia.smartregister.org/opensrp/"'
versionCode 8
versionName "2.0.4"
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '10000'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '1'
buildConfigField "String", 'opensrp_url', '"https://liberiavts.smartregister.org/opensrp/"'
buildConfigField "String", 'guidebooks_url', '"https://opensrp.s3.amazonaws.com/media/lmh/"'
buildConfigField "String", 'opensrp_url_debug', '"https://lmh-stage.smartregister.org/opensrp/"'
buildConfigField "String", 'opensrp_url_debug', '"https://lmh-liberia-preview.smartregister.org/opensrp/"'
buildConfigField "String[]", "LOCATION_HIERACHY", '{"Country" , "County" , "District", "Clinics", "CHSS", "Village","Commune"}'
buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS", '{"Country" , "County" , "District", "Clinics", "CHSS", "Village","Commune"}'
buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS_DEBUG", '{"Clinic" , "CHSS" , "CHA"}'
buildConfigField "String[]", "ALLOWED_LOCATION_LEVELS_DEBUG", '{"Country" , "County" , "District", "Clinics", "CHSS", "Village","Commune"}'
buildConfigField "String", 'DEFAULT_LOCATION', '"Commune"'
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"CHA"'
buildConfigField "int", "DATABASE_VERSION", '6'
buildConfigField "String", 'DEFAULT_LOCATION_DEBUG', '"Commune"'
buildConfigField "int", "DATABASE_VERSION", '8'
}
}

Expand All @@ -365,7 +395,11 @@ android {
}

dependencies {
implementation('org.smartregister:opensrp-client-chw-core:2.1.3-SNAPSHOT@aar') {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'

implementation('com.google.android.gms:play-services-vision:17.0.2')

implementation('org.smartregister:opensrp-client-chw-core:2.1.4-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'androidx.legacy', module: 'legacy-support-v4'
Expand All @@ -376,8 +410,6 @@ dependencies {
exclude group: 'stax', module: 'stax-api'
}

debugImplementation 'com.amitshekhar.android:debug-db-encrypt:1.0.6'

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:5.1.0'
implementation('io.ona.kujaku:library:0.9.0') {
exclude group: 'com.android.volley', module: 'volley'
Expand All @@ -398,6 +430,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'org.mockito:mockito-android:3.0.0'

//implementation 'com.github.lecho:hellocharts-android:1.5.8@aar'
//For viewing PDFs in the app
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'

Expand All @@ -410,6 +443,15 @@ dependencies {
testImplementation 'org.robolectric:shadows-multidex:4.3.1'
testImplementation 'org.robolectric:shadows-support-v4:3.4-rc2'
testImplementation 'androidx.test:core:1.3.0'
// testImplementation 'com.ibm.fhir:fhir-model:4.7.0'
// testImplementation 'com.ibm.fhir:fhir-path:4.7.0'

// unit test
def powerMockVersion = '2.0.7'
testImplementation "org.powermock:powermock-module-junit4:$powerMockVersion"
testImplementation "org.powermock:powermock-module-junit4-rule:$powerMockVersion"
testImplementation "org.powermock:powermock-api-mockito2:$powerMockVersion"
testImplementation "org.powermock:powermock-classloading-xstream:$powerMockVersion"
}

def flavors = android.productFlavors.collect { flavor -> flavor.name }
Expand Down Expand Up @@ -449,6 +491,11 @@ task jacocoTestReport(type: JacocoReport, dependsOn: [
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
maxHeapSize = "3g"

testLogging {
events "failed"
exceptionFormat "full"
}
}

tasks.coveralls {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.smartregister.chw.custom_view;

public class FamilyFloatingMenuFlv extends DefaultFamilyFloatingMenuFlv {
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.apache.commons.lang3.tuple.Pair;
import org.smartregister.chw.core.activity.CoreStockInventoryReportActivity;
import org.smartregister.chw.core.activity.HIA2ReportsActivity;
import org.smartregister.chw.core.custom_views.NavigationMenu;
import org.smartregister.chw.core.utils.CoreConstants;
import org.smartregister.chw.referral.util.Constants;

Expand All @@ -15,7 +14,7 @@
import java.util.List;
import java.util.Locale;

public class NavigationMenuFlv implements NavigationMenu.Flavour {
public class NavigationMenuFlv extends DefaultNavigationMenuFlv {

@Override
public List<Pair<String, Locale>> getSupportedLanguages() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ protected void evaluateImmunization(Person baby) throws Exception {
.withBaseEntityID(baby.getBaseEntityID())
.withProcessingMode(BaseAncHomeVisitAction.ProcessingMode.SEPARATE)
.withDestinationFragment(BaseHomeVisitImmunizationFragment.getInstance(view, baby.getBaseEntityID(), details, displays))
.withHelper(new ImmunizationActionHelper(context, wrappers))
.withHelper(new ImmunizationActionHelper(context, () -> wrappers))
.build();
actionList.put(MessageFormat.format(context.getString(R.string.pnc_immunization_at_birth), baby.getFullName()), action);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public static void onUpgrade(Context context, SQLiteDatabase db, int oldVersion,
case 23:
upgradeToVersion23(context, db);
break;
case 24:
upgradeToVersion24(db);
break;
default:
break;
}
Expand Down Expand Up @@ -371,4 +374,8 @@ private static void upgradeToVersion23(Context context, SQLiteDatabase db) {
}
}

private static void upgradeToVersion24(SQLiteDatabase db) {
RepositoryUtils.updateClientValidateStatus(db);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.smartregister.chw.custom_view;

public class FamilyFloatingMenuFlv extends DefaultFamilyFloatingMenuFlv {
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public static void onUpgrade(Context context, SQLiteDatabase db, int oldVersion,
case 15:
upgradeToVersion15(db);
break;
case 16:
upgradeToVersion16(db);
break;
default:
break;
}
Expand Down Expand Up @@ -223,4 +226,8 @@ private static void initializeIndicatorDefinitions(ReportingLibrary reportingLib
reportingLibrary.readConfigFile(configFile, sqLiteDatabase);
}
}

private static void upgradeToVersion16(SQLiteDatabase db) {
RepositoryUtils.updateClientValidateStatus(db);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.smartregister.chw.custom_view;

public class FamilyFloatingMenuFlv extends DefaultFamilyFloatingMenuFlv {
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ public static void onUpgrade(Context context, SQLiteDatabase db, int oldVersion,
case 12:
upgradeToVersion12(db);
break;
case 13:
upgradeToVersion13(db);
break;
default:
break;
}
upgradeTo++;
}
RepositoryUtils.updateClientValidateStatus(db);
}

private static void upgradeToVersion2(Context context, SQLiteDatabase db) {
Expand Down Expand Up @@ -165,4 +169,8 @@ private static void upgradeToVersion11(SQLiteDatabase db) {
private static void upgradeToVersion12(SQLiteDatabase db) {
RepositoryUtils.updateNullEventIds(db);
}

private static void upgradeToVersion13(SQLiteDatabase db) {
RepositoryUtils.updateClientValidateStatus(db);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.smartregister.chw.custom_view;

public class FamilyFloatingMenuFlv extends DefaultFamilyFloatingMenuFlv {
}
Loading