build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. compileSdkVersion 33
  8. defaultConfig {
  9. minSdkVersion 21
  10. targetSdkVersion 33
  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. //声网采集
  49. implementation(name:'video-capture', ext:'aar')
  50. //filedownload
  51. api 'com.liulishuo.okdownload:okdownload:1.0.7'
  52. }