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

Android 11 and 12 support #891

Merged
merged 22 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
12be34e
AttentionFlagsTests
SebaMutuku Sep 14, 2022
4048959
Async Task refactoring
SebaMutuku Sep 21, 2022
5989b6e
Merge branch 'master' into android_12_support
SebaMutuku Sep 21, 2022
8dd68de
Fix Failing tests
SebaMutuku Sep 21, 2022
10247d3
Merge branch 'android_12_support' of https://github.com/opensrp/opens…
SebaMutuku Sep 21, 2022
7ef32ea
Resolving rules engine errors
SebaMutuku Sep 21, 2022
ceeaf04
Fix tests
SebaMutuku Sep 21, 2022
54da1e9
Native form version 2.1.19
SebaMutuku Sep 22, 2022
a6e97b7
fixed the failing tests
junaidwarsivd Sep 23, 2022
796f96b
fixed the failing test in CharacteristicsInteractorTest
junaidwarsivd Sep 23, 2022
f3ea460
Finalize contact task
SebaMutuku Sep 25, 2022
c7b6d8c
Load Contact summary data
SebaMutuku Sep 25, 2022
e8c3c8d
client core version amendmend
SebaMutuku Sep 27, 2022
8789ddb
p2p sync version
SebaMutuku Sep 28, 2022
9a818ab
p2p-sync compatibility with android x
SebaMutuku Sep 28, 2022
58fe12e
Merge branch 'master' into android_12_support
junaidwarsivd Oct 11, 2022
c179a82
resolved android 12 issues
junaidwarsivd Oct 21, 2022
788404c
Merge pull request #911 from opensrp/android_12_issues
junaidwarsivd Oct 25, 2022
64ed285
removed attention flag test
junaidwarsivd Oct 26, 2022
17b1d3f
Merge branch 'android_12_support' of https://github.com/opensrp/opens…
junaidwarsivd Oct 26, 2022
a4482a7
integer parsing moved under exception handling block
junaidwarsivd Oct 26, 2022
c70884e
updated the core and native forms library and upgraded the version
junaidwarsivd Oct 27, 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
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ subprojects {

ext.androidToolsBuildGradle = '30.0.3'
ext.androidBuildToolsVersion = '30.0.3'
ext.androidMinSdkVersion = 18
ext.androidCompileSdkVersion = 30
ext.androidTargetSdkVersion = 30
ext.androidMinSdkVersion = 21
ext.androidCompileSdkVersion = 31
ext.androidTargetSdkVersion = 31
ext.androidAnnotationsVersion = '3.0.1'
ext.androidAnnotationsAPIVersion = '3.0.1'
ext.jacocoVersion = "0.7.9"
Expand Down
15 changes: 9 additions & 6 deletions opensrp-anc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ buildscript {
repositories {
mavenCentral()
google()
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.2'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.0'
classpath 'com.google.gms:google-services:4.3.14'
}
configurations.all {
resolutionStrategy {
Expand Down Expand Up @@ -178,7 +181,7 @@ tasks.withType(Test) {

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation('org.smartregister:opensrp-client-native-form:2.1.19-PREVIEW-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-native-form:3.0.2-PREVIEW-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'recyclerview-v7'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand All @@ -189,7 +192,7 @@ dependencies {
exclude group: 'org.yaml', module: 'snakeyaml'
exclude group: 'io.ona.rdt-capture', module: 'lib'
}
implementation('org.smartregister:opensrp-client-core:4.3.26-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-core:6.0.2-PREVIEW-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.github.bmelnychuk', module: 'atv'
exclude group: 'com.google.guava', module: 'guava'
Expand All @@ -205,7 +208,7 @@ dependencies {
exclude group: 'org.smartregister', module: 'android-p2p-sync'
}

api("org.smartregister:android-p2p-sync:0.3.8-aplha4-SNAPSHOT") {
api("org.smartregister:android-p2p-sync:0.4.0-DEV-SNAPSHOT") {
transitive = true
exclude group: 'org.smartregister', module: 'opensrp-client-core'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand Down Expand Up @@ -255,7 +258,7 @@ dependencies {
implementation("com.itextpdf:itext7-core:7.1.12")
implementation 'org.jacoco:org.jacoco.agent:0.7.9:runtime'
testImplementation 'org.jacoco:org.jacoco.agent:0.7.9:runtime'

implementation 'com.android.volley:volley:1.2.1'
implementation 'org.jacoco:org.jacoco.agent:0.8.7:runtime'
testImplementation 'org.jacoco:org.jacoco.agent:0.8.7:runtime'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ fields:
relevance: "phys_symptoms != ''"

- template: "{{profile_contact_tab_contacts.average_weight_gain_per_week_since_last_contact}}: {weight_gain} kg"
relevance: "weight_gain != ''"
relevance: "weight_gain != '' && weight_gain != '0'"

- template: "{{profile_contact_tab_contacts.total_weight_gain}}: {tot_weight_gain} kg"
relevance: "weight_gain == '' || weight_gain == '0'"
38 changes: 38 additions & 0 deletions opensrp-anc/src/main/assets/json.form/anc_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,44 @@
}
}
},
{
"key": "accordion_covid-19",
"openmrs_entity_parent": "",
"openmrs_entity": "",
"openmrs_entity_id": "",
"text": "{{anc_test.step2.accordion_covid_19.text}}",
"accordion_info_text": "{{anc_test.step2.accordion_covid_19.text}}",
"accordion_info_title": "{{anc_test.step2.accordion_covid_19.text}}",
"type": "expansion_panel",
"content_form": "tests_covid_19_sub_form",
"container": "anc_test",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "tests_expansion_panel_relevance_rules.yml"
}
}
}
},
{
"key": "accordion_toxo",
"openmrs_entity_parent": "",
"openmrs_entity": "",
"openmrs_entity_id": "",
"text": "{{anc_test.step2.accordion_toxo.text}}",
"accordion_info_text": "{{anc_test.step2.accordion_toxo.info.text}}",
"accordion_info_title": "{{anc_test.step2.accordion_toxo.text}}",
"type": "expansion_panel",
"content_form": "tests_toxo_sub_form",
"container": "anc_test",
"relevance": {
"rules-engine": {
"ex-rules": {
"rules-file": "tests_expansion_panel_relevance_rules.yml"
}
}
}
},
{
"key": "accordion_syphilis",
"openmrs_entity_parent": "",
Expand Down
Loading