build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-kapt'
  4. android {
  5. compileSdkVersion cfgs.compileSdkVersion
  6. defaultConfig {
  7. minSdkVersion cfgs.minSdkVersion
  8. targetSdkVersion cfgs.targetSdkVersion
  9. versionCode cfgs.versionCode
  10. versionName cfgs.versionName
  11. javaCompileOptions {
  12. annotationProcessorOptions {
  13. arguments = [AROUTER_MODULE_NAME: project.getName()]
  14. }
  15. }
  16. ndk {
  17. // 设置支持的SO库架构
  18. abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
  19. }
  20. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  21. multiDexEnabled true
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. repositories {
  30. google()
  31. flatDir {
  32. dirs '../BSOCR/libs'
  33. }
  34. jcenter()
  35. maven {
  36. url "https://maven.google.com"
  37. }
  38. }
  39. aaptOptions {
  40. noCompress "tflite"
  41. noCompress "lite"
  42. }
  43. kapt {
  44. arguments {
  45. arg("AROUTER_MODULE_NAME", project.getName())
  46. }
  47. }
  48. packagingOptions {
  49. exclude 'okhttp3/internal/publicsuffix/publicsuffixes.gz'
  50. }
  51. lintOptions{ abortOnError false }
  52. dataBinding {
  53. enabled = true
  54. }
  55. }
  56. dependencies {
  57. api fileTree(include: ['*.jar'], dir: 'libs')
  58. api "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
  59. api "androidx.constraintlayout:constraintlayout:${cfgs.constraintlayout_version}"
  60. // testApi 'junit:junit:4.12'
  61. implementation "androidx.appcompat:appcompat:${cfgs.appcompat_version}"
  62. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  63. androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
  64. exclude group: 'com.android.support', module: 'support-annotations'
  65. })
  66. implementation 'com.lidong.pdf:android_pdf:1.0.1'
  67. //implementation ("io.github.lucksiege:pictureselector:${cfgs.pictureselector}"){exclude module: 'com.squareup.okio'}
  68. // implementation 'com.aliyun.dpa:oss-android-sdk:2.9.5'
  69. implementation 'com.github.li-xiaojun:XPopup:2.3.8'
  70. api(name: 'worksheetrecognizer0419', ext: 'aar'){exclude module: 'com.squareup.okio'}
  71. //阿里路由
  72. api "com.alibaba:arouter-api:${cfgs.arouter_version}"
  73. kapt "com.alibaba:arouter-compiler:${cfgs.arouter_version}"
  74. api project(':BSBase')
  75. // api project(':BSZxing')
  76. // implementation project(':BSSpeech')
  77. implementation project(':BSExcel')
  78. implementation project(':BSOCR')
  79. api project(':BSBaiduSpeak')
  80. implementation files('libs/zicoxPrinter_1_17.jar')
  81. }
  82. repositories {
  83. google()
  84. }