build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. compileOnly "com.squareup.okhttp3:okhttp:$okhttp_version"
  41. compileOnly "com.github.liangjingkanji:BRV:$brv_version"
  42. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  43. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  44. }