Skip to content

Commit 747573f

Browse files
committed
Add tests for AGP 9, and update other AGP tests
- Add tests for AGP 9. - `it-android-kotlin-jvm-builtin` - AGP & kotlin-built-in (no KGP plugin). - `it-android-kotlin-mp-builtin` - AGP & kotlin-multiplatform. - Fix AGP <9 tests & update test data.
1 parent 02b4c49 commit 747573f

File tree

151 files changed

+17669
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+17669
-40
lines changed

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ idea {
126126
"dokka-integration-tests/gradle/projects/it-multiplatform-android-jvm/expectedData",
127127
"dokka-integration-tests/gradle/projects/it-android-compose/expectedData",
128128
"dokka-integration-tests/gradle/projects/it-kotlin-multiplatform/expectedData",
129+
"dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData",
130+
"dokka-integration-tests/gradle/projects/it-android-kotlin-mp-builtin/expectedData",
129131

130132
"examples/gradle/dokka-versioning-multimodule-example/previousDocVersions/",
131133
"examples/gradle-v2/versioning-multimodule-example/docs/previousDocVersions/",

dokka-integration-tests/gradle/projects/it-android-0/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ plugins {
1111
android {
1212
defaultConfig {
1313
minSdkVersion(21)
14-
setCompileSdkVersion(29)
14+
setCompileSdkVersion(30)
15+
}
16+
compileOptions {
17+
sourceCompatibility = JavaVersion.VERSION_17
18+
targetCompatibility = JavaVersion.VERSION_17
1519
}
1620
}
1721

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright 2014-2025 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
plugins {
6+
id("com.android.library") version "/* %{AGP_VERSION} */"
7+
id("org.jetbrains.dokka") version "/* %{DGP_VERSION} */"
8+
}
9+
10+
android {
11+
namespace = "org.jetbrains.dokka.it.android"
12+
compileSdk = 33
13+
defaultConfig {
14+
minSdk = 21
15+
}
16+
}
17+
18+
dependencies {
19+
implementation("androidx.appcompat:appcompat:1.1.0")
20+
}
21+
22+
// WORKAROUND https://github.com/Kotlin/dokka/issues/3701
23+
afterEvaluate {
24+
dokka.dokkaSourceSets
25+
.matching { it.name == "debug" }
26+
.configureEach {
27+
sourceRoots.setFrom(emptyList<String>())
28+
}
29+
}

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/abstract-class-kotlin.svg

Lines changed: 26 additions & 0 deletions
Loading

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/abstract-class.svg

Lines changed: 22 additions & 0 deletions
Loading

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/anchor-copy-icon.svg

Lines changed: 6 additions & 0 deletions
Loading

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/annotation-kotlin.svg

Lines changed: 13 additions & 0 deletions
Loading

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/annotation.svg

Lines changed: 9 additions & 0 deletions
Loading

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/arrow-down.svg

Lines changed: 3 additions & 0 deletions
Loading

dokka-integration-tests/gradle/projects/it-android-kotlin-jvm-builtin/expectedData/html/images/burger.svg

Lines changed: 5 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)