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

Upgrade Client Core Library #871

Merged
merged 78 commits into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from 77 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
ed97ea6
Client core lib artefact release automation CI/CD 👷
ndegwamartin May 9, 2022
b10c0ff
Update CI configuration file 🔧
ndegwamartin May 9, 2022
d348898
Fix Password Reset Webpage Error
hamza-vd May 18, 2022
82edb51
Bump up core version
hamza-vd May 18, 2022
29ae8fa
Reformat Code
hamza-vd May 19, 2022
55aa9c7
Migrate crashlytics library
ndegwamartin May 25, 2022
75b6cb8
Update dependent libraries
ndegwamartin May 25, 2022
422875c
Remove deprecated sqlcipher binaries
ndegwamartin May 26, 2022
244bdbe
Revert Location translations
ndegwamartin May 26, 2022
7b317cb
5.0.4 PREVIEW SNAPSHOT
ndegwamartin May 26, 2022
fd66483
Migrate Jackson annotation library
ndegwamartin May 27, 2022
d8daf69
Remove redundant static libraries
ndegwamartin May 30, 2022
8f8cf2c
Refactor Image handling implementation
ndegwamartin May 30, 2022
b37883c
Refactor Client HTTP Requests Implementaton
ndegwamartin May 30, 2022
a944881
Clean up Unused Helper Classes
ndegwamartin May 30, 2022
7d787e2
Implement OAuth Credentials Error Handling
ndegwamartin May 30, 2022
20240d8
Migrate Dependencies To Latest
ndegwamartin May 30, 2022
e2bdf41
Bump up artifact version to 6.0.0
ndegwamartin May 30, 2022
fc3a002
version bump
ndegwamartin May 30, 2022
aad868c
Upgradle gradle build tools
ndegwamartin May 31, 2022
58d27d1
Upgrade testing framework
ndegwamartin May 31, 2022
413c4fb
Refactor/Fix failing unit tests
ndegwamartin Jun 2, 2022
9987b9b
Refactor Authentication Implementation/Fix Unit Tests
ndegwamartin Jun 3, 2022
126332b
Refactor/Fix failing Unit Tests ✅
ndegwamartin Jun 7, 2022
546268c
Merge branch 'master' into migrate-crashlytics
ndegwamartin Jun 7, 2022
32dcaa4
Version 6.0.0. ALPHA
ndegwamartin Jun 7, 2022
1e9431a
Refactor UpdateActionTask remove AsyncTask
ndegwamartin Jun 7, 2022
3e534f5
Fix previously disabled test cases
ndegwamartin Jun 7, 2022
c2ea63d
Code clean up
ndegwamartin Jun 7, 2022
969ed8c
Exception handling for Intent services
ndegwamartin Jun 7, 2022
2660eac
Implement app config to disable Profile Images feature
ndegwamartin Jun 8, 2022
3c72ccb
Code reformat
ndegwamartin Jun 8, 2022
2e32224
Refactor re-authentication implementation to enhance UX
ndegwamartin Jun 8, 2022
7e27639
Fix issue Jacoco report coverage not showing
ndegwamartin Jun 8, 2022
ad8ce92
update config
ndegwamartin Jun 14, 2022
c5c265c
Migrate deprecated gradle config
ndegwamartin Jun 14, 2022
664883e
Fix CI/CD not working for artifact
ndegwamartin Jun 14, 2022
776be03
Update Artifact to Beta for testing
ndegwamartin Jun 14, 2022
481674d
Add CI Config to Auto Create Github Release 👷
ndegwamartin Jun 14, 2022
03856cd
Update Artifact Version
ndegwamartin Jun 15, 2022
194acb7
Fix Sample App Crash
ndegwamartin Jun 15, 2022
70661fa
Add Exception Handling for Firebase Crashlytics Configuration
ndegwamartin Jun 20, 2022
ebe917b
Update FTS with Client Type Check
ndegwamartin Jun 23, 2022
d899d71
Code clean up
ndegwamartin Jun 23, 2022
3fbccb5
Default to original location name for missing translations
qiarie Jun 8, 2022
a3456a8
Clean up
ndegwamartin Jul 4, 2022
097d2b7
Clean up
ndegwamartin Jul 12, 2022
ec08655
Merge pull request #873 from opensrp/refactor-locationpicker-translat…
ndegwamartin Jul 19, 2022
607e1a6
Implement helper to AddFieldSubmissionObservation
ndegwamartin Jul 19, 2022
b208057
codacy clean up
ndegwamartin Jul 19, 2022
03e92d4
:construction: Add AppExecutorService class
allan-on Aug 22, 2022
52722f2
:recycle: Remove Asynctask in UpdateANMDetailsTask fetch
allan-on Aug 22, 2022
7968891
:recycle: Remove AsyncTask in NativeUpdateANMDetailsTask
allan-on Aug 30, 2022
8ab4665
:white_check_mark: Add NativeUpdateANMDetailsTask#fetch test
allan-on Aug 30, 2022
46c9b6f
:white_check_mark: Update NativeUpdateANMDetailsTask Test
allan-on Sep 1, 2022
e647384
:white_check_mark: Fix NPE in NativeUpdateANMDetailsTaskTest
allan-on Sep 1, 2022
e41c422
:white_check_mark: Add UpdateANMDetailsTask test
allan-on Sep 2, 2022
c726a64
:white_check_mark: Update UpdateANMDetailsTaskTest method name
allan-on Sep 2, 2022
9b385bf
:recycle: Remove AsyncTasks in SecuredNativeSmartRegister
allan-on Sep 6, 2022
aea5366
Code clean up/Refactor
ndegwamartin Sep 20, 2022
2c94dec
Refactor for testability ✅
ndegwamartin Sep 20, 2022
3dda4b3
Addition of user details to shared Prefs
SebaMutuku Sep 27, 2022
d041742
Addition of user details to shared Prefs
SebaMutuku Sep 27, 2022
b0f0ee9
saveProviderBaseEntityIdOnSharedPref
SebaMutuku Sep 29, 2022
b78c9d4
saveProviderBaseEntityIdOnSharedPref
SebaMutuku Sep 29, 2022
98031b7
Codacy updates
SebaMutuku Sep 30, 2022
2b450bc
Codacy updates
SebaMutuku Sep 30, 2022
1284c31
issue 906 added translated object parsing
junaidwarsivd Oct 5, 2022
b6809fb
updated the test for extract TranslatableValue
junaidwarsivd Oct 5, 2022
987c3bb
removed the unnessary Assert ref
junaidwarsivd Oct 5, 2022
b474095
Merge branch 'migrate-crashlytics' of https://github.com/opensrp/open…
junaidwarsivd Oct 5, 2022
06276b8
Merge branch 'migrate-crashlytics' into anc-issue-fix-906
junaidwarsivd Oct 5, 2022
1067621
added fixes for the extended radio buttons not addeing humab readable…
junaidwarsivd Oct 11, 2022
2974f25
Merge remote-tracking branch 'origin/master' into migrate-crashlytics
ndegwamartin Oct 11, 2022
9dc6eb6
Merge remote-tracking branch 'origin/add_user_details_to_shared_prefs…
junaidwarsivd Oct 12, 2022
bedfc97
Merge remote-tracking branch 'origin/test_add_user_details_on_sharedp…
junaidwarsivd Oct 14, 2022
5fdb3dd
Merge pull request #892 from opensrp/anc-issue-fix-906
dubdabasoduba Oct 18, 2022
3a6bf41
Bump up artifact version
ndegwamartin Nov 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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Print Java version
run: java -version
- name: Grant execute permission for gradlew
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ jobs:
run: ./gradlew :opensrp-core:clean :opensrp-core:testDebugUnitTest --stacktrace

