build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. android {
  21. compileSdkVersion 30
  22. defaultConfig {
  23. minSdkVersion 19
  24. targetSdkVersion 30
  25. versionCode 1
  26. versionName "1.0"
  27. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  28. consumerProguardFiles "consumer-rules.pro"
  29. }
  30. kotlinOptions {
  31. freeCompilerArgs = ["-Xinline-classes", "-Xallow-result-return-type"]
  32. }
  33. dokkaHtml {
  34. outputDirectory.set(file("$rootDir/docs/api"))
  35. suppressInheritedMembers.set(true)
  36. moduleName.set("Net")
  37. }
  38. }
  39. dependencies {
  40. api fileTree(dir: "libs", include: ["*.jar"])
  41. implementation 'androidx.appcompat:appcompat:1.3.1'
  42. testImplementation "junit:junit:4.13.2"
  43. androidTestImplementation "androidx.test:runner:1.3.0"
  44. androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
  45. compileOnly "com.squareup.okhttp3:okhttp:$okhttp_version"
  46. compileOnly "com.github.liangjingkanji:BRV:$brv_version"
  47. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  48. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  49. }