build.gradle 4.1 KB

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