From efcee60e66d1882686ee5cc44c4d8ef57cf56a23 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Fri, 15 Nov 2024 14:10:56 -0500 Subject: [PATCH] test(android): enable gradle deprecation warnings, fix jacoco deprecation this prepares the e2e app for gradle 9 --- tests/.detoxrc.js | 2 +- tests/android/app/jacoco.gradle | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/.detoxrc.js b/tests/.detoxrc.js index 594d16f357..a7a3e1b5ff 100644 --- a/tests/.detoxrc.js +++ b/tests/.detoxrc.js @@ -23,7 +23,7 @@ module.exports = { 'android.debug': { type: 'android.apk', binaryPath: 'android/app/build/outputs/apk/debug/app-debug.apk', - build: 'cd android && ./gradlew assembleDebug assembleAndroidTest lintDebug -DtestBuildType=debug && cd ..', + build: 'cd android && ./gradlew assembleDebug assembleAndroidTest lintDebug -DtestBuildType=debug --warning-mode all && cd ..', reversePorts: [ 8080, 8081, diff --git a/tests/android/app/jacoco.gradle b/tests/android/app/jacoco.gradle index 56ec7fc716..e0d687109f 100644 --- a/tests/android/app/jacoco.gradle +++ b/tests/android/app/jacoco.gradle @@ -68,7 +68,7 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'conn reports { xml.required = true - html.destination htmlOutDir + html.outputLocation = htmlOutDir } def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] @@ -98,7 +98,7 @@ task jacocoUnitTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) reports { xml.required = true - html.destination htmlOutDir + html.outputLocation = htmlOutDir } def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] @@ -123,7 +123,7 @@ task jacocoAndroidTestReport(type: JacocoReport) { reports { xml.required = true - html.destination htmlOutDir + html.outputLocation = htmlOutDir } def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']