| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- plugins {
- id 'com.android.application'
- //生成的proto文件路径
- //id 'com.google.protobuf'
- }
- android {
- namespace 'com.bogo.android'
- defaultConfig {
- applicationId "com.nb.imchat"
- minSdkVersion 26
- targetSdkVersion 35
- compileSdk 35
- versionCode 441
- versionName "4.4.1"
- /*
- 修改为自己的
- 接口服务地址
- */
- buildConfigField("String", "API_SERVER_URL", '"http://47.239.183.4:8080"')
- /*
- 修改为自己的
- messaging服务器IP和端口
- */
- buildConfigField("String", "MESSAGING_SERVER_HOST", '"47.239.183.4"')
- buildConfigField("Integer", "MESSAGING_SERVER_PORT", '8090')
- buildConfigField("String", "LIVEKIT_URI", '"wss://momo-2q5gw0rp.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()]
- }
- }
- }
- /*
- 请生成您自己的证书,然后修改如下配置
- */
- 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 {
- signingConfig signingConfigs.release
- shrinkResources false
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- // 生成的proto文件路径
- // sourceSets {
- // main {
- // proto {
- // srcDir 'src/main/java/com/bogo/model/proto'
- // }
- // }
- // }
- 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 = "imchat.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.13.0'
- implementation 'io.livekit:livekit-android-camerax:2.13.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'
- }
- // 生成的proto文件路径
- //protobuf {
- // protoc {
- // artifact = 'com.google.protobuf:protoc:3.25.4' // ✅ 自动下载 protoc 编译器
- // }
- // generateProtoTasks {
- // all().each { task ->
- // task.builtins {
- // java {
- // option 'lite' // ✅ 生成 javalite 兼容类
- // }
- // }
- // }
- // }
- //}
|