Skip to content

Commit

Permalink
Merge pull request #111 from VictorKabata/QoL
Browse files Browse the repository at this point in the history
Update project java version
  • Loading branch information
VictorKabata authored Aug 9, 2024
2 parents 9398511 + 8fa383b commit 2c9893f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ 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
with:
name: unit_tests_report.html
path: daraja/build/reports/tests/testDebugUnitTest/
path: daraja/build/reports/kover/html/
11 changes: 8 additions & 3 deletions daraja/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -39,6 +40,10 @@ kotlin {
kotlin.applyDefaultHierarchyTemplate()

androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}

publishLibraryVariants("release", "debug")
}

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 2c9893f

Please sign in to comment.