build.gradle 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 'pda_storage'
  8. keyPassword 'pdakeystone'
  9. storeFile file('C:/sigin/pda_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.storage_special"
  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_STORAGE_MANAGE_RELEASE_${releaseInfo}.apk"
  45. } else if (variant.buildType.name.equals('debug')) {
  46. def debugInfo = getVersionName()
  47. fileName = "UAS_STORAGE_MANAGE_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. // implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
  61. testImplementation 'junit:junit:4.12'
  62. api files('libs/volley.jar')
  63. api files('libs/gson-2.2.4.jar')
  64. api project(':pulltoreflashlibrary')
  65. api project(':progresslitelibrary')
  66. api project(':lib-zxing')
  67. api deps.appcompatV7
  68. api deps.stetho
  69. api deps.fastjson
  70. api deps.xUtils
  71. api deps.okhttp
  72. api deps.BaseRecyclerViewAdapterHelper
  73. api deps.smartRefreshLayout
  74. api deps.smartRefreshHeader
  75. implementation 'com.android.support:recyclerview-v7:26.1.0'
  76. }
  77. def getVersionName() {
  78. return rootProject.ext.android.versionName
  79. }