build.gradle 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. apply plugin: 'com.android.application'
  2. //apply plugin: 'kotlin-android'
  3. //apply plugin: 'kotlin-android-extensions'
  4. android {
  5. signingConfigs {
  6. pda_storage {
  7. keyAlias 'uas_standard_esop_alias'
  8. keyPassword 'pdakeystone'
  9. storeFile file('C:\\sigin\\standard_esop.jks')
  10. storePassword 'pdakeystone'
  11. }
  12. }
  13. ndkVersion '22.1.7171670'
  14. compileSdkVersion rootProject.ext.android.compileSdkVersion
  15. buildToolsVersion rootProject.ext.android.buildToolsVersion
  16. defaultConfig {
  17. multiDexEnabled true
  18. applicationId "com.uas.standard_esop"
  19. minSdkVersion rootProject.ext.android.minSdkVersion
  20. targetSdkVersion rootProject.ext.android.targetSdkVersion
  21. versionCode rootProject.ext.android.versionCodeorg
  22. versionName rootProject.ext.android.versionName
  23. javaCompileOptions {
  24. annotationProcessorOptions {
  25. includeCompileClasspath = true
  26. }
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. }
  32. release {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  35. signingConfig signingConfigs.pda_storage
  36. }
  37. }
  38. packagingOptions {
  39. exclude 'META-INF/LICENSE.txt'
  40. exclude 'META-INF/NOTICE.txt'
  41. }
  42. applicationVariants.all { variant ->
  43. variant.outputs.all { output ->
  44. def outputFile = output.outputFile
  45. def fileName
  46. if (outputFile != null && outputFile.name.endsWith('.apk')) {
  47. if (variant.buildType.name.equals('release')) {
  48. def releaseInfo = getVersionName()
  49. fileName = "ESOP_release_${releaseInfo}.apk"
  50. } else if (variant.buildType.name.equals('debug')) {
  51. def debugInfo = getVersionName()
  52. fileName = "UAS_esop_STORAGE_DEBUG_${debugInfo}.apk"
  53. }
  54. outputFileName = fileName
  55. }
  56. }
  57. }
  58. // compileOptions {
  59. // targetCompatibility 1.8
  60. // sourceCompatibility 1.8
  61. // }
  62. compileOptions {
  63. sourceCompatibility JavaVersion.VERSION_1_8
  64. targetCompatibility JavaVersion.VERSION_1_8
  65. }
  66. }
  67. dependencies {
  68. implementation fileTree(include: ['*.jar'], dir: 'libs')
  69. implementation 'androidx.appcompat:appcompat:1.1.0'
  70. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  71. implementation 'com.android.support.constraint:constraint-layout:2.0.1'
  72. implementation 'com.android.support:appcompat-v7:28.0.0'
  73. testImplementation 'junit:junit:4.12'
  74. api files('libs/volley.jar')
  75. api files('libs/gson-2.2.4.jar')
  76. api project(':pulltoreflashlibrary')
  77. api project(':progresslitelibrary')
  78. api project(':lib-zxing')
  79. api deps.appcompatV7
  80. api deps.stetho
  81. api deps.fastjson
  82. api deps.xUtils
  83. api deps.okhttp
  84. api deps.BaseRecyclerViewAdapterHelper
  85. api deps.smartRefreshLayout
  86. api deps.smartRefreshHeader
  87. api deps.smartTable
  88. api deps.basePopup
  89. api deps.permisson
  90. api deps.recyclerview
  91. api project(':bluetooth')
  92. implementation deps.switchView
  93. implementation 'org.jetbrains:annotations:15.0'
  94. implementation(deps.MultiTypeFilePicker) {
  95. exclude group: "com.android.support"
  96. }
  97. implementation 'com.umeng.umsdk:common:9.4.0'// 必选
  98. implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
  99. implementation 'com.umeng.umsdk:apm:1.4.0' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  100. implementation 'org.greenrobot:eventbus:3.2.0'
  101. //XBanner
  102. implementation 'com.xhb:xbanner:1.3.1'
  103. implementation "io.reactivex.rxjava3:rxjava:3.1.2"
  104. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  105. implementation "org.java-websocket:Java-WebSocket:1.4.0"
  106. implementation 'org.codelibs:jcifs:2.1.31'
  107. // implementation 'com.google.android.exoplayer:exoplayer-core:2.15.1'
  108. implementation 'cn.jzvd:jiaozivideoplayer:7.4.2'
  109. implementation 'com.github.chrisbanes:PhotoView:2.0.0'
  110. // implementation 'com.lxj:xpopup:2.1.7'
  111. // implementation 'com.lxj:easyadapter:1.0.0'
  112. // implementation 'com.github.bumptech.glide:glide:4.10.0'
  113. implementation 'com.github.bumptech.glide:glide:4.12.0'
  114. annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
  115. }
  116. def getVersionName() {
  117. return rootProject.ext.android.versionName
  118. }