build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.v3"
  10. minSdkVersion 15
  11. targetSdkVersion 22
  12. multiDexEnabled true
  13. versionCode 2
  14. versionName "0.1.1"
  15. }
  16. /*productFlavors {
  17. dev {
  18. minSdkVersion 21
  19. }
  20. prod {
  21. minSdkVersion 15
  22. }
  23. }*/
  24. dexOptions {
  25. //preDexLibraries = false
  26. jumboMode = true
  27. javaMaxHeapSize "12g"
  28. incremental true
  29. }
  30. applicationVariants.all { variant ->
  31. variant.outputs.each { output ->
  32. if ("${variant.buildType.name}" != "debug") {
  33. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  34. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + ".apk"
  35. output.outputFile = new File(output.outputFile.parent, apkName)
  36. }
  37. }
  38. }
  39. signingConfigs {
  40. release {
  41. storeFile file("../kneet_v2.jks")
  42. storePassword "ntels@kneet"
  43. keyAlias "kneet_v2"
  44. keyPassword "ntels@kneet"
  45. }
  46. }
  47. buildTypes {
  48. debug {
  49. debuggable true
  50. }
  51. release {
  52. signingConfig signingConfigs.release
  53. debuggable false
  54. minifyEnabled false
  55. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  56. }
  57. }
  58. packagingOptions {
  59. exclude 'META-INF/DEPENDENCIES'
  60. exclude 'META-INF/dependencies'
  61. exclude 'META-INF/DEPENDENCIES.txt'
  62. exclude 'META-INF/dependencies.txt'
  63. exclude 'META-INF/LICENSE'
  64. exclude 'META-INF/license'
  65. exclude 'META-INF/license.txt'
  66. exclude 'META-INF/LICENSE.txt'
  67. exclude 'META-INF/NOTICE'
  68. exclude 'META-INF/notice'
  69. exclude 'META-INF/NOTICE.txt'
  70. exclude 'META-INF/notice.txt'
  71. exclude 'META-INF/ASL2.0'
  72. }
  73. }
  74. dependencies {
  75. compile fileTree(dir: 'libs', include: ['*.jar'])
  76. compile files('libs/jmdns-3.4.2.jar')
  77. compile files('libs/nxAllLinkClientSDK.jar')
  78. // compile 'com.github.bumptech.glide:glide:+'
  79. compile 'com.android.support:multidex:1.0.1'
  80. compile 'com.android.support:appcompat-v7:23.4.0'
  81. compile 'com.android.support:recyclerview-v7:23.4.0'
  82. compile 'com.android.support:gridlayout-v7:23.4.0'
  83. compile 'com.google.android.gms:play-services:9.0.2'
  84. compile 'com.google.zxing:core:3.2.1'
  85. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  86. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  87. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  88. compile 'com.squareup.picasso:picasso:2.5.2'
  89. compile 'com.tsengvn:Typekit:1.0.0'
  90. compile 'com.google.android.gms:play-services-ads:9.0.2'
  91. compile 'com.google.android.gms:play-services-identity:8.4.0'
  92. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  93. compile 'com.koushikdutta.async:androidasync:2.+'
  94. compile 'com.android.support:design:23.4.0'
  95. compile 'com.android.support:support-v4:23.4.0'
  96. }