1
0

build.gradle 1.7 KB

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