build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdk 31
  8. defaultConfig {
  9. minSdk 21
  10. targetSdk 27
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. kapt {
  14. arguments {
  15. arg("AROUTER_MODULE_NAME", project.getName())
  16. arg("room.schemaLocation", "$projectDir/schemas".toString())
  17. }
  18. }
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  24. buildConfigField("String", "HTTP_BASE", '"https://www.baidu.com/api/release/"')
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. kotlinOptions {
  32. jvmTarget = '1.8'
  33. }
  34. viewBinding {
  35. enabled = true
  36. }
  37. }
  38. dependencies {
  39. api 'androidx.core:core-ktx:1.6.0'
  40. api 'androidx.appcompat:appcompat:1.3.0'
  41. api 'com.google.android.material:material:1.4.0'
  42. api project(path: ':libThirdParty')
  43. kapt 'androidx.room:room-compiler:2.4.3'
  44. }