| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- plugins {
- id 'com.android.application'
- }
- android {
- namespace 'com.moodtalk.android'
- defaultConfig {
- applicationId "com.manliao.imchat"
- minSdkVersion 26
- targetSdkVersion 35
- compileSdk 35
- versionCode 2
- versionName "1.0.1"
- /*
- 最新端口号
- 8.210.208.207
- 老的端口号
- 47.239.183.4
- */
- buildConfigField("String", "API_SERVER_URL", '"http://8.210.208.207:8080"')
- /*
- 最新端口号
- 8.210.208.207
- 老的端口号
- 47.239.183.4
- */
- buildConfigField("String", "MESSAGING_SERVER_HOST", '"8.210.208.207"')
- buildConfigField("Integer", "MESSAGING_SERVER_PORT", '8090')
- buildConfigField("String", "LIVEKIT_URI", '"wss://im-chg2bhhj.livekit.cloud"')
- buildConfigField("String", "KEEP_LIVE_URL", '"https://alidocs.dingtalk.com/i/p/e3RmQ8DYbk6BbXaP/docs/jQPRqwxd3NLWjlOvOLedJYK6lrGM4795?dontjump=true"')
- buildConfigField("String", "BUGLY_APP_ID", '"yours"')
- ndk {
- /*
- armeabi-v7a:32位 arm芯片安装包
- arm64-v8a: 64位 arm芯片安装包
- x86_64: 64位 x86芯片安装包
- x86: 32位 x86芯片安装包
- 一般模拟器和需要配置X86
- */
- abiFilters "armeabi-v7a", "arm64-v8a" /*,"x86","x86_64" */
- }
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
- }
- }
- manifestPlaceholders = [
- JPUSH_PKGNAME : applicationId,
- ENGAGELAB_PRIVATES_APPKEY : "29eb3b804fdd4123a8825167",//值来自开发者平台取得的AppKey
- ENGAGELAB_PRIVATES_CHANNEL : "default_developer",
- ENGAGELAB_PRIVATES_PROCESS: ":remote",
- ]
- }
- /*
- 请生成您自己的证书,然后修改如下配置
- */
- signingConfigs {
- debug {
- storeFile file('../fir.jks')
- storePassword '123654.Abc'
- keyAlias 'imchat'
- keyPassword '123654.Abc'
- }
- release {
- storeFile file('../fir.jks')
- storePassword '123654.Abc'
- keyAlias 'imchat'
- keyPassword '123654.Abc'
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- shrinkResources true
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- debug {
- // applicationIdSuffix = '.debug'
- signingConfig signingConfigs.release
- shrinkResources true
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- packagingOptions {
- resources {
- excludes += ['META-INF/LICENSE.txt', 'META-INF/NOTICE.txt']
- }
- }
- compileOptions {
- sourceCompatibility = '1.8'
- targetCompatibility = '1.8'
- }
- lint {
- abortOnError false
- checkReleaseBuilds false
- }
- buildFeatures {
- viewBinding true
- }
- android.applicationVariants.configureEach { variant ->
- variant.outputs.configureEach {
- outputFileName = "MoodTalk.apk"
- }
- }
- }
- dependencies {
- implementation 'androidx.appcompat:appcompat:1.7.0'
- implementation 'com.google.android.material:material:1.12.0'
- implementation 'androidx.palette:palette:1.0.0'
- implementation 'androidx.gridlayout:gridlayout:1.1.0'
- implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
- implementation 'androidx.recyclerview:recyclerview:1.4.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
- implementation 'androidx.room:room-runtime:2.7.0'
- annotationProcessor "androidx.room:room-compiler:2.7.0"
- implementation "androidx.camera:camera-camera2:1.4.2"
- implementation "androidx.camera:camera-view:1.4.2"
- implementation "androidx.camera:camera-extensions:1.4.2"
- implementation "androidx.camera:camera-lifecycle:1.4.2"
- implementation "androidx.camera:camera-video:1.4.2"
- implementation 'androidx.media3:media3-ui:1.6.1'
- implementation 'androidx.media3:media3-exoplayer:1.6.1'
- implementation "androidx.media3:media3-exoplayer-dash:1.6.1"
- implementation 'com.github.bumptech.glide:glide:4.16.0'
- implementation "com.github.bumptech.glide:okhttp3-integration:4.16.0"
- annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
- implementation 'jp.wasabeef:glide-transformations:4.3.0'
- implementation 'io.livekit:livekit-android:2.14.0'
- implementation 'io.livekit:livekit-android-camerax:2.14.0'
- implementation 'com.github.chrisbanes:PhotoView:2.3.0'
- implementation 'com.tencent.bugly:crashreport:latest.release'
- implementation 'commons-io:commons-io:2.16.1'
- implementation 'com.belerweb:pinyin4j:2.5.1'
- implementation 'com.squareup.retrofit2:retrofit:2.11.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
- implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.11'
- implementation 'com.baidu.lbsyun:BaiduMapSDK_Map:7.6.4'
- implementation 'com.baidu.lbsyun:BaiduMapSDK_Search:7.6.4'
- implementation 'com.baidu.lbsyun:BaiduMapSDK_Util:7.6.4'
- implementation 'com.baidu.lbsyun:BaiduMapSDK_Location:9.6.4'
- implementation 'com.github.yalantis:ucrop:2.2.8'
- implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
- implementation 'com.google.protobuf:protobuf-javalite:3.25.4'
- implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
- implementation 'com.github.RuffianZhong:RWidgetHelper:androidx.v0.0.14'
- implementation 'com.github.youlookwhat:ByRecyclerView:1.4.1'
- implementation 'androidx.lifecycle:lifecycle-process:2.8.7'
- implementation 'com.engagelab:engagelab:5.0.1' // 此处以4.3.9 版本为例。
- }
|