build.gradle 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 24 // 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. compileOptions {
  90. sourceCompatibility = 1.8
  91. targetCompatibility = 1.8
  92. }
  93. }
  94. dependencies {
  95. implementation fileTree(dir: 'libs', include: ['*.jar'])
  96. implementation project(path: ':android-ngn-stack')
  97. Map<String, String> dependencies = rootProject.ext.dependencies;
  98. implementation dependencies.appCompat
  99. implementation dependencies.design
  100. implementation dependencies.recyclerView
  101. implementation dependencies.cardview
  102. implementation dependencies.retrofit
  103. implementation dependencies.retrofitConverterGson
  104. implementation dependencies.picasso
  105. implementation dependencies.circleImageView
  106. implementation dependencies.okhttp
  107. implementation dependencies.okhttpurlconnection
  108. implementation dependencies.okhttpLoginInterceptor
  109. implementation dependencies.multidex
  110. implementation dependencies.butterKnifeAnnotationProcessor
  111. implementation dependencies.zxing
  112. implementation dependencies.zxingCore
  113. implementation dependencies.constraintLayout
  114. implementation compile('com.jakewharton:butterknife:8.6.0') {
  115. exclude module: 'support-compat'
  116. }
  117. implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
  118. transitive = true;
  119. }
  120. implementation('com.crashlytics.sdk.android:crashlytics-ndk:2.0.2@aar') {
  121. transitive = true;
  122. }
  123. implementation files('libs/pinyin4j-2.5.0.jar')
  124. implementation files('libs/commons-io-1.4.jar')
  125. implementation files('libs/org.apache.http.legacy.jar')
  126. //compile 'com.umeng.sdk:common:latest.integration'
  127. implementation 'com.umeng.sdk:analytics:latest.integration'
  128. //PushSDK必须依赖基础组件库,所以需要加入对应依赖
  129. implementation 'com.umeng.umsdk:common:1.5.4'
  130. //PushSDK必须依赖utdid库,所以需要加入对应依赖
  131. implementation 'com.umeng.umsdk:utdid:1.1.5.3'
  132. //PushSDK
  133. implementation 'com.umeng.umsdk:push:5.0.2'
  134. implementation 'com.google.firebase:firebase-core:16.0.4'
  135. implementation 'com.google.firebase:firebase-messaging:17.3.4'
  136. implementation 'com.firebase:firebase-jobdispatcher:0.5.2'
  137. implementation 'com.google.zxing:core:3.3.1'
  138. implementation 'com.umeng.umsdk:xiaomi-push:3.6.9'
  139. implementation 'com.umeng.umsdk:xiaomi-umengaccs:1.0.9'
  140. implementation 'com.umeng.umsdk:huawei-basetb:2.6.0.301'
  141. implementation 'com.umeng.umsdk:huawei-pushtb:2.6.0.301'
  142. implementation 'com.umeng.umsdk:huawei-umengaccs:1.1.3'
  143. }
  144. //crashlytics {
  145. // enableNdk true
  146. // androidNdkOut 'src/main/obj'
  147. // androidNdkLibsOut 'src/main/libs'
  148. //}