From f9338e75a201821187b9772998fa593166a0d014 Mon Sep 17 00:00:00 2001 From: Victor Kabata Date: Fri, 9 Aug 2024 17:41:26 +0300 Subject: [PATCH 1/3] Update build.yml --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b20f3424..61e82447 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,10 @@ jobs: run: chmod +x ./gradlew - name: Execute unit tests - run: ./gradlew :daraja:check --stacktrace + run: ./gradlew :daraja:allTests --stacktrace + + - name: Generate test report + run: ./gradlew :daraja:koverHtmlReport --stacktrace - name: Upload test report uses: actions/upload-artifact@v3 From ebb6861a0e72e09d4b53d297b53d974d4656ce7f Mon Sep 17 00:00:00 2001 From: Victor Kabata Date: Fri, 9 Aug 2024 17:41:37 +0300 Subject: [PATCH 2/3] Update project java version --- daraja/build.gradle.kts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/daraja/build.gradle.kts b/daraja/build.gradle.kts index e21b4ef5..31cab01e 100644 --- a/daraja/build.gradle.kts +++ b/daraja/build.gradle.kts @@ -1,5 +1,6 @@ import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import java.util.Locale val dokkaOutputDir = buildDir.resolve("reports/dokka") @@ -39,6 +40,10 @@ kotlin { kotlin.applyDefaultHierarchyTemplate() androidTarget { + compilerOptions { + jvmTarget.set(JvmTarget.JVM_1_8) + } + publishLibraryVariants("release", "debug") } @@ -108,11 +113,11 @@ android { minSdk = 21 compileSdk = 34 } - namespace = "com.vickikbt.darajakmp" + namespace = "com.vickbt.darajamultiplatform" compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") From 8a6189ddd4309de285fded1da07322e325e97ab2 Mon Sep 17 00:00:00 2001 From: Victor Kabata Date: Fri, 9 Aug 2024 17:43:23 +0300 Subject: [PATCH 3/3] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61e82447..ed5f89d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,4 +53,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: unit_tests_report.html - path: daraja/build/reports/tests/testDebugUnitTest/ \ No newline at end of file + path: daraja/build/reports/kover/html/ \ No newline at end of file