Skip to content
Permalink
Browse files

Upgrade to Dokka 0.10.0

  • Loading branch information...
ianhanniballake committed Oct 9, 2019
1 parent 1673a8f commit 61a130843db66cc12f53351a31fe0f786d7356f2
Showing with 27 additions and 22 deletions.
  1. +2 −2 build.gradle
  2. +25 −20 muzei-api/build.gradle
@@ -27,7 +27,7 @@ buildscript {
coreVersion = '1.2.0-alpha04'
coroutinesVersion = '1.3.0'
crashlyticsVersion = '2.10.1'
dokkaVersion = '0.9.18'
dokkaVersion = '0.10.0'
drawerLayoutVersion = '1.1.0-alpha03'
exifInterfaceVersion = '1.1.0-beta01'
firebaseAnalyticsVersion = '17.2.0'
@@ -62,7 +62,7 @@ buildscript {
classpath "com.google.gms:google-services:4.3.2"
classpath "io.fabric.tools:gradle:1.31.0"
classpath "com.google.firebase:perf-plugin:1.3.1"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokkaVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
}
@@ -16,7 +16,7 @@

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka-android'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'maven'
apply plugin: 'signing'

@@ -65,15 +65,18 @@ dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/dokka"

externalDocumentationLink {
url = new URL("https://developer.android.com/reference/")
packageListUrl = new URL("https://developer.android.com/reference/android/support/package-list")
}
configuration {
externalDocumentationLink {
url = new URL("https://developer.android.com/reference/")
packageListUrl = new URL("https://developer.android.com/reference/android/support/package-list")
}

packageOptions {
prefix = "com.google.android.apps.muzei.api.internal"
suppress = true
perPackageOption {
prefix = "com.google.android.apps.muzei.api.internal"
suppress = true
}
}

/* TODO Re-enable prettifying the generated documentation
doLast {
copy {
@@ -94,22 +97,24 @@ dokka {
*/
}

task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaAndroidTask) {
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"

externalDocumentationLink {
url = new URL("https://developer.android.com/reference/")
packageListUrl = new URL("https://developer.android.com/reference/android/support/package-list")
}
configuration {
externalDocumentationLink {
url = new URL("https://developer.android.com/reference/")
packageListUrl = new URL("https://developer.android.com/reference/android/support/package-list")
}

packageOptions {
prefix = "com.google.android.apps.muzei.api.internal"
suppress = true
}
packageOptions {
prefix = "com.google.android.apps.muzei.api.BuildConfig"
suppress = true
perPackageOption {
prefix = "com.google.android.apps.muzei.api.internal"
suppress = true
}
perPackageOption {
prefix = "com.google.android.apps.muzei.api.BuildConfig"
suppress = true
}
}
}

0 comments on commit 61a1308

Please sign in to comment.
You can’t perform that action at this time.