build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdkVersion 34
  8. defaultConfig {
  9. minSdkVersion 21
  10. targetSdkVersion 34
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. consumerProguardFiles "consumer-rules.pro"
  15. kapt {
  16. arguments {
  17. arg("AROUTER_MODULE_NAME", project.getName())
  18. }
  19. }
  20. }
  21. buildTypes {
  22. release {
  23. minifyEnabled false
  24. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  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. buildFeatures{
  35. viewBinding = true
  36. }
  37. }
  38. dependencies {
  39. implementation 'androidx.core:core-ktx:1.5.0'
  40. implementation 'androidx.appcompat:appcompat:1.2.0'
  41. implementation 'com.google.android.material:material:1.3.0'
  42. testImplementation 'junit:junit:4.+'
  43. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  44. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  45. implementation project(':tuikit')
  46. implementation project(path: ':baseswago')
  47. kapt "com.alibaba:arouter-compiler:1.2.2"
  48. }