build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. id 'org.greenrobot.greendao'
  6. }
  7. android {
  8. compileSdkVersion 34
  9. defaultConfig {
  10. minSdkVersion 21
  11. targetSdkVersion 34
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles "consumer-rules.pro"
  16. kapt {
  17. arguments {
  18. arg("AROUTER_MODULE_NAME", project.getName())
  19. }
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = '1.8'
  34. }
  35. buildFeatures{
  36. viewBinding = true
  37. }
  38. }
  39. greendao {
  40. schemaVersion 1
  41. targetGenDir 'src/main/java'
  42. daoPackage 'com.swago.room.database'
  43. }
  44. dependencies {
  45. implementation 'androidx.core:core-ktx:1.5.0'
  46. implementation 'androidx.appcompat:appcompat:1.2.0'
  47. implementation 'com.google.android.material:material:1.3.0'
  48. testImplementation 'junit:junit:4.+'
  49. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  50. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  51. implementation project(':tuikit')
  52. implementation project(path: ':baseswago')
  53. kapt "com.alibaba:arouter-compiler:1.2.2"
  54. //声网采集
  55. implementation(name:'video-capture', ext:'aar')
  56. //filedownload
  57. api 'com.liulishuo.okdownload:okdownload:1.0.7'
  58. }