build.gradle 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /*
  2. * Copyright (c) 2015. Ncomz. All Rights Reserved
  3. */
  4. apply plugin: 'com.android.application'
  5. android {
  6. compileSdkVersion 25
  7. buildToolsVersion '25.0.2'
  8. defaultConfig {
  9. applicationId "com.ntels.onecable"
  10. minSdkVersion 18
  11. targetSdkVersion 25
  12. multiDexEnabled true
  13. versionCode 9
  14. versionName "1.0.0"
  15. }
  16. /*productFlavors {
  17. dev {
  18. minSdkVersion 21
  19. }
  20. prod {
  21. minSdkVersion 15
  22. }
  23. }*/
  24. // task clean(type: Delete) {
  25. // delete "$rootProject/kneet_v3/build/intermediates/exploded-aar"
  26. // }
  27. dexOptions {
  28. //preDexLibraries = false
  29. jumboMode = true
  30. maxProcessCount 4
  31. javaMaxHeapSize "2g"
  32. // incremental true
  33. }
  34. applicationVariants.all { variant ->
  35. variant.outputs.each { output ->
  36. if ("${variant.buildType.name}" != "debug") {
  37. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  38. def apkName = "OneCable_v" + variant.versionName + "_" + formattedDate + "_Release.apk"
  39. output.outputFile = new File(output.outputFile.parent, apkName)
  40. } /*else {
  41. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  42. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Debug.apk"
  43. output.outputFile = new File(output.outputFile.parent, apkName)
  44. }*/
  45. }
  46. }
  47. /*signingConfigs {
  48. release {
  49. storeFile file("../kneet_v2.jks")
  50. storePassword "ntels@kneet"
  51. keyAlias "kneet_v2"
  52. keyPassword "ntels@kneet"
  53. }
  54. }*/
  55. buildTypes {
  56. debug {
  57. debuggable true
  58. // minifyEnabled true
  59. // proguardFiles 'proguard-rules.pro'
  60. }
  61. release {
  62. // signingConfig signingConfigs.release
  63. debuggable false
  64. minifyEnabled true
  65. proguardFiles 'proguard-rules.pro'
  66. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  67. }
  68. }
  69. packagingOptions {
  70. exclude 'META-INF/DEPENDENCIES'
  71. exclude 'META-INF/dependencies'
  72. exclude 'META-INF/DEPENDENCIES.txt'
  73. exclude 'META-INF/dependencies.txt'
  74. exclude 'META-INF/LICENSE'
  75. exclude 'META-INF/license'
  76. exclude 'META-INF/license.txt'
  77. exclude 'META-INF/LICENSE.txt'
  78. exclude 'META-INF/NOTICE'
  79. exclude 'META-INF/notice'
  80. exclude 'META-INF/NOTICE.txt'
  81. exclude 'META-INF/notice.txt'
  82. exclude 'META-INF/ASL2.0'
  83. }
  84. }
  85. dependencies {
  86. compile fileTree(include: ['*.jar'], dir: 'libs')
  87. // compile 'com.koushikdutta.async:androidasync:2.+'
  88. compile project(':color_picker')
  89. compile 'com.android.support:multidex:1.0.1'
  90. compile 'com.android.support:support-v4:25.3.1'
  91. compile 'com.android.support:support-v13:25.3.1'
  92. compile 'com.android.support:appcompat-v7:25.3.1'
  93. compile 'com.android.support:recyclerview-v7:25.3.1'
  94. compile 'com.android.support:gridlayout-v7:25.3.1'
  95. compile 'com.google.firebase:firebase-messaging:11.0.0'
  96. compile 'com.google.firebase:firebase-core:11.0.0'
  97. // compile 'com.google.android.gms:play-services-gcm:10.2.1'
  98. // compile 'com.google.android.gms:play-services-analytics:11.0.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 'jp.wasabeef:recyclerview-animators:2.1.0'
  104. compile 'com.mcxiaoke.volley:library:1.0.+'
  105. compile 'org.java-websocket:Java-WebSocket:1.3.4'
  106. compile 'com.jakewharton:butterknife:8.5.1'
  107. compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
  108. compile 'com.android.support:design:25.3.1'
  109. compile 'com.kyleduo.switchbutton:library:1.4.6'
  110. annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
  111. }
  112. apply plugin: 'com.google.gms.google-services'