build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 'ruiziuasmes_alias'
  8. keyPassword 'pdakeystone'
  9. storeFile file('C:\\sigin\\ruiziuasmes.jks')
  10. storePassword 'pdakeystone'
  11. }
  12. }
  13. compileSdkVersion rootProject.ext.android.compileSdkVersion
  14. buildToolsVersion rootProject.ext.android.buildToolsVersion
  15. defaultConfig {
  16. applicationId "com.uas.ruiziuasmes"
  17. minSdkVersion rootProject.ext.android.minSdkVersion
  18. targetSdkVersion rootProject.ext.android.targetSdkVersion
  19. versionCode rootProject.ext.android.versionCode
  20. versionName rootProject.ext.android.versionName
  21. javaCompileOptions {
  22. annotationProcessorOptions {
  23. includeCompileClasspath = true
  24. }
  25. }
  26. multiDexEnabled true
  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 = "RUIZI_UAS_MES_STORAGE_RELEASE_${releaseInfo}.apk"
  46. } else if (variant.buildType.name.equals('debug')) {
  47. def debugInfo = getVersionName()
  48. fileName = "RUIZI_UAS_MES_STORAGE_DEBUG_${debugInfo}.apk"
  49. }
  50. outputFileName = fileName
  51. }
  52. }
  53. }
  54. compileOptions {
  55. targetCompatibility 1.8
  56. sourceCompatibility 1.8
  57. }
  58. }
  59. dependencies {
  60. implementation fileTree(include: ['*.jar'], dir: 'libs')
  61. implementation 'com.android.support:design:28.0.0'
  62. implementation 'com.android.support:appcompat-v7:28.0.0'
  63. implementation 'com.android.support.constraint:constraint-layout:2.0.1'
  64. testImplementation 'junit:junit:4.12'
  65. api files('libs/volley.jar')
  66. api files('libs/gson-2.2.4.jar')
  67. api project(':pulltoreflashlibrary')
  68. api project(':progresslitelibrary')
  69. api project(':lib-zxing')
  70. api deps.appcompatV7
  71. api deps.stetho
  72. api deps.fastjson
  73. api deps.xUtils
  74. api deps.okhttp
  75. api deps.BaseRecyclerViewAdapterHelper
  76. api deps.smartRefreshLayout
  77. api deps.smartRefreshHeader
  78. api deps.smartTable
  79. api deps.basePopup
  80. api deps.permisson
  81. api deps.recyclerview
  82. api project(':bluetooth')
  83. implementation deps.switchView
  84. implementation 'org.jetbrains:annotations:15.0'
  85. implementation(deps.MultiTypeFilePicker) {
  86. exclude group: "com.android.support"
  87. }
  88. implementation 'com.umeng.umsdk:common:9.4.0'// 必选
  89. implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
  90. implementation 'com.umeng.umsdk:apm:1.4.0' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  91. implementation 'org.greenrobot:eventbus:3.2.0'
  92. implementation 'com.gavin.com.library:stickyDecoration:1.4.11'
  93. //OKGO
  94. implementation 'com.lzy.net:okgo:3.0.4'
  95. implementation 'com.lzy.net:okrx2:2.0.2'
  96. implementation 'com.lzy.net:okserver:2.0.5'
  97. implementation 'com.contrarywind:Android-PickerView:4.1.9'
  98. }
  99. def getVersionName() {
  100. return rootProject.ext.android.versionName
  101. }