Skip to content

Commit

Permalink
Merge pull request #891 from opensrp/android_12_support
Browse files Browse the repository at this point in the history
Android 11 and 12 support added
issue# 906 fix added #906
  • Loading branch information
junaidwarsivd authored Oct 27, 2022
2 parents 1c46c2e + c70884e commit 3291263
Show file tree
Hide file tree
Showing 42 changed files with 1,222 additions and 225 deletions.
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.1.1-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.0-BETA3-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

0 comments on commit 3291263

Please sign in to comment.