- name: Generate & upload library snapshot artifact AAR (Android Archive) file
run: ./gradlew :opensrp-core:uploadArchives -PmavenLocal=false --stacktrace
run: ./gradlew :opensrp-core:uploadArchives -PmavenLocal=false --stacktrace -PsonatypeUsername=${{ secrets.NEXUS_USERNAME }} -PsonatypePassword=${{ secrets.NEXUS_PASSWORD }}

- name: Github Release
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,4 @@ By placing a file named `app.properties` in your implementation assets folder (S
| `encrypt.shared.preferences` | Boolean | false | Enable/disables encrypting SharedPreferences |
| `allow.offline.login.with.invalid.token` | Boolean | false | Allow offline login when token is no longer valid after a successful login when online and user is forcefully logged out |
| `enable.search.button` | Boolean | false | Enable/Disable search to be triggered only after clicking the search icon in `org.smartregister.view.fragment.BaseRegisterFragment` or its subclass |
| `feature.profile.images.disabled` | Boolean | false | Disable profile image capturing and rendering |
22 changes: 11 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ buildscript {
google()
jcenter()
mavenCentral()
maven{ url "https://plugins.gradle.org/m2/" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.10.2'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.0'
classpath 'org.smartregister:gradle-jarjar-plugin:1.0.0-SNAPSHOT'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'
}
}

Expand All @@ -38,11 +38,11 @@ subprojects {

group = 'org.smartregister'

ext.androidToolsBuildGradle = '4.0.0'
ext.androidBuildToolsVersion = '29.0.3'
ext.androidMinSdkVersion = 18
ext.androidCompileSdkVersion = 29
ext.androidTargetSdkVersion = 29
ext.androidToolsBuildGradle = '4.2.2'
ext.androidBuildToolsVersion = '30.0.2'
ext.androidMinSdkVersion = 18
ext.androidCompileSdkVersion = 31
ext.androidTargetSdkVersion = 31

ext.androidAnnotationsVersion = '3.0.1'
ext.androidAnnotationsAPIVersion = '3.0.1'
Expand All @@ -52,7 +52,7 @@ subprojects {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "http://acra.googlecode.com/svn/repository/releases" }
maven { url "https://acra.googlecode.com/svn/repository/releases" }
maven { url "https://repo.maven.apache.org/maven2" }
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=5.0.7-SNAPSHOT
VERSION_NAME=6.0.0-BETA3-SNAPSHOT
VERSION_CODE=1
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Core Application
Expand All @@ -13,5 +13,5 @@ POM_SETTING_DEVELOPER_ID=opensrp
POM_SETTING_DEVELOPER_NAME=OpenSRP Onadev
android.useAndroidX=true
android.enableJetifier=true

org.gradle.jvmargs=-Xmx2048m
android.jetifier.ignorelist=shadows,bcprov-jdk15on
10 changes: 5 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#Wed Jun 24 12:56:07 EAT 2020
#Mon May 30 16:27:42 EAT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
ndegwamartin marked this conversation as resolved.
Show resolved Hide resolved
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
org.gradle.daemon=true
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
org.gradle.configureondemand=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048m
zipStoreBase=GRADLE_USER_HOME
org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx2048m
151 changes: 67 additions & 84 deletions opensrp-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ description = 'OpenSRP core client library'
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidToolsBuildGradle"
classpath 'org.apache.commons:commons-lang3:3.10'
classpath 'io.fabric.tools:gradle:1.31.2'
classpath 'org.apache.commons:commons-lang3:3.12.0'
}
}

