build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 'gd_storage_alias'
  8. keyPassword 'pdakeystone'
  9. storeFile file('C:\\sigin\\gd_storage.jks')
  10. storePassword 'pdakeystone'
  11. }
  12. }
  13. compileSdkVersion rootProject.ext.android.compileSdkVersion
  14. buildToolsVersion rootProject.ext.android.buildToolsVersion
  15. defaultConfig {
  16. applicationId "com.uas.gdstorage"
  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. }
  27. buildTypes {
  28. release {
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. packagingOptions {
  34. exclude 'META-INF/LICENSE.txt'
  35. exclude 'META-INF/NOTICE.txt'
  36. }
  37. applicationVariants.all { variant ->
  38. variant.outputs.all { output ->
  39. def outputFile = output.outputFile
  40. def fileName
  41. if (outputFile != null && outputFile.name.endsWith('.apk')) {
  42. if (variant.buildType.name.equals('release')) {
  43. def releaseInfo = getVersionName()
  44. fileName = "UAS_GD_STORAGE_RELEASE_${releaseInfo}.apk"
  45. } else if (variant.buildType.name.equals('debug')) {
  46. def debugInfo = getVersionName()
  47. fileName = "UAS_GD_STORAGE_DEBUG_${debugInfo}.apk"
  48. }
  49. outputFileName = fileName
  50. }
  51. }
  52. }
  53. compileOptions {
  54. targetCompatibility 1.8
  55. sourceCompatibility 1.8
  56. }
  57. }
  58. dependencies {
  59. implementation fileTree(include: ['*.jar'], dir: 'libs')
  60. testImplementation 'junit:junit:4.12'
  61. api files('libs/volley.jar')
  62. api files('libs/gson-2.2.4.jar')
  63. api project(':pulltoreflashlibrary')
  64. api project(':progresslitelibrary')
  65. api project(':lib-zxing')
  66. api deps.appcompatV7
  67. api deps.stetho
  68. api deps.fastjson
  69. api deps.xUtils
  70. api deps.okhttp
  71. api deps.BaseRecyclerViewAdapterHelper
  72. api deps.smartRefreshLayout
  73. api deps.smartRefreshHeader
  74. api deps.smartTable
  75. api deps.basePopup
  76. api deps.permisson
  77. api deps.recyclerview
  78. implementation 'org.jetbrains:annotations:15.0'
  79. implementation(deps.MultiTypeFilePicker) {
  80. exclude group: "com.android.support"
  81. }
  82. implementation 'com.umeng.umsdk:common:9.4.0'// 必选
  83. implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
  84. implementation 'com.umeng.umsdk:apm:1.4.0' // 错误分析升级为独立SDK,看crash数据请一定集成,可选
  85. }
  86. def getVersionName() {
  87. return rootProject.ext.android.versionName
  88. }