build.gradle 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 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. 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. // minifyEnabled true
  55. // proguardFiles 'proguard-rules.pro'
  56. }
  57. release {
  58. signingConfig signingConfigs.release
  59. debuggable false
  60. minifyEnabled true
  61. proguardFiles 'proguard-rules.pro'
  62. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  63. }
  64. }
  65. packagingOptions {
  66. exclude 'META-INF/DEPENDENCIES'
  67. exclude 'META-INF/dependencies'
  68. exclude 'META-INF/DEPENDENCIES.txt'
  69. exclude 'META-INF/dependencies.txt'
  70. exclude 'META-INF/LICENSE'
  71. exclude 'META-INF/license'
  72. exclude 'META-INF/license.txt'
  73. exclude 'META-INF/LICENSE.txt'
  74. exclude 'META-INF/NOTICE'
  75. exclude 'META-INF/notice'
  76. exclude 'META-INF/NOTICE.txt'
  77. exclude 'META-INF/notice.txt'
  78. exclude 'META-INF/ASL2.0'
  79. }
  80. }
  81. dependencies {
  82. compile fileTree(dir: 'libs', include: ['*.jar'])
  83. compile files('libs/jmdns-3.4.2.jar')
  84. compile files('libs/nxAllLinkClientSDK.jar')
  85. compile 'com.android.support:multidex:1.0.1'
  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 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  90. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  91. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  92. compile 'com.squareup.picasso:picasso:2.5.2'
  93. compile 'com.tsengvn:Typekit:1.0.0'
  94. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  95. compile 'com.google.android.gms:play-services-analytics:8.4.0'
  96. compile 'com.koushikdutta.async:androidasync:2.+'
  97. // compile 'com.android.support:design:23.4.0'
  98. compile 'com.android.support:support-v4:23.4.0'
  99. // compile 'com.mcxiaoke.volley:library:1.0.+'
  100. // compile 'com.navercorp.volleyextensions:volleyer:2.0.+'
  101. compile 'dev.dworks.libs:volleyplus:+'
  102. compile 'com.google.code.gson:gson:2.+'
  103. }