1
0

build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apply plugin: "com.android.library"
  2. apply plugin: "kotlin-android"
  3. apply plugin: 'org.jetbrains.dokka'
  4. android {
  5. compileSdkVersion 30
  6. defaultConfig {
  7. minSdkVersion 19
  8. targetSdkVersion 30
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. }
  14. kotlinOptions {
  15. freeCompilerArgs = ["-Xinline-classes", "-Xallow-result-return-type"]
  16. }
  17. dokkaHtml {
  18. outputDirectory.set(file("$rootDir/docs/api"))
  19. suppressInheritedMembers.set(true)
  20. moduleName.set("Net")
  21. }
  22. }
  23. dependencies {
  24. implementation 'androidx.appcompat:appcompat:1.3.1'
  25. implementation 'androidx.startup:startup-runtime:1.0.0'
  26. implementation 'androidx.documentfile:documentfile:1.0.1'
  27. implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"
  28. compileOnly "com.squareup.okhttp3:okhttp:$okhttp_version"
  29. compileOnly "com.github.liangjingkanji:BRV:$brv_version"
  30. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
  31. compileOnly "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
  32. }