build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 6
  14. versionName "0.1.3"
  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 + "_Release.apk"
  35. output.outputFile = new File(output.outputFile.parent, apkName)
  36. } /*else {
  37. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  38. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Debug.apk"
  39. output.outputFile = new File(output.outputFile.parent, apkName)
  40. }*/
  41. }
  42. }
  43. signingConfigs {
  44. release {
  45. storeFile file("../kneet_v2.jks")
  46. storePassword "ntels@kneet"
  47. keyAlias "kneet_v2"
  48. keyPassword "ntels@kneet"
  49. }
  50. }
  51. buildTypes {
  52. debug {
  53. debuggable true
  54. }
  55. release {
  56. signingConfig signingConfigs.release
  57. debuggable false
  58. minifyEnabled true
  59. proguardFiles 'proguard-rules.pro'
  60. }
  61. }
  62. packagingOptions {
  63. exclude 'META-INF/DEPENDENCIES'
  64. exclude 'META-INF/dependencies'
  65. exclude 'META-INF/DEPENDENCIES.txt'
  66. exclude 'META-INF/dependencies.txt'
  67. exclude 'META-INF/LICENSE'
  68. exclude 'META-INF/license'
  69. exclude 'META-INF/license.txt'
  70. exclude 'META-INF/LICENSE.txt'
  71. exclude 'META-INF/NOTICE'
  72. exclude 'META-INF/notice'
  73. exclude 'META-INF/NOTICE.txt'
  74. exclude 'META-INF/notice.txt'
  75. exclude 'META-INF/ASL2.0'
  76. }
  77. }
  78. dependencies {
  79. compile fileTree(dir: 'libs', include: ['*.jar'])
  80. compile files('libs/jmdns-3.4.2.jar')
  81. compile files('libs/nxAllLinkClientSDK.jar')
  82. compile 'com.android.support:multidex:1.0.1'
  83. compile 'com.android.support:appcompat-v7:23.4.0'
  84. compile 'com.android.support:recyclerview-v7:23.4.0'
  85. compile 'com.android.support:gridlayout-v7:23.4.0'
  86. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  87. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  88. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  89. compile 'com.squareup.picasso:picasso:2.5.2'
  90. compile 'com.tsengvn:Typekit:1.0.0'
  91. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  92. compile 'com.google.android.gms:play-services-analytics: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. compile 'com.mcxiaoke.volley:library:1.0.+'
  97. }