build.gradle 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. // id 'kotlin-parcelize'
  5. id 'kotlin-android'
  6. // id 'kotlin-android-extensions'
  7. }
  8. apply plugin: 'kotlin-kapt'
  9. apply plugin: 'kotlin-android-extensions'
  10. kapt {
  11. arguments {
  12. arg("AROUTER_MODULE_NAME", project.getName())
  13. }
  14. }
  15. android {
  16. compileSdkVersion 32
  17. defaultConfig {
  18. minSdkVersion 21
  19. targetSdkVersion 32
  20. versionCode 1
  21. versionName "1.0"
  22. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  23. }
  24. buildTypes {
  25. release {
  26. minifyEnabled false
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. debug{
  30. minifyEnabled false
  31. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  32. }
  33. preRelease{
  34. debuggable true
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. compileOptions {
  40. sourceCompatibility JavaVersion.VERSION_1_8
  41. targetCompatibility JavaVersion.VERSION_1_8
  42. }
  43. sourceSets {
  44. main {
  45. jniLibs.srcDirs = ['libs']
  46. }
  47. }
  48. buildFeatures {
  49. viewBinding = true
  50. }
  51. }
  52. dependencies {
  53. implementation fileTree(dir: 'libs', include: ['*.jar'])
  54. implementation 'androidx.appcompat:appcompat:1.3.0'
  55. implementation 'com.google.android.material:material:1.4.0'
  56. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  57. testImplementation 'junit:junit:4.13.2'
  58. implementation project(':BaseLibrary')
  59. implementation project(':metronome')
  60. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  61. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  62. implementation 'com.alibaba:arouter-api:1.5.2'
  63. kapt 'com.alibaba:arouter-compiler:1.5.2'
  64. }