build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.github.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. kotlinOptions {
  33. freeCompilerArgs = ["-Xinline-classes", "-Xallow-result-return-type"]
  34. }
  35. dokkaHtml {
  36. outputDirectory.set(file("$rootDir/docs/api"))
  37. suppressInheritedMembers.set(true)
  38. moduleName.set("Net")
  39. }
  40. }
  41. dependencies {
  42. api fileTree(dir: "libs", include: ["*.jar"])
  43. implementation 'androidx.appcompat:appcompat:1.3.1'
  44. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  45. testImplementation "junit:junit:4.13.2"
  46. androidTestImplementation "androidx.test:runner:1.3.0"
  47. androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
  48. compileOnly "com.squareup.okhttp3:okhttp:$okhttp_version"
  49. compileOnly "com.github.liangjingkanji:BRV:$brv_version"
  50. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  51. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  52. }