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

Opensrp-client-chw changes #448

Open
wants to merge 131 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 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
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
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ allprojects {
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://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases'
content {
// Does only include this group
includeGroup "com.ibm.fhir"
}
}
}
}

Expand Down
75 changes: 60 additions & 15 deletions opensrp-chw/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ allprojects {
}
}


apply plugin: 'com.android.application'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
Expand All @@ -61,8 +62,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 @@ -142,9 +149,6 @@ android {
minifyEnabled false
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '500'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '500'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "boolean", "TIME_CHECK", "true"
buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '15'
buildConfigField "int", "VACCINE_SYNC_PROCESSING_MINUTES", '30'
Expand All @@ -157,12 +161,10 @@ 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 {
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '30'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '15'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "boolean", "TIME_CHECK", "false"
buildConfigField "int", "DATA_SYNC_DURATION_MINUTES", '15'
buildConfigField "int", "VACCINE_SYNC_PROCESSING_MINUTES", '30'
Expand All @@ -175,8 +177,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 All @@ -203,6 +211,7 @@ android {
returnDefaultValues = true
includeAndroidResources = true
}

unitTests.all {
systemProperty 'robolectric.enabledSdks', '28'
jvmArgs '-noverify'
Expand All @@ -223,6 +232,9 @@ android {
applicationIdSuffix ".ba"
versionCode 8
versionName "1.0.8"
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 @@ -239,6 +251,9 @@ android {
applicationIdSuffix ".chad"
versionCode 3
versionName "1.0.3"
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 @@ -257,6 +272,9 @@ android {
applicationIdSuffix ".drc"
versionCode 11
versionName "1.0.16"
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-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 @@ -275,6 +293,7 @@ android {
applicationIdSuffix ".guinea"
versionCode 4
versionName "1.0.3"
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 @@ -295,6 +314,7 @@ android {
applicationIdSuffix ".togo"
versionCode 26
versionName "1.2.7"
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 @@ -313,6 +333,9 @@ android {
dimension = 'baseDimension'
versionCode 8
versionName "1.0.1"
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 @@ -328,17 +351,20 @@ android {
lmh {
dimension = 'baseDimension'
applicationIdSuffix ".lmh"
versionCode 2
versionName "0.1.7"
buildConfigField "String", 'opensrp_url', '"https://lmh-liberia.smartregister.org/opensrp/"'
versionCode 7
versionName "2.0.3"
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", '7'
}
}

Expand All @@ -348,7 +374,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 Down Expand Up @@ -379,6 +409,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 @@ -391,6 +422,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 @@ -430,6 +470,11 @@ task jacocoTestReport(type: JacocoReport, dependsOn: [
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
maxHeapSize = "3g"

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

tasks.coveralls {
Expand All @@ -439,4 +484,4 @@ tasks.coveralls {
coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"
sourceDirs = ["$project.projectDir/src/main/java"]
}
}
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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,4 @@
package org.smartregister.chw.custom_view;

public class FamilyFloatingMenuFlv extends DefaultFamilyFloatingMenuFlv {
}
17 changes: 13 additions & 4 deletions opensrp-chw/src/lmh/assets/json.form/child_enrollment.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"openmrs_entity_id": "first_name",
"openmrs_data_type": "text",
"type": "edit_text",
"edit_type": "name",
"hint": "{{child_enrollment.step1.first_name.hint}}",
"expanded": false,
"v_required": {
Expand All @@ -105,6 +106,7 @@
"openmrs_entity_id": "middle_name",
"openmrs_data_type": "text",
"type": "edit_text",
"edit_type": "name",
"hint": "{{child_enrollment.step1.middle_name.hint}}",
"expanded": false,
"v_regex": {
Expand Down Expand Up @@ -206,11 +208,18 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person",
"openmrs_entity_id": "gender",
"type": "spinner",
"type": "native_radio",
"hint": "{{child_enrollment.step1.gender.hint}}",
"values": [
"{{child_enrollment.step1.gender.values[0]}}",
"{{child_enrollment.step1.gender.values[1]}}"
"label": "{{child_enrollment.step1.gender.hint}}",
"options": [
{
"key": "{{child_enrollment.step1.gender.values[0]}}",
"text": "{{child_enrollment.step1.gender.values[0]}}"
},
{
"key": "{{child_enrollment.step1.gender.values[1]}}",
"text": "{{child_enrollment.step1.gender.values[1]}}"
}
],
"v_required": {
"value": "true",
Expand Down
15 changes: 11 additions & 4 deletions opensrp-chw/src/lmh/assets/json.form/family_member_register.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,18 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person",
"openmrs_entity_id": "gender",
"type": "spinner",
"type": "native_radio",
"label": "{{family_member_register.step1.sex.hint}}",
"hint": "{{family_member_register.step1.sex.hint}}",
"values": [
"{{family_member_register.step1.sex.values[0]}}",
"{{family_member_register.step1.sex.values[1]}}"
"options": [
{
"key": "{{family_member_register.step1.sex.values[0]}}",
"text": "{{family_member_register.step1.sex.values[0]}}"
},
{
"key": "{{family_member_register.step1.sex.values[1]}}",
"text":"{{family_member_register.step1.sex.values[1]}}"
}
],
"v_required": {
"value": "true",
Expand Down
21 changes: 15 additions & 6 deletions opensrp-chw/src/lmh/assets/json.form/family_register.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"validate_on_submit": true,
"validate_on_submit": false,
"show_errors_on_submit": false,
"count": "2",
"encounter_type": "Family Registration",
Expand Down Expand Up @@ -80,7 +80,8 @@
"openmrs_entity": "person_identifier",
"openmrs_entity_id": "opensrp_id",
"hidden": "true",
"type": "barcode",
"type": "edit_text",
"value": "0",
"barcode_type": "qrcode",
"hint": "{{family_register.step1.unique_id.hint}}",
"scanButtonText": "{{family_register.step1.unique_id.scanButtonText}}",
Expand All @@ -95,6 +96,7 @@
"openmrs_entity": "person_address",
"openmrs_entity_id": "cityVillage",
"type": "edit_text",
"edit_type": "name",
"hint": "{{family_register.step1.village_town.hint}}",
"v_required": {
"value": "true",
Expand Down Expand Up @@ -257,11 +259,18 @@
"openmrs_entity_parent": "",
"openmrs_entity": "person",
"openmrs_entity_id": "gender",
"type": "spinner",
"type": "native_radio",
"label": "{{family_register.step2.sex.hint}}",
"hint": "{{family_register.step2.sex.hint}}",
"values": [
"{{family_register.step2.sex.values[0]}}",
"{{family_register.step2.sex.values[1]}}"
"options": [
{
"key": "{{family_register.step2.sex.values[0]}}",
"text": "{{family_register.step2.sex.values[0]}}"
},
{
"key": "{{family_register.step2.sex.values[1]}}",
"text": "{{family_register.step2.sex.values[1]}}"
}
],
"v_required": {
"value": "true",
Expand Down
Loading