Added dokka for generating documentation.
This commit is contained in:
parent
6b68edb273
commit
be3322a34e
|
@ -1,6 +1,7 @@
|
|||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: "org.jetbrains.dokka"
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
|
@ -40,4 +41,13 @@ dependencies {
|
|||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
|
||||
dokkaHtml.configure {
|
||||
dokkaSourceSets {
|
||||
named("main") {
|
||||
noAndroidSdkLink.set(false)
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@ import oupson.apng.BuildConfig
|
|||
import oupson.apng.Loader
|
||||
import oupson.apng.chunks.IHDR
|
||||
import oupson.apng.chunks.fcTL
|
||||
import oupson.apng.decoder.ApngDecoder.Companion.decodeApng
|
||||
import oupson.apng.exceptions.BadApng
|
||||
import oupson.apng.exceptions.BadCRC
|
||||
import oupson.apng.utils.Utils
|
||||
|
@ -28,6 +29,10 @@ import java.net.URL
|
|||
import java.nio.ByteBuffer
|
||||
import java.util.zip.CRC32
|
||||
|
||||
/**
|
||||
* An APNG Decoder.
|
||||
* Call [decodeApng]
|
||||
*/
|
||||
class ApngDecoder {
|
||||
interface Callback {
|
||||
/**
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
buildscript {
|
||||
ext.kotlin_version = '1.4.10'
|
||||
ext.anko_version = '0.10.8'
|
||||
ext.dokka_version = '1.4.0'
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
|
@ -12,6 +13,7 @@ buildscript {
|
|||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue