build.gradle 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. buildscript {
  2. repositories {
  3. //maven { url 'https://maven.fabric.io/public' }
  4. }
  5. dependencies {
  6. //classpath 'io.fabric.tools:gradle:1.+'
  7. }
  8. }
  9. apply plugin: 'com.android.application'
  10. //apply plugin: 'io.fabric'
  11. apply plugin: 'com.google.gms.google-services'
  12. repositories {
  13. maven { url 'https://maven.fabric.io/public' }
  14. }
  15. apply plugin: 'realm-android'
  16. android {
  17. compileSdkVersion 28
  18. buildToolsVersion rootProject.ext.androidBuildToolsVersion
  19. aaptOptions.cruncherEnabled = false
  20. aaptOptions.useNewCruncher = false
  21. sourceSets {
  22. main {
  23. jniLibs.srcDirs = ['libs']
  24. }
  25. }
  26. defaultConfig {
  27. applicationId "com.zycoo.coocall"
  28. minSdkVersion rootProject.ext.androidMinSdkVersion
  29. targetSdkVersion rootProject.ext.androidTargetSdkVersion
  30. versionCode 210
  31. versionName "2.1.0"
  32. multiDexEnabled true
  33. ndk {
  34. abiFilters "armeabi-v7a", "x86", "armeabi"
  35. }
  36. packagingOptions {
  37. exclude "lib/arm64-v8a/librealm-jni.so"
  38. exclude "lib/x86_64/librealm-jni.so"
  39. exclude "lib/mips/librealm-jni.so"
  40. }
  41. javaCompileOptions {
  42. annotationProcessorOptions {
  43. includeCompileClasspath true
  44. }
  45. }
  46. }
  47. signingConfigs {
  48. debug {
  49. storeFile file("../cert/debug.keystore")
  50. storePassword "debugZycoo"
  51. keyAlias "debugZycoo"
  52. keyPassword "debugZycoo"
  53. }
  54. release {
  55. storeFile file("../cert/release.keystore")
  56. storePassword "releaseZycoo"
  57. keyAlias "releaseZycoo"
  58. keyPassword "releaseZycoo"
  59. }
  60. }
  61. buildTypes {
  62. release {
  63. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  64. buildConfigField "String", "SERVER_URL", "\"http://141.138.160.50:4242\""
  65. signingConfig signingConfigs.release
  66. minifyEnabled false
  67. debuggable false
  68. }
  69. debug {
  70. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  71. buildConfigField "String", "SERVER_URL", "\"http://141.138.160.50:4242\""
  72. signingConfig signingConfigs.debug
  73. minifyEnabled false
  74. debuggable true
  75. }
  76. }
  77. lintOptions {
  78. checkReleaseBuilds false
  79. // Or, if you prefer, you can continue to check for errors in release builds,
  80. // but continue the build even when errors are found:
  81. abortOnError false
  82. }
  83. dexOptions {
  84. jumboMode true
  85. preDexLibraries false
  86. javaMaxHeapSize "4g"
  87. }
  88. buildToolsVersion '28.0.3'
  89. }
  90. dependencies {
  91. implementation fileTree(dir: 'libs', include: ['*.jar'])
  92. implementation project(path: ':android-ngn-stack')
  93. Map<String, String> dependencies = rootProject.ext.dependencies
  94. // implementation "com.android.support:appcompat-v7:28.0.0"
  95. // implementation "com.android.support:design:28.0.0"
  96. // implementation 'com.android.support:recyclerview-v7:28.0.0'
  97. // implementation "com.android.support:cardview-v7:28.0.0"
  98. implementation dependencies.retrofit
  99. implementation dependencies.retrofitConverterGson
  100. implementation dependencies.picasso
  101. implementation 'de.hdodenhof:circleimageview:3.0.1'
  102. implementation dependencies.okhttp
  103. implementation dependencies.okhttpurlconnection
  104. implementation dependencies.okhttpLoginInterceptor
  105. implementation dependencies.multidex
  106. implementation dependencies.butterKnifeAnnotationProcessor
  107. implementation dependencies.zxing
  108. implementation dependencies.zxingCore
  109. implementation dependencies.constraintLayout
  110. implementation compile('com.jakewharton:butterknife:8.6.0') {
  111. exclude module: 'support-compat'
  112. }
  113. implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
  114. transitive = true
  115. }
  116. implementation('com.crashlytics.sdk.android:crashlytics-ndk:2.0.2@aar') {
  117. transitive = true
  118. }
  119. implementation files('libs/pinyin4j-2.5.0.jar')
  120. implementation files('libs/commons-io-1.4.jar')
  121. implementation files('libs/org.apache.http.legacy.jar')
  122. //compile 'com.umeng.sdk:common:latest.integration'
  123. compile 'com.umeng.sdk:analytics:latest.integration'
  124. //PushSDK必须依赖基础组件库,所以需要加入对应依赖
  125. implementation 'com.umeng.umsdk:common:1.5.4'
  126. //PushSDK必须依赖utdid库,所以需要加入对应依赖
  127. implementation 'com.umeng.umsdk:utdid:1.1.5.3'
  128. //PushSDK
  129. implementation 'com.umeng.umsdk:push:5.0.2'
  130. implementation 'com.google.firebase:firebase-core:17.2.0'
  131. implementation 'com.google.firebase:firebase-messaging:20.0.0'
  132. implementation 'com.firebase:firebase-jobdispatcher:0.5.2'
  133. implementation 'com.google.zxing:core:3.3.1'
  134. implementation 'com.umeng.umsdk:xiaomi-push:3.6.9'
  135. implementation 'com.umeng.umsdk:xiaomi-umengaccs:1.0.9'
  136. implementation 'com.umeng.umsdk:huawei-basetb:2.6.0.301'
  137. implementation 'com.umeng.umsdk:huawei-pushtb:2.6.0.301'
  138. implementation 'com.umeng.umsdk:huawei-umengaccs:1.1.3'
  139. }
  140. //crashlytics {
  141. // enableNdk true
  142. // androidNdkOut 'src/main/obj'
  143. // androidNdkLibsOut 'src/main/libs'
  144. //}