build.gradle 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. namespace 'com.moodtalk.android'
  6. defaultConfig {
  7. applicationId "com.manliao.imchat"
  8. minSdkVersion 26
  9. targetSdkVersion 35
  10. compileSdk 35
  11. versionCode 2
  12. versionName "1.0.1"
  13. /*
  14. 最新端口号
  15. 8.210.208.207
  16. 老的端口号
  17. 47.239.183.4
  18. */
  19. buildConfigField("String", "API_SERVER_URL", '"http://8.210.208.207:8080"')
  20. /*
  21. 最新端口号
  22. 8.210.208.207
  23. 老的端口号
  24. 47.239.183.4
  25. */
  26. buildConfigField("String", "MESSAGING_SERVER_HOST", '"8.210.208.207"')
  27. buildConfigField("Integer", "MESSAGING_SERVER_PORT", '8090')
  28. buildConfigField("String", "LIVEKIT_URI", '"wss://im-chg2bhhj.livekit.cloud"')
  29. buildConfigField("String", "KEEP_LIVE_URL", '"https://alidocs.dingtalk.com/i/p/e3RmQ8DYbk6BbXaP/docs/jQPRqwxd3NLWjlOvOLedJYK6lrGM4795?dontjump=true"')
  30. buildConfigField("String", "BUGLY_APP_ID", '"yours"')
  31. ndk {
  32. /*
  33. armeabi-v7a:32位 arm芯片安装包
  34. arm64-v8a: 64位 arm芯片安装包
  35. x86_64: 64位 x86芯片安装包
  36. x86: 32位 x86芯片安装包
  37. 一般模拟器和需要配置X86
  38. */
  39. abiFilters "armeabi-v7a", "arm64-v8a" /*,"x86","x86_64" */
  40. }
  41. javaCompileOptions {
  42. annotationProcessorOptions {
  43. arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
  44. }
  45. }
  46. manifestPlaceholders = [
  47. JPUSH_PKGNAME : applicationId,
  48. ENGAGELAB_PRIVATES_APPKEY : "29eb3b804fdd4123a8825167",//值来自开发者平台取得的AppKey
  49. ENGAGELAB_PRIVATES_CHANNEL : "default_developer",
  50. ENGAGELAB_PRIVATES_PROCESS: ":remote",
  51. ]
  52. }
  53. /*
  54. 请生成您自己的证书,然后修改如下配置
  55. */
  56. signingConfigs {
  57. debug {
  58. storeFile file('../fir.jks')
  59. storePassword '123654.Abc'
  60. keyAlias 'imchat'
  61. keyPassword '123654.Abc'
  62. }
  63. release {
  64. storeFile file('../fir.jks')
  65. storePassword '123654.Abc'
  66. keyAlias 'imchat'
  67. keyPassword '123654.Abc'
  68. }
  69. }
  70. buildTypes {
  71. release {
  72. signingConfig signingConfigs.release
  73. shrinkResources true
  74. minifyEnabled true
  75. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  76. }
  77. debug {
  78. // applicationIdSuffix = '.debug'
  79. signingConfig signingConfigs.release
  80. shrinkResources true
  81. minifyEnabled true
  82. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  83. }
  84. }
  85. packagingOptions {
  86. resources {
  87. excludes += ['META-INF/LICENSE.txt', 'META-INF/NOTICE.txt']
  88. }
  89. }
  90. compileOptions {
  91. sourceCompatibility = '1.8'
  92. targetCompatibility = '1.8'
  93. }
  94. lint {
  95. abortOnError false
  96. checkReleaseBuilds false
  97. }
  98. buildFeatures {
  99. viewBinding true
  100. }
  101. android.applicationVariants.configureEach { variant ->
  102. variant.outputs.configureEach {
  103. outputFileName = "MoodTalk.apk"
  104. }
  105. }
  106. }
  107. dependencies {
  108. implementation 'androidx.appcompat:appcompat:1.7.0'
  109. implementation 'com.google.android.material:material:1.12.0'
  110. implementation 'androidx.palette:palette:1.0.0'
  111. implementation 'androidx.gridlayout:gridlayout:1.1.0'
  112. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  113. implementation 'androidx.recyclerview:recyclerview:1.4.0'
  114. implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
  115. implementation 'androidx.room:room-runtime:2.7.0'
  116. annotationProcessor "androidx.room:room-compiler:2.7.0"
  117. implementation "androidx.camera:camera-camera2:1.4.2"
  118. implementation "androidx.camera:camera-view:1.4.2"
  119. implementation "androidx.camera:camera-extensions:1.4.2"
  120. implementation "androidx.camera:camera-lifecycle:1.4.2"
  121. implementation "androidx.camera:camera-video:1.4.2"
  122. implementation 'androidx.media3:media3-ui:1.6.1'
  123. implementation 'androidx.media3:media3-exoplayer:1.6.1'
  124. implementation "androidx.media3:media3-exoplayer-dash:1.6.1"
  125. implementation 'com.github.bumptech.glide:glide:4.16.0'
  126. implementation "com.github.bumptech.glide:okhttp3-integration:4.16.0"
  127. annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
  128. implementation 'jp.wasabeef:glide-transformations:4.3.0'
  129. implementation 'io.livekit:livekit-android:2.14.0'
  130. implementation 'io.livekit:livekit-android-camerax:2.14.0'
  131. implementation 'com.github.chrisbanes:PhotoView:2.3.0'
  132. implementation 'com.tencent.bugly:crashreport:latest.release'
  133. implementation 'commons-io:commons-io:2.16.1'
  134. implementation 'com.belerweb:pinyin4j:2.5.1'
  135. implementation 'com.squareup.retrofit2:retrofit:2.11.0'
  136. implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
  137. implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.11'
  138. implementation 'com.baidu.lbsyun:BaiduMapSDK_Map:7.6.4'
  139. implementation 'com.baidu.lbsyun:BaiduMapSDK_Search:7.6.4'
  140. implementation 'com.baidu.lbsyun:BaiduMapSDK_Util:7.6.4'
  141. implementation 'com.baidu.lbsyun:BaiduMapSDK_Location:9.6.4'
  142. implementation 'com.github.yalantis:ucrop:2.2.8'
  143. implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
  144. implementation 'com.google.protobuf:protobuf-javalite:3.25.4'
  145. implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
  146. implementation 'com.github.RuffianZhong:RWidgetHelper:androidx.v0.0.14'
  147. implementation 'com.github.youlookwhat:ByRecyclerView:1.4.1'
  148. implementation 'androidx.lifecycle:lifecycle-process:2.8.7'
  149. implementation 'com.engagelab:engagelab:5.0.1' // 此处以4.3.9 版本为例。
  150. }