Skip to content

Commit

Permalink
Add Dokka
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiu-udrea committed Dec 2, 2024
1 parent efed748 commit 46a327f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ plugins {
alias(libs.plugins.kotlinMultiplatform).apply(false)
alias(libs.plugins.kotlinAndroid).apply(false)
alias(libs.plugins.compose.compiler).apply(false)
alias(libs.plugins.dokka).apply(false)
}
6 changes: 4 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ android-minSdk = "24"
android-compileSdk = "34"
coroutines = "1.9.0"
kotest = "6.0.0.M1"
compose = "2024.10.01"
compose = "2024.11.00"
viewmodel = "2.8.7"
junit = "5.11.3"
dokka = "1.9.20"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
Expand All @@ -27,4 +28,5 @@ junit = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
10 changes: 10 additions & 0 deletions mvi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.DokkaConfiguration.Visibility
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.dokka)
id("module.publication")
}

Expand Down Expand Up @@ -49,4 +53,10 @@ android {

tasks.withType<Test>().configureEach {
useJUnitPlatform()
}

tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
documentedVisibilities.set(setOf(Visibility.PUBLIC, Visibility.PROTECTED))
}
}

0 comments on commit 46a327f

Please sign in to comment.