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