11/*
2- * Copyright 2020 LiteKite Startup. All rights reserved.
2+ * Copyright 2021 LiteKite Startup. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -18,10 +18,11 @@ apply plugin: 'com.android.library'
1818apply plugin : ' kotlin-android'
1919apply plugin : ' kotlin-kapt'
2020apply plugin : ' kotlin-parcelize'
21+ apply plugin : ' org.jetbrains.dokka'
22+ apply plugin : ' com.vanniktech.maven.publish'
2123
2224android {
2325 compileSdkVersion 30
24- buildToolsVersion " 30.0.2"
2526 defaultConfig {
2627 minSdkVersion 21
2728 targetSdkVersion 30
@@ -44,6 +45,7 @@ android {
4445 }
4546 kotlinOptions {
4647 jvmTarget = JavaVersion . VERSION_1_8
48+ freeCompilerArgs + = ' -Xexplicit-api=strict'
4749 }
4850 buildTypes {
4951 release {
@@ -57,12 +59,20 @@ kapt {
5759 correctErrorTypes true
5860}
5961
62+ dokkaHtml. configure {
63+ dokkaSourceSets {
64+ named(" main" ) {
65+ noAndroidSdkLink. set(false )
66+ }
67+ }
68+ }
69+
6070dependencies {
6171 implementation fileTree(dir : " libs" , include : [" *.jar" ])
6272 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
6373 implementation ' androidx.core:core-ktx:1.3.2'
6474 implementation ' androidx.appcompat:appcompat:1.2.0'
65- implementation ' com.google.android.material:material:1.2.1 '
75+ implementation ' com.google.android.material:material:1.3.0 '
6676 testImplementation ' junit:junit:4.13.1'
6777 androidTestImplementation ' androidx.test.ext:junit:1.1.2'
6878 androidTestImplementation ' androidx.test.espresso:espresso-core:3.3.0'
0 commit comments