1
0

build.gradle 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright (C) 2018 Drake, Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. apply plugin: "com.android.library"
  17. apply plugin: "kotlin-android"
  18. apply plugin: "kotlin-kapt"
  19. apply plugin: 'org.jetbrains.dokka'
  20. apply plugin: "com.github.dcendents.android-maven"
  21. group = "com.gitlab.liangjingkanji"
  22. android {
  23. compileSdkVersion 30
  24. defaultConfig {
  25. minSdkVersion 19
  26. targetSdkVersion 30
  27. versionCode 1
  28. versionName "1.0"
  29. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  30. consumerProguardFiles "consumer-rules.pro"
  31. }
  32. buildTypes {
  33. release {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
  36. }
  37. }
  38. dokka {
  39. outputFormat = 'gfm'
  40. outputDirectory = "$rootDir/docs/api"
  41. }
  42. }
  43. dependencies {
  44. api fileTree(dir: "libs", include: ["*.jar"])
  45. implementation "androidx.appcompat:appcompat:1.2.0"
  46. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  47. testImplementation "junit:junit:4.13.1"
  48. androidTestImplementation "androidx.test:runner:1.3.0"
  49. androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
  50. implementation "com.github.liangjingkanji:Tooltip:1.1.0"
  51. api project(path: ':kalle')
  52. compileOnly "com.github.liangjingkanji:BRV:$brv_version"
  53. compileOnly "com.github.bumptech.glide:glide:$glide_version"
  54. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  55. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  56. }