build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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_collection_alias'
  8. keyPassword 'pdakeystone'
  9. storeFile file('D:\\SignatureFile\\pdakeystone.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.collection"
  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_EQUIPMENT_STORAGE_RELEASE_${releaseInfo}.apk"
  46. } else if (variant.buildType.name.equals('debug')) {
  47. def debugInfo = getVersionName()
  48. fileName = "UAS_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. testImplementation 'junit:junit:4.12'
  67. api files('libs/volley.jar')
  68. api files('libs/gson-2.2.4.jar')
  69. api project(':pulltoreflashlibrary')
  70. api project(':progresslitelibrary')
  71. api project(':lib-zxing')
  72. api deps.appcompatV7
  73. api deps.stetho
  74. api deps.fastjson
  75. api deps.xUtils
  76. api deps.okhttp
  77. api deps.BaseRecyclerViewAdapterHelper
  78. api deps.smartRefreshLayout
  79. api deps.smartRefreshHeader
  80. api deps.smartTable
  81. api deps.basePopup
  82. api deps.permisson
  83. api deps.recyclerview
  84. api project(':bluetooth')
  85. implementation deps.switchView
  86. implementation 'org.jetbrains:annotations:15.0'
  87. implementation(deps.MultiTypeFilePicker) {
  88. exclude group: "com.android.support"
  89. }
  90. implementation 'com.umeng.umsdk:common:9.4.0'// 必选
  91. implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
  92. implementation 'com.umeng.umsdk:apm:1.4.0' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  93. implementation 'org.greenrobot:eventbus:3.2.0'
  94. //XBanner
  95. implementation 'com.xhb:xbanner:1.3.1'
  96. implementation "io.reactivex.rxjava3:rxjava:3.1.2"
  97. implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
  98. implementation "org.java-websocket:Java-WebSocket:1.4.0"
  99. implementation 'org.greenrobot:eventbus:3.1.1'
  100. implementation 'com.android.support:design:28.0.0'
  101. }
  102. def getVersionName() {
  103. return rootProject.ext.android.versionName
  104. }