build.gradle 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. apply plugin: 'com.android.application'
  2. // 华为推送,agconnect-services.json 文件也得在在application module的根目录
  3. apply plugin: 'com.huawei.agconnect'
  4. apply plugin: 'com.google.gms.google-services'
  5. android {
  6. signingConfigs {
  7. wfc {
  8. keyAlias 'wfc'
  9. keyPassword 'wildfirechat'
  10. storeFile file('../wfc.keystore')
  11. storePassword 'wildfirechat'
  12. }
  13. }
  14. compileSdkVersion 34
  15. ndkVersion '18.1.5063045'
  16. defaultConfig {
  17. applicationId "cn.wildfirechat.chat.open"
  18. minSdkVersion 24
  19. targetSdkVersion 34
  20. versionCode 60
  21. versionName '1.3.5'
  22. multiDexEnabled true
  23. javaCompileOptions {
  24. annotationProcessorOptions {
  25. // includeCompileClasspath true
  26. }
  27. }
  28. ndk {
  29. //noinspection ChromeOsAbiSupport
  30. abiFilters 'armeabi-v7a', 'arm64-v8a' // ,'armeabi', 'arm64-v8a', 'x86', 'x86_64'
  31. }
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled true
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. //signingConfig signingConfigs.wfc
  38. }
  39. debug {
  40. minifyEnabled false
  41. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  42. }
  43. }
  44. compileOptions {
  45. coreLibraryDesugaringEnabled true
  46. sourceCompatibility JavaVersion.VERSION_1_8
  47. targetCompatibility JavaVersion.VERSION_1_8
  48. }
  49. productFlavors {
  50. }
  51. namespace 'cn.wildfirechat.chat'
  52. lint {
  53. abortOnError false
  54. }
  55. buildFeatures {
  56. buildConfig true
  57. }
  58. // 如果提示 libc++_shared.so 冲突,打开下面的注释
  59. // packagingOptions {
  60. // pickFirst 'lib/x86/libc++_shared.so'
  61. // pickFirst 'lib/arm64-v8a/libc++_shared.so'
  62. // pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  63. // pickFirst 'lib/x86_64/libc++_shared.so'
  64. // }
  65. }
  66. dependencies {
  67. implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
  68. implementation fileTree(dir: "../push-aar-dep", include: ["*.aar"])
  69. compileOnly fileTree(dir: "../uikit-aar-dep", include: ["zxing-lite-1.1.1.aar"])
  70. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
  71. implementation 'com.tencent.bugly:crashreport:latest.release'
  72. implementation 'androidx.multidex:multidex:2.0.1'
  73. implementation project(':push')
  74. implementation 'com.github.tiann:FreeReflection:3.1.0'
  75. implementation project(':uvccamera')
  76. // 采用 library module 的方式依赖 uikit,如果需要采用 aar 方式集成,请仔细下面的注释
  77. implementation project(':uikit')
  78. // 采用 aar 方式依赖 uikit,
  79. /*
  80. implementation fileTree(dir: "uikit_aars", include: ["*.aar"])
  81. // 采用 aar 方式集成时,还需要下面这些依赖
  82. // wfc kit start
  83. // project 相关的依赖,已编译成 aar 放到了 uikit_aars 目录
  84. // implementation project(':webrtc')
  85. // implementation project(':client')
  86. // implementation project(':avenginekit')
  87. // implementation project(':emojilibrary')
  88. // implementation project(':imagepicker')
  89. // implementation project(':pttclient')
  90. implementation 'com.lqr.adapter:library:1.0.2'
  91. implementation 'com.jaeger.statusbaruitl:library:1.3.5'
  92. implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
  93. implementation 'com.google.android.material:material:1.3.0-alpha01'
  94. implementation 'cjt.library.wheel:camera:1.1.9'
  95. implementation 'com.github.bumptech.glide:glide:4.9.0'
  96. annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
  97. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  98. implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
  99. implementation 'com.google.code.gson:gson:2.8.5'
  100. implementation "androidx.lifecycle:lifecycle-viewmodel-android:2.8.7"
  101. implementation "androidx.lifecycle:lifecycle-livedata:2.8.7"
  102. implementation 'com.king.zxing:zxing-lite:1.1.1'
  103. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  104. implementation 'androidx.gridlayout:gridlayout:1.0.0'
  105. implementation 'com.google.android:flexbox:2.0.1'
  106. implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.2.6'
  107. implementation 'io.kvh:amr:1.1.1'
  108. implementation 'com.squareup.okhttp3:okhttp:3.11.0'
  109. implementation 'com.squareup.okio:okio:1.14.0'
  110. implementation 'com.tbuonomo.andrui:viewpagerdotsindicator:2.1.2'
  111. implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.3'
  112. // moment start
  113. implementation project(':momentclient')
  114. // moment end
  115. // kit wfc end
  116. */
  117. }