build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-kapt'
  5. // id 'kotlin-parcelize'
  6. id 'kotlin-android-extensions'
  7. id 'kotlin-android'
  8. }
  9. android {
  10. compileSdk 31
  11. defaultConfig {
  12. minSdk 21
  13. targetSdk 31
  14. versionCode 1
  15. versionName "1.0"
  16. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. kotlinOptions {
  29. jvmTarget = '1.8'
  30. }
  31. }
  32. //kapt {
  33. // arguments {
  34. // arg("AROUTER_MODULE_NAME", project.getName())
  35. // }
  36. //}
  37. dependencies {
  38. testImplementation 'junit:junit:4.13.2'
  39. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  40. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  41. implementation project(':BaseLibrary')
  42. }