build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_rd_equipment_alias'
  8. keyPassword 'pdakeystone'
  9. storeFile file('D:\\SignatureFile\\uas_rd_equipment.jks')
  10. storePassword 'pdakeystone'
  11. }
  12. }
  13. compileSdkVersion rootProject.ext.android.compileSdkVersion
  14. buildToolsVersion rootProject.ext.android.buildToolsVersion
  15. defaultConfig {
  16. multiDexEnabled true
  17. applicationId "com.uas.rd_equipment"
  18. minSdkVersion rootProject.ext.android.minSdkVersion
  19. targetSdkVersion rootProject.ext.android.targetSdkVersion
  20. versionCode rootProject.ext.android.versionCode
  21. versionName rootProject.ext.android.versionName
  22. javaCompileOptions {
  23. annotationProcessorOptions {
  24. includeCompileClasspath = true
  25. }
  26. }
  27. }
  28. buildTypes {
  29. release {
  30. minifyEnabled false
  31. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  32. }
  33. }
  34. packagingOptions {
  35. exclude 'META-INF/LICENSE.txt'
  36. exclude 'META-INF/NOTICE.txt'
  37. }
  38. applicationVariants.all { variant ->
  39. variant.outputs.all { output ->
  40. def outputFile = output.outputFile
  41. def fileName
  42. if (outputFile != null && outputFile.name.endsWith('.apk')) {
  43. if (variant.buildType.name.equals('release')) {
  44. def releaseInfo = getVersionName()
  45. fileName = "UAS_RD_EQUIPMENT_STORAGE_RELEASE_${releaseInfo}.apk"
  46. } else if (variant.buildType.name.equals('debug')) {
  47. def debugInfo = getVersionName()
  48. fileName = "UAS_RD_EQUIPMENT_STORAGE_DEBUG_${debugInfo}.apk"
  49. }
  50. outputFileName = fileName
  51. }
  52. }
  53. }
  54. compileOptions {
  55. targetCompatibility 1.8
  56. sourceCompatibility 1.8
  57. }
  58. }
  59. android {
  60. ndkVersion "22.1.7171670"
  61. }
  62. dependencies {
  63. implementation fileTree(include: ['*.jar'], dir: 'libs')
  64. implementation 'com.android.support.constraint:constraint-layout:2.0.1'
  65. implementation 'com.android.support:appcompat-v7:28.0.0'
  66. implementation 'android.arch.work:work-runtime:1.0.1'
  67. implementation 'com.android.support:coordinatorlayout:28.0.0'
  68. testImplementation 'junit:junit:4.12'
  69. api files('libs/volley.jar')
  70. api files('libs/gson-2.2.4.jar')
  71. api project(':pulltoreflashlibrary')
  72. api project(':progresslitelibrary')
  73. api project(':lib-zxing')
  74. api deps.appcompatV7
  75. api deps.stetho
  76. api deps.fastjson
  77. api deps.xUtils
  78. api deps.okhttp
  79. api deps.BaseRecyclerViewAdapterHelper
  80. api deps.smartRefreshLayout
  81. api deps.smartRefreshHeader
  82. api deps.smartTable
  83. api deps.basePopup
  84. api deps.permisson
  85. api deps.recyclerview
  86. api project(':bluetooth')
  87. implementation deps.switchView
  88. implementation 'org.jetbrains:annotations:15.0'
  89. implementation(deps.MultiTypeFilePicker) {
  90. exclude group: "com.android.support"
  91. }
  92. implementation 'com.umeng.umsdk:common:9.4.0'// 必选
  93. implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
  94. implementation 'com.umeng.umsdk:apm:1.4.0' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  95. implementation 'org.greenrobot:eventbus:3.2.0'
  96. //XBanner
  97. implementation 'com.xhb:xbanner:1.3.1'
  98. implementation "io.reactivex.rxjava3:rxjava:3.1.2"
  99. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  100. implementation "org.java-websocket:Java-WebSocket:1.4.0"
  101. implementation 'org.greenrobot:eventbus:3.1.1'
  102. //noinspection GradleDependency
  103. implementation 'com.android.support:design:28.0.0'
  104. }
  105. def getVersionName() {
  106. return rootProject.ext.android.versionName
  107. }