build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * Copyright (c) 2015. Ncomz. All Rights Reserved
  3. */
  4. apply plugin: 'com.android.application'
  5. android {
  6. compileSdkVersion 23
  7. buildToolsVersion '25.0.0'
  8. defaultConfig {
  9. applicationId "com.ntels.kneet.v3"
  10. minSdkVersion 15
  11. targetSdkVersion 22
  12. multiDexEnabled true
  13. versionCode 10
  14. versionName "0.1.3"
  15. }
  16. /*productFlavors {
  17. dev {
  18. minSdkVersion 21
  19. }
  20. prod {
  21. minSdkVersion 15
  22. }
  23. }*/
  24. /*task clean(type: Exec) {
  25. ext.lockhunter = '\"C:\\Program Files\\LockHunter\\LockHunter.exe"'
  26. def buildDir = file(new File("build"))
  27. commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir
  28. // delete "$rootProject/kneet_v3/build/intermediates/exploded-aar"
  29. // delete "$rootProject/kneet_v3/build/intermediates/transforms"
  30. }*/
  31. dexOptions {
  32. //preDexLibraries = false
  33. jumboMode = true
  34. maxProcessCount 4
  35. javaMaxHeapSize "2g"
  36. // incremental true
  37. }
  38. applicationVariants.all { variant ->
  39. variant.outputs.each { output ->
  40. if ("${variant.buildType.name}" != "debug") {
  41. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  42. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Release.apk"
  43. output.outputFile = new File(output.outputFile.parent, apkName)
  44. } /*else {
  45. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  46. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Debug.apk"
  47. output.outputFile = new File(output.outputFile.parent, apkName)
  48. }*/
  49. }
  50. }
  51. signingConfigs {
  52. release {
  53. storeFile file("../kneet_v2.jks")
  54. storePassword "ntels@kneet"
  55. keyAlias "kneet_v2"
  56. keyPassword "ntels@kneet"
  57. }
  58. }
  59. buildTypes {
  60. debug {
  61. debuggable true
  62. // minifyEnabled true
  63. // proguardFiles 'proguard-rules.pro'
  64. }
  65. release {
  66. signingConfig signingConfigs.release
  67. debuggable false
  68. minifyEnabled true
  69. proguardFiles 'proguard-rules.pro'
  70. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  71. }
  72. }
  73. packagingOptions {
  74. exclude 'META-INF/DEPENDENCIES'
  75. exclude 'META-INF/dependencies'
  76. exclude 'META-INF/DEPENDENCIES.txt'
  77. exclude 'META-INF/dependencies.txt'
  78. exclude 'META-INF/LICENSE'
  79. exclude 'META-INF/license'
  80. exclude 'META-INF/license.txt'
  81. exclude 'META-INF/LICENSE.txt'
  82. exclude 'META-INF/NOTICE'
  83. exclude 'META-INF/notice'
  84. exclude 'META-INF/NOTICE.txt'
  85. exclude 'META-INF/notice.txt'
  86. exclude 'META-INF/ASL2.0'
  87. }
  88. }
  89. dependencies {
  90. compile fileTree(include: ['*.jar'], dir: 'libs')
  91. compile 'com.android.support:multidex:1.0.1'
  92. compile 'com.android.support:support-v4:23.4.0'
  93. compile 'com.android.support:appcompat-v7:23.4.0'
  94. compile 'com.android.support:recyclerview-v7:23.4.0'
  95. compile 'com.android.support:gridlayout-v7:23.4.0'
  96. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  97. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  98. compile 'com.google.android.gms:play-services-analytics:8.4.0'
  99. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  100. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  101. compile 'com.squareup.picasso:picasso:2.5.2'
  102. compile 'com.tsengvn:Typekit:1.0.0'
  103. compile 'com.koushikdutta.async:androidasync:2.+'
  104. compile 'com.mcxiaoke.volley:library:1.0.+'
  105. compile ('com.google.android:flexbox:0.3.0') {
  106. exclude module: 'support-compat'
  107. exclude module: 'recyclerview-v7'
  108. }
  109. compile project(':color_picker')
  110. }