diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index fbfca48d..6297724d 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -38,7 +38,7 @@ jobs: uses: ./.github/actions/prepare-android-env - name: Run test - run: ./gradlew codeCoverage --scan + run: ./gradlew codeCoverage env: LOUDIUS_CLIENT_SECRET: ${{ secrets.LOUDIUS_CLIENT_SECRET }} LOUDIUS_CLIENT_ID: ${{ secrets.LOUDIUS_CLIENT_ID }} diff --git a/app/build.gradle b/app/build.gradle index 52fc6daf..f8f2b8c9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -85,7 +85,6 @@ android { it.enabled = false } } - unitTests.returnDefaultValues = true } } kapt { @@ -189,15 +188,18 @@ dependencies { implementation "io.ktor:ktor-client-core:$ktor_version" implementation "io.ktor:ktor-client-okhttp:$ktor_version" implementation "io.ktor:ktor-client-content-negotiation:$ktor_version" - implementation "io.ktor:ktor-serialization-gson:$ktor_version" + implementation "io.ktor:ktor-serialization-kotlinx-json:$ktor_version" testImplementation("io.ktor:ktor-client-mock:$ktor_version") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0") + implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1") + testImplementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1") + //retrofit & okhttp implementation 'com.squareup.okhttp3:okhttp:4.11.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0' - //gson - implementation 'com.google.code.gson:gson:2.10.1' + testImplementation project(":app-shared-tests") androidTestImplementation(project(":app-shared-tests")) { diff --git a/gradle.properties b/gradle.properties index 08c17636..2cbd6d19 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,9 +17,6 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 android.useAndroidX=true # Kotlin code style for this project: "official" or "obsolete": kotlin.code.style=official - -org.gradle.logging.stacktrace=all -org.gradle.logging.level=debug # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library