build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. javaCompileOptions {
  24. annotationProcessorOptions {
  25. arguments = [AROUTER_MODULE_NAME: project.getName()]
  26. }
  27. }
  28. }
  29. buildTypes {
  30. release {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. debug{
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. preRelease{
  39. minifyEnabled false
  40. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. buildFeatures {
  48. viewBinding = true
  49. }
  50. }
  51. dependencies {
  52. implementation 'androidx.appcompat:appcompat:1.3.0'
  53. implementation 'com.google.android.material:material:1.4.0'
  54. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  55. testImplementation 'junit:junit:4.13.2'
  56. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  57. implementation project(':BaseLibrary')
  58. implementation project(':live_teaching')
  59. //ARouter
  60. annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")
  61. implementation 'com.alibaba:arouter-api:1.5.2'
  62. kapt 'com.alibaba:arouter-compiler:1.5.2'
  63. }