build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. aaptOptions.cruncherEnabled = false
  35. aaptOptions.useNewCruncher = false
  36. viewBinding {
  37. enabled = true
  38. }
  39. }
  40. dependencies {
  41. api project(path: ':libThirdParty')
  42. kapt 'androidx.room:room-compiler:2.4.3'
  43. }