Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 5a07a3c

Browse files
committed
add Dokka docs
1 parent e083d1e commit 5a07a3c

File tree

7 files changed

+40
-2
lines changed

7 files changed

+40
-2
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath deps.androidGradlePlugin
10+
classpath deps.dokka
1011
classpath deps.kotlin.gradlePlugin
1112
}
1213
}

gradle/dependencies.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ext.deps = [
2929
liveDataCore: "androidx.arch.core:core-testing:2.1.0",
3030
],
3131
],
32+
dokka: "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1",
3233
gradleVersions: "com.github.ben-manes:gradle-versions-plugin:0.20.0",
3334
jtorctl: "info.guardianproject:jtorctl:0.4",
3435
junit: "junit:junit:4.12",

topl-core-base/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'org.jetbrains.dokka'
45

56
android {
67
compileSdkVersion versions.compileSdk
@@ -34,6 +35,17 @@ android {
3435
}
3536
}
3637

38+
dokka {
39+
configuration {
40+
reportUndocumented = false
41+
includeNonPublic = false
42+
skipEmptyPackages = true
43+
samples = [
44+
"$rootDir/sampleapp/samplecode/SampleCode.kt".toString()
45+
]
46+
}
47+
}
48+
3749
dependencies {
3850
implementation fileTree(dir: "libs", include: ["*.jar"])
3951
implementation deps.kotlin.stdlib

topl-core-base/src/main/java/io/matthewnelson/topl_core_base/TorConfigFiles.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ class TorConfigFiles private constructor(
181181
*
182182
* @param [installDir] directory where the tor binaries are installed.
183183
* @param [configDir] directory where the filesystem will be setup for tor.
184+
* @sample [io.matthewnelson.sampleapp.samplecode.SampleCode.customTorConfigFilesSetup]
184185
*/
185186
class Builder(private val installDir: File, private val configDir: File) {
186187

topl-core-base/src/main/java/io/matthewnelson/topl_core_base/TorSettings.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ package io.matthewnelson.topl_core_base
5757
*
5858
* Would **highly recommend** reading up on what's what:
5959
* - See <a href="https://2019.www.torproject.org/docs/tor-manual.html.en" target="_blank">docs</a>
60-
*
61-
* @sample [io.matthewnelson.sampleapp.MyTorSettings]
6260
* */
6361
abstract class TorSettings: BaseConsts() {
6462

topl-core/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'org.jetbrains.dokka'
45

56
android {
67
compileSdkVersion versions.compileSdk
@@ -34,6 +35,18 @@ android {
3435
}
3536
}
3637

38+
dokka {
39+
configuration {
40+
reportUndocumented = false
41+
includeNonPublic = false
42+
skipEmptyPackages = true
43+
samples = [
44+
"$rootDir/topl-service/service/TorService.kt".toString(),
45+
"$rootDir/topl-service/service/onionproxy/ServiceTorInstaller.kt".toString()
46+
]
47+
}
48+
}
49+
3750
dependencies {
3851
implementation fileTree(dir: "libs", include: ["*.jar"])
3952
implementation project(':topl-core-base')

topl-service/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'org.jetbrains.dokka'
45

56
android {
67
compileSdkVersion versions.compileSdk
@@ -34,6 +35,17 @@ android {
3435
}
3536
}
3637

38+
dokka {
39+
configuration {
40+
reportUndocumented = false
41+
includeNonPublic = false
42+
skipEmptyPackages = true
43+
samples = [
44+
"$rootDir/sampleapp/samplecode/SampleCode.kt".toString()
45+
]
46+
}
47+
}
48+
3749
dependencies {
3850
implementation fileTree(dir: "libs", include: ["*.jar"])
3951
implementation project(':topl-core')

0 commit comments

Comments
 (0)