build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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.3'
  8. defaultConfig {
  9. applicationId "com.ntels.kneet.v3"
  10. minSdkVersion 15
  11. targetSdkVersion 22
  12. multiDexEnabled true
  13. versionCode 8
  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. maxProcessCount 4
  28. javaMaxHeapSize "2g"
  29. // incremental true
  30. }
  31. applicationVariants.all { variant ->
  32. variant.outputs.each { output ->
  33. if ("${variant.buildType.name}" != "debug") {
  34. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  35. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Release.apk"
  36. output.outputFile = new File(output.outputFile.parent, apkName)
  37. } /*else {
  38. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  39. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Debug.apk"
  40. output.outputFile = new File(output.outputFile.parent, apkName)
  41. }*/
  42. }
  43. }
  44. signingConfigs {
  45. release {
  46. storeFile file("../kneet_v2.jks")
  47. storePassword "ntels@kneet"
  48. keyAlias "kneet_v2"
  49. keyPassword "ntels@kneet"
  50. }
  51. }
  52. buildTypes {
  53. debug {
  54. debuggable true
  55. // minifyEnabled true
  56. // proguardFiles 'proguard-rules.pro'
  57. }
  58. release {
  59. signingConfig signingConfigs.release
  60. debuggable false
  61. minifyEnabled true
  62. proguardFiles 'proguard-rules.pro'
  63. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  64. }
  65. }
  66. packagingOptions {
  67. exclude 'META-INF/DEPENDENCIES'
  68. exclude 'META-INF/dependencies'
  69. exclude 'META-INF/DEPENDENCIES.txt'
  70. exclude 'META-INF/dependencies.txt'
  71. exclude 'META-INF/LICENSE'
  72. exclude 'META-INF/license'
  73. exclude 'META-INF/license.txt'
  74. exclude 'META-INF/LICENSE.txt'
  75. exclude 'META-INF/NOTICE'
  76. exclude 'META-INF/notice'
  77. exclude 'META-INF/NOTICE.txt'
  78. exclude 'META-INF/notice.txt'
  79. exclude 'META-INF/ASL2.0'
  80. }
  81. }
  82. dependencies {
  83. compile fileTree(include: ['*.jar'], dir: 'libs')
  84. compile 'com.android.support:multidex:1.0.1'
  85. compile 'com.android.support:support-v4:23.4.0'
  86. compile 'com.android.support:appcompat-v7:23.4.0'
  87. compile 'com.android.support:recyclerview-v7:23.4.0'
  88. compile 'com.android.support:gridlayout-v7:23.4.0'
  89. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  90. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  91. compile 'com.google.android.gms:play-services-analytics:8.4.0'
  92. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  93. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  94. compile 'com.squareup.picasso:picasso:2.5.2'
  95. compile 'com.tsengvn:Typekit:1.0.0'
  96. compile 'com.koushikdutta.async:androidasync:2.+'
  97. compile 'com.mcxiaoke.volley:library:1.0.+'
  98. compile project(':color_picker')
  99. }