Expand All @@ -19,23 +17,21 @@ allprojects {
mavenLocal()
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
}

apply plugin: 'com.android.library'
//apply plugin: 'org.robolectric'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'maven-publish'

jacoco {
toolVersion = "0.8.5"
toolVersion = "0.8.8"
}

android {
compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidBuildToolsVersion
useLibrary 'org.apache.http.legacy'

defaultPublishConfig !isReleaseBuild() ? "debug" : "release"

Expand All @@ -58,7 +54,7 @@ android {
debug {
minifyEnabled false
debuggable true
testCoverageEnabled = true
testCoverageEnabled = false
ndegwamartin marked this conversation as resolved.
Show resolved Hide resolved
signingConfig signingConfigs.config
zipAlignEnabled true
buildConfigField "String", "TRUST_MANAGER_ALGORITHM", "\"X509\""
Expand Down Expand Up @@ -94,8 +90,9 @@ android {
testInstrumentationRunner "android.test.InstrumentationTestRunner"
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
buildConfigField "int", "DB_ENCRYPTION_VERSION", '1'
}

buildConfigField("int", "VERSION_CODE", "${defaultConfig.versionCode}")
buildConfigField("String", "VERSION_NAME", "\"${defaultConfig.versionName}\"")
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
Expand Down Expand Up @@ -161,25 +158,26 @@ afterEvaluate {
assembleDebug.dependsOn(copyTestResources)
}
configurations.all {
resolutionStrategy.force 'commons-codec:commons-codec:1.10'
resolutionStrategy.force 'commons-codec:commons-codec:1.15'
}

dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5'
implementation 'net.zetetic:android-database-sqlcipher:4.2.0'

implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.test:monitor:1.5.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation 'net.zetetic:android-database-sqlcipher:4.5.1'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'org.codehaus.jackson:jackson-core-asl:1.9.13'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.13.3'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "org.apache.httpcomponents:httpmime:4.5.6"
implementation group: 'commons-codec', name: 'commons-codec', version: '1.10'
implementation group: 'com.google.guava', name: 'guava', version: '24.1-jre'
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
implementation 'org.apache.commons:commons-lang3:3.9'
implementation 'org.mozilla:rhino:1.7R4'
implementation 'com.ocpsoft:ocpsoft-pretty-time:1.0.7'
api 'joda-time:joda-time:2.10.5'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.15'
implementation group: 'com.google.guava', name: 'guava', version: '31.1-android'
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation group: 'org.mozilla', name: 'rhino', version: '1.7.14'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.4.Final'
api 'joda-time:joda-time:2.10.14'
implementation('com.github.bmelnychuk:atv:1.2.9') {
exclude group: 'com.google.android', module: 'android'
}
Expand All @@ -188,33 +186,32 @@ dependencies {
exclude group: 'com.google.android', module: 'android'
}

implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
transitive = true
}

implementation('ch.acra:acra:4.5.0') {
implementation('ch.acra:acra:4.11.1') {
exclude group: 'org.json', module: 'json'
}

implementation 'com.github.ybq:Android-SpinKit:1.4.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.github.bumptech.glide:glide:4.13.0'

annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
annotationProcessor 'com.jakewharton:butterknife:10.2.3'

implementation fileTree(include: ['*.jar'], dir: 'libs')
annotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')

implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.security:security-crypto:1.0.0-rc03'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.security:security-crypto:1.0.0'

implementation('com.google.android.material:material:1.1.0') {
implementation('com.google.android.material:material:1.6.1') {
exclude group: 'com.android.support', module: 'recyclerview-v7'
}

implementation('com.evernote:android-job:1.2.6') {
implementation('com.evernote:android-job:1.4.3') {
exclude group: 'com.google.android', module: 'android'
}

implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
implementation group: 'commons-validator', name: 'commons-validator', version: '1.7'

implementation('de.hdodenhof:circleimageview:3.1.0') {
exclude group: 'com.google.android', module: 'android'
}
Expand All @@ -226,75 +223,61 @@ dependencies {
}

implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'

implementation 'org.smartregister:opensrp-client-utils:0.0.4-SNAPSHOT'
implementation 'org.smartregister:opensrp-client-utils:0.0.6-SNAPSHOT'

implementation 'org.smartregister:opensrp-plan-evaluator:1.6.6-SNAPSHOT'
implementation 'org.smartregister:opensrp-plan-evaluator:1.6.7-SNAPSHOT'

implementation 'xerces:xercesImpl:2.12.0'

implementation('ch.acra:acra:4.5.0') {
exclude group: 'org.json', module: 'json'
}

implementation 'com.github.ybq:Android-SpinKit:1.2.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
ndegwamartin marked this conversation as resolved.
Show resolved Hide resolved

implementation fileTree(include: ['*.jar'], dir: 'libs')
annotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')

implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation('com.android.support:design:28.0.0') {
exclude group: 'com.android.support', module: 'recyclerview-v7'
}

implementation 'com.evernote:android-job:1.2.6'
implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'xerces:xercesImpl:2.12.0'
compileOnly platform('com.google.firebase:firebase-bom:30.0.2')
compileOnly 'com.google.firebase:firebase-crashlytics'
compileOnly 'com.google.firebase:firebase-perf'

def work_version = "2.7.1"
implementation "androidx.work:work-runtime:$work_version"

// Add the dependency for the Performance Monitoring library
implementation 'com.google.firebase:firebase-perf:19.0.7'

implementation fileTree(include: ['*.jar'], dir: 'libs')

androidTestImplementation 'junit:junit:4.13'
//Mockito
def mockitoVersion = '4.6.1'
testImplementation("org.mockito:mockito-core:$mockitoVersion")
testImplementation("org.mockito:mockito-inline:$mockitoVersion")

testImplementation 'org.apache.maven:maven-ant-tasks:2.1.3'
testImplementation 'org.mockito:mockito-core:3.1.0'
testImplementation "androidx.test:core:1.4.0"
testImplementation "androidx.test.ext:junit:1.1.2"
testImplementation "androidx.test:core:1.4.0-rc01"
testImplementation "androidx.test.ext:junit:1.1.3-rc01"

testAnnotationProcessor fileTree(include: ['butterknife*.jar'], dir: 'libs')
testAnnotationProcessor group: 'com.jakewharton', name: 'butterknife', version: '10.2.3'

testImplementation('org.robolectric:robolectric:4.3.1') {
//Robolectric
def robolectricVersion = '4.8.1'
testImplementation(group: 'org.robolectric', name: 'robolectric', version: "$robolectricVersion") {
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.apache.maven', module: 'maven-model'
exclude group: 'com.android.support'
exclude group: 'androidx.test'
exclude group: 'com.thoughtworks.xstream', module: 'xstream'
}

testImplementation('org.robolectric:shadows-multidex:4.3.1') {
testImplementation(group: 'org.robolectric', name: 'shadows-multidex', version: "$robolectricVersion") {
exclude group: 'com.google.guava', module: 'guava'
}

testRuntimeOnly platform('com.google.firebase:firebase-bom:30.0.2')
testRuntimeOnly 'com.google.firebase:firebase-crashlytics'
// Add the dependency for the Performance Monitoring library
ndegwamartin marked this conversation as resolved.
Show resolved Hide resolved
testImplementation 'com.google.firebase:firebase-perf'

// PowerMock
def powerMockVersion = '2.0.4'
testImplementation "org.powermock:powermock-module-junit4:$powerMockVersion"
testImplementation "org.powermock:powermock-module-junit4-rule:$powerMockVersion"
testImplementation "org.powermock:powermock-module-javaagent:$powerMockVersion"
testImplementation "org.powermock:powermock-api-mockito2:$powerMockVersion"
testImplementation("org.powermock:powermock-classloading-xstream:$powerMockVersion")

def fragmentVersion = "1.2.5"
def powerMockVersion = '2.0.9'
testImplementation "org.powermock:powermock-core:$powerMockVersion"

def fragmentVersion = "1.5.0-rc01"
testImplementation "androidx.fragment:fragment-testing:$fragmentVersion"

testImplementation 'org.skyscreamer:jsonassert:1.5.0'
}

task clearJar(type: Delete) {
Expand All @@ -313,8 +296,8 @@ makeJar.dependsOn(clearJar, build)
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {

reports {
xml.enabled = true
html.enabled = true
xml.required.set(true)
html.required.set(true)
}

getReports().getXml().setDestination(file("${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"))
Expand All @@ -338,4 +321,4 @@ coveralls {
}

apply from: '../maven.gradle'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android'
2 changes: 1 addition & 1 deletion opensrp-core/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ POM_SETTING_PACKAGING=aar

android.useAndroidX=true
android.enableJetifier=true
android.jetifier.blacklist=shadows
android.jetifier.ignorelist=shadows
2 changes: 1 addition & 1 deletion opensrp-core/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
Binary file removed opensrp-core/libs/butterknife-7.0.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed opensrp-core/libs/java-json.jar
Binary file not shown.
Loading