build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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-android-extensions"
  19. apply plugin: "kotlin-kapt"
  20. apply plugin: 'org.jetbrains.dokka'
  21. apply plugin: "com.github.dcendents.android-maven"
  22. group = "com.gitlab.liangjingkanji"
  23. android {
  24. compileSdkVersion 29
  25. buildToolsVersion "29.0.2"
  26. defaultConfig {
  27. minSdkVersion 19
  28. targetSdkVersion 29
  29. versionCode 1
  30. versionName "1.0"
  31. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  32. consumerProguardFiles "consumer-rules.pro"
  33. }
  34. buildTypes {
  35. release {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
  38. }
  39. }
  40. dokka {
  41. outputFormat = 'gfm'
  42. outputDirectory = "$rootDir/docs/api"
  43. }
  44. }
  45. dependencies {
  46. api fileTree(dir: "libs", include: ["*.jar"])
  47. implementation "androidx.appcompat:appcompat:1.2.0"
  48. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  49. testImplementation "junit:junit:4.13"
  50. androidTestImplementation "androidx.test:runner:1.3.0"
  51. androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
  52. implementation "com.github.liangjingkanji:Tooltip:1.0.4"
  53. api project(path: ':kalle')
  54. api 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0'
  55. compileOnly "com.github.liangjingkanji:BRV:$brv_version"
  56. compileOnly "com.github.bumptech.glide:glide:$glide_version"
  57. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  58. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  59. }