build.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright (c) 2015. Ncomz. All Rights Reserved
  3. */
  4. apply plugin: 'com.android.application'
  5. android {
  6. compileSdkVersion 23
  7. buildToolsVersion '23.0.2'
  8. defaultConfig {
  9. applicationId "com.ntels.kneet.v2"
  10. minSdkVersion 15
  11. targetSdkVersion 22
  12. multiDexEnabled true
  13. versionCode 10018
  14. versionName "1.0.3"
  15. }
  16. dexOptions {
  17. //preDexLibraries = false
  18. jumboMode = true
  19. javaMaxHeapSize "4g"
  20. }
  21. applicationVariants.all { variant ->
  22. variant.outputs.each { output ->
  23. if ("${variant.buildType.name}" != "debug") {
  24. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  25. def apkName = "Kneet2.0_v" + variant.versionName + "_" + formattedDate + ".apk"
  26. output.outputFile = new File(output.outputFile.parent, apkName)
  27. }
  28. }
  29. }
  30. signingConfigs {
  31. release {
  32. storeFile file("../kneet_v2.jks")
  33. storePassword "ntels@kneet"
  34. keyAlias "kneet_v2"
  35. keyPassword "ntels@kneet"
  36. }
  37. }
  38. buildTypes {
  39. debug {
  40. debuggable true
  41. }
  42. release {
  43. signingConfig signingConfigs.release
  44. debuggable false
  45. minifyEnabled false
  46. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  47. }
  48. }
  49. packagingOptions {
  50. exclude 'META-INF/DEPENDENCIES'
  51. exclude 'META-INF/dependencies'
  52. exclude 'META-INF/DEPENDENCIES.txt'
  53. exclude 'META-INF/dependencies.txt'
  54. exclude 'META-INF/LICENSE'
  55. exclude 'META-INF/license'
  56. exclude 'META-INF/license.txt'
  57. exclude 'META-INF/LICENSE.txt'
  58. exclude 'META-INF/NOTICE'
  59. exclude 'META-INF/notice'
  60. exclude 'META-INF/NOTICE.txt'
  61. exclude 'META-INF/notice.txt'
  62. exclude 'META-INF/ASL2.0'
  63. }
  64. }
  65. dependencies {
  66. compile fileTree(dir: 'libs', include: ['*.jar'])
  67. compile files('libs/jmdns-3.4.2.jar')
  68. // compile 'com.github.bumptech.glide:glide:+'
  69. compile 'com.android.support:multidex:1.0.1'
  70. compile 'com.android.support:appcompat-v7:23.1.1'
  71. compile 'com.android.support:recyclerview-v7:23.1.1'
  72. compile 'com.android.support:gridlayout-v7:23.1.1'
  73. compile 'com.google.android.gms:play-services:8.4.0'
  74. compile 'com.google.zxing:core:3.2.1'
  75. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  76. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  77. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  78. compile 'com.squareup.picasso:picasso:2.5.2'
  79. compile 'com.tsengvn:Typekit:1.0.0'
  80. compile 'com.google.android.gms:play-services-ads:8.4.0'
  81. compile 'com.google.android.gms:play-services-identity:8.4.0'
  82. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  83. }