build.gradle 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*
  2. * Copyright (c) 2015. Ncomz. All Rights Reserved
  3. */
  4. apply plugin: 'com.android.application'
  5. apply plugin: 'me.tatarka.retrolambda'
  6. android {
  7. compileSdkVersion 23
  8. buildToolsVersion '23.0.3'
  9. defaultConfig {
  10. applicationId "com.ntels.kneet.v3"
  11. minSdkVersion 15
  12. targetSdkVersion 22
  13. multiDexEnabled true
  14. versionCode 9
  15. versionName "0.1.3"
  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 = "Kneet3.0_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. compileOptions {
  57. sourceCompatibility JavaVersion.VERSION_1_8
  58. targetCompatibility JavaVersion.VERSION_1_8
  59. }
  60. buildTypes {
  61. debug {
  62. debuggable true
  63. // minifyEnabled true
  64. // proguardFiles 'proguard-rules.pro'
  65. }
  66. release {
  67. signingConfig signingConfigs.release
  68. debuggable false
  69. minifyEnabled true
  70. proguardFiles 'proguard-rules.pro'
  71. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  72. }
  73. }
  74. packagingOptions {
  75. exclude 'META-INF/DEPENDENCIES'
  76. exclude 'META-INF/dependencies'
  77. exclude 'META-INF/DEPENDENCIES.txt'
  78. exclude 'META-INF/dependencies.txt'
  79. exclude 'META-INF/LICENSE'
  80. exclude 'META-INF/license'
  81. exclude 'META-INF/license.txt'
  82. exclude 'META-INF/LICENSE.txt'
  83. exclude 'META-INF/NOTICE'
  84. exclude 'META-INF/notice'
  85. exclude 'META-INF/NOTICE.txt'
  86. exclude 'META-INF/notice.txt'
  87. exclude 'META-INF/ASL2.0'
  88. exclude 'META-INF/rxjava.properties'
  89. }
  90. }
  91. dependencies {
  92. compile fileTree(include: ['*.jar'], dir: 'libs')
  93. compile 'com.android.support:multidex:1.0.1'
  94. compile 'com.android.support:support-v4:23.4.0'
  95. compile 'com.android.support:appcompat-v7:23.4.0'
  96. compile 'com.android.support:recyclerview-v7:23.4.0'
  97. compile 'com.android.support:gridlayout-v7:23.4.0'
  98. compile 'jp.wasabeef:recyclerview-animators:2.1.0'
  99. compile 'com.google.android.gms:play-services-gcm:8.4.0'
  100. compile 'com.google.android.gms:play-services-analytics:8.4.0'
  101. compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
  102. compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
  103. compile 'com.squareup.picasso:picasso:2.5.2'
  104. compile 'com.tsengvn:Typekit:1.0.0'
  105. compile 'com.koushikdutta.async:androidasync:2.+'
  106. compile 'com.mcxiaoke.volley:library:1.0.+'
  107. compile 'com.squareup.retrofit2:retrofit:2.3.0'
  108. compile 'com.squareup.retrofit2:converter-gson:2.3.0'
  109. compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
  110. compile 'com.squareup.okhttp3:okhttp:3.8.1'
  111. compile 'com.squareup.okhttp3:okhttp-urlconnection:3.8.1'
  112. compile 'com.squareup.okhttp3:logging-interceptor:3.8.1'
  113. compile 'com.google.code.gson:gson:2.8.1'
  114. compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
  115. compile 'io.reactivex.rxjava2:rxjava:2.1.3'
  116. compile project(':color_picker')
  117. }