build.gradle 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * Copyright (c) 2015. Ncomz. All Rights Reserved
  3. */
  4. apply plugin: 'com.android.application'
  5. apply plugin: 'com.google.gms.google-services'
  6. android {
  7. compileSdkVersion 25
  8. buildToolsVersion '25.0.2'
  9. defaultConfig {
  10. applicationId "com.ntels.onecable.admin"
  11. minSdkVersion 18
  12. targetSdkVersion 25
  13. multiDexEnabled true
  14. versionCode 9
  15. versionName "1.0.0"
  16. }
  17. /*productFlavors {
  18. dev {
  19. minSdkVersion 21
  20. }
  21. prod {
  22. minSdkVersion 15
  23. }
  24. }*/
  25. // task clean(type: Delete) {
  26. // delete "$rootProject/kneet_v3/build/intermediates/exploded-aar"
  27. // }
  28. dexOptions {
  29. //preDexLibraries = false
  30. jumboMode = true
  31. maxProcessCount 4
  32. javaMaxHeapSize "2g"
  33. // incremental true
  34. }
  35. applicationVariants.all { variant ->
  36. variant.outputs.each { output ->
  37. if ("${variant.buildType.name}" != "debug") {
  38. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  39. def apkName = "OneCable_v" + variant.versionName + "_" + formattedDate + "_Release.apk"
  40. output.outputFile = new File(output.outputFile.parent, apkName)
  41. } /*else {
  42. def formattedDate = new Date().format("yyyyMMdd_HHmmss")
  43. def apkName = "Kneet3.0_v" + variant.versionName + "_" + formattedDate + "_Debug.apk"
  44. output.outputFile = new File(output.outputFile.parent, apkName)
  45. }*/
  46. }
  47. }
  48. /*signingConfigs {
  49. release {
  50. storeFile file("../kneet_v2.jks")
  51. storePassword "ntels@kneet"
  52. keyAlias "kneet_v2"
  53. keyPassword "ntels@kneet"
  54. }
  55. }*/
  56. buildTypes {
  57. debug {
  58. debuggable true
  59. // minifyEnabled true
  60. // proguardFiles 'proguard-rules.pro'
  61. }
  62. release {
  63. // signingConfig signingConfigs.release
  64. debuggable false
  65. minifyEnabled true
  66. proguardFiles 'proguard-rules.pro'
  67. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  68. }
  69. }
  70. packagingOptions {
  71. exclude 'META-INF/DEPENDENCIES'
  72. exclude 'META-INF/dependencies'
  73. exclude 'META-INF/DEPENDENCIES.txt'
  74. exclude 'META-INF/dependencies.txt'
  75. exclude 'META-INF/LICENSE'
  76. exclude 'META-INF/license'
  77. exclude 'META-INF/license.txt'
  78. exclude 'META-INF/LICENSE.txt'
  79. exclude 'META-INF/NOTICE'
  80. exclude 'META-INF/notice'
  81. exclude 'META-INF/NOTICE.txt'
  82. exclude 'META-INF/notice.txt'
  83. exclude 'META-INF/ASL2.0'
  84. }
  85. }
  86. dependencies {
  87. compile fileTree(include: ['*.jar'], dir: 'libs')
  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.0'
  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. annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
  110. }