build.gradle 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'org.jetbrains.kotlin.android'
  3. apply plugin: 'kotlin-android'
  4. android {
  5. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  6. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  7. defaultConfig {
  8. minSdkVersion 21
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "1.0"
  12. ndk {
  13. abiFilters "armeabi-v7a"
  14. }
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  20. }
  21. debug {
  22. jniDebuggable true
  23. debuggable true
  24. }
  25. yufabu {
  26. jniDebuggable true
  27. debuggable true
  28. }
  29. }
  30. repositories {
  31. flatDir {
  32. dirs 'libs'
  33. }
  34. }
  35. sourceSets {
  36. main {
  37. jniLibs.srcDirs = ['libs']
  38. }
  39. }
  40. }
  41. dependencies {
  42. // 已有改行,不需要再特别引入aar
  43. implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
  44. implementation 'androidx.appcompat:appcompat:1.1.0'
  45. implementation 'com.google.android.material:material:1.1.0'
  46. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  47. testImplementation 'junit:junit:4.+'
  48. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  49. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  50. implementation 'com.jakewharton:butterknife:7.0.1'
  51. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  52. implementation 'com.google.zxing:core:3.3.0'
  53. implementation 'com.github.bumptech.glide:glide:4.9.0'
  54. implementation 'cat.ereza:customactivityoncrash:2.1.0'
  55. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  56. implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
  57. implementation 'com.google.zxing:core:3.3.3'
  58. implementation 'com.caverock:androidsvg:1.4+'
  59. compile "org.jetbrains.kotlin:kotlin-stdlib:1.3.72"
  60. api files('libs/telpo_sdk_20240108_noserial.jar')
  61. // api files('libs/telpo_sdk_210726.jar')
  62. // api files('libs/telpo_sdk_210726_new.jar')
  63. // api files('libs/telpo_sdk_20231208.jar')
  64. // api files('libs/posutil_sdk_20231226.jar')
  65. // y9打印
  66. // implementation(name: 'printlib-debug', ext: 'aar')
  67. // y9打印-a4
  68. // implementation(name: 'sdk_800r09_library-release-1.0.4', ext: 'aar')
  69. // 添加base依赖
  70. implementation project(path: ':lib_base')
  71. implementation project(path: ':lib_arome')
  72. implementation project(path: ':LocalRepo')
  73. }