build.gradle 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. signingConfigs {
  22. release {
  23. storeFile file("../kneet_v2.jks")
  24. storePassword "ntels@kneet"
  25. keyAlias "kneet_v2"
  26. keyPassword "ntels@kneet"
  27. }
  28. }
  29. buildTypes {
  30. debug {
  31. debuggable true
  32. }
  33. release {
  34. signingConfig signingConfigs.release
  35. debuggable false
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  38. applicationVariants.all { variant ->
  39. variant.outputs.each { output ->
  40. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  41. def apkName = "Kneet2.0_humax_v" + variant.versionName + "_" + formattedDate + ".apk"
  42. output.outputFile = new File(output.outputFile.parent, apkName)
  43. }
  44. }
  45. }
  46. }
  47. packagingOptions {
  48. exclude 'META-INF/DEPENDENCIES'
  49. exclude 'META-INF/dependencies'
  50. exclude 'META-INF/DEPENDENCIES.txt'
  51. exclude 'META-INF/dependencies.txt'
  52. exclude 'META-INF/LICENSE'
  53. exclude 'META-INF/license'
  54. exclude 'META-INF/license.txt'
  55. exclude 'META-INF/LICENSE.txt'
  56. exclude 'META-INF/NOTICE'
  57. exclude 'META-INF/notice'
  58. exclude 'META-INF/NOTICE.txt'
  59. exclude 'META-INF/notice.txt'
  60. exclude 'META-INF/ASL2.0'
  61. }
  62. }
  63. dependencies {
  64. compile fileTree(dir: 'libs', include: ['*.jar'])
  65. compile files('libs/jmdns-3.4.2.jar')
  66. // compile 'com.github.bumptech.glide:glide:+'
  67. compile 'com.android.support:multidex:1.0.1'
  68. compile 'com.android.support:appcompat-v7:23.1.1'
  69. compile 'com.android.support:recyclerview-v7:23.1.1'
  70. compile 'com.android.support:gridlayout-v7:23.1.1'
  71. compile 'com.google.android.gms:play-services:8.4.0'
  72. compile 'com.google.zxing:core:3.2.1'
  73. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  74. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  75. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  76. compile 'com.squareup.picasso:picasso:2.5.2'
  77. compile 'com.tsengvn:Typekit:1.0.0'
  78. compile 'com.google.android.gms:play-services-ads:8.4.0'
  79. compile 'com.google.android.gms:play-services-identity:8.4.0'
  80. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  81. }