build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id 'com.android.library'
  3. id 'com.kezong.fat-aar'
  4. }
  5. android {
  6. namespace 'com.taiyi.zhimai'
  7. compileSdk 31
  8. defaultConfig {
  9. minSdk 21
  10. targetSdk 31
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles "consumer-rules.pro"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. }
  25. dependencies {
  26. implementation 'androidx.appcompat:appcompat:1.4.1'
  27. implementation 'com.google.android.material:material:1.5.0'
  28. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  29. embed project(path: ':TYUsbSDK')
  30. api project(path: ':TYUsbSDK')
  31. // implementation project(path: ':TYUsbSDK')
  32. embed 'com.github.felHR85:UsbSerial:6.1.0'
  33. testImplementation 'junit:junit:4.13.2'
  34. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  35. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  36. // api 'com.opencsv:opencsv:5.6'
  37. // api 'org.greenrobot:eventbus:3.1.1'
  38. // api 'com.aliyun.dpa:oss-android-sdk:2.9.5'
  39. // api 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
  40. // api 'io.reactivex.rxjava2:rxjava:2.1.7'
  41. // api 'io.reactivex.rxjava2:rxandroid:2.0.1'
  42. // api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.41'
  43. }
  44. apply from: "../publish.gradle"