123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-parcelize'
- // Add Huawei AGC
- apply plugin: 'com.huawei.agconnect'
- agcp{
- manifest = false
- }
- android {
- compileSdkVersion 34
- useLibrary 'org.apache.http.legacy'
- sourceSets.main
- {
- jniLibs.srcDirs = ['libs']
- }
- dexOptions {
- javaMaxHeapSize "4g"
- }
- defaultConfig {
- applicationId "com.sikey.interconnect"
- // vectorDrawables.useSupportLibrary = true
- minSdkVersion 26
- targetSdkVersion 34
- versionCode 1
- versionName "1.1.28.9"
- multiDexEnabled true
- }
- packagingOptions {
- resources {
- excludes += ['META-INF/DEPENDENCIES', 'META-INF/NOTICE', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt']
- }
- }
- signingConfigs {
- debug {
- storeFile file("../release_keystore_sikey_kidswatch.jks")
- storePassword "sikey2024"
- keyAlias "kidswatchrelease"
- keyPassword "sikey2024"
- }
- release {
- storeFile file("../release_keystore_sikey_kidswatch.jks")
- storePassword "sikey2024"
- keyAlias "kidswatchrelease"
- keyPassword "sikey2024"
- }
- }
- buildTypes {
- debug {
- //show log
- buildConfigField "boolean", "LOG_DEBUG", "true"
- buildConfigField "String", "VIDEO_CALL_VENDOR", "\"agora\""
- buildConfigField "boolean", "APP_EXIT_WEBSOCKET_PERSIST", "true"
- versionNameSuffix ""
- minifyEnabled false
- zipAlignEnabled false
- shrinkResources false
- signingConfig signingConfigs.debug
- buildConfigField "String", "APP_ID_AGC", "\"114048095\""
- buildConfigField "String", "APP_ID_AGORA", "\"92c4358b9f98419f9a10d345e59a77f1\""
- buildConfigField "String", "APP_ID_MCLOUD", "\"1901585318855970816\""
- buildConfigField "String", "APP_KEY_MCLOUD", "\"ffc5d87bca2bc65e13c2399219d6b220\""
- buildConfigField "String", "SECRET_KEY_MCLOUD", "\"8aad1cdf23be18744dbc0a3eda0b438754fc3486e1fbb74466cc32276c336a10\""
- }
- release {
- signingConfig signingConfigs.release
- //do not show log
- buildConfigField "boolean", "LOG_DEBUG", "false"
- buildConfigField "String", "VIDEO_CALL_VENDOR", "\"agora\""
- buildConfigField "boolean", "APP_EXIT_WEBSOCKET_PERSIST", "true"
- //zipalign optimize
- zipAlignEnabled true
- //remove unused resource files
- shrinkResources true
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- //proguardFiles 'proguard-android.txt','proguard-rules.pro'
- buildConfigField "String", "APP_ID_AGC", "\"114048095\""
- buildConfigField "String", "APP_ID_AGORA", "\"92c4358b9f98419f9a10d345e59a77f1\""
- buildConfigField "String", "APP_ID_MCLOUD", "\"1901585318855970816\""
- buildConfigField "String", "APP_KEY_MCLOUD", "\"ffc5d87bca2bc65e13c2399219d6b220\""
- buildConfigField "String", "SECRET_KEY_MCLOUD", "\"8aad1cdf23be18744dbc0a3eda0b438754fc3486e1fbb74466cc32276c336a10\""
- }
- }
- /*
- productFlavors{
- GooglePlay {}
- xiaomi {}
- umeng {}
- _360 {}
- baidu {}
- _91 {}
- wandoujia {}
- yingyongbao{}
- }
- productFlavors.all{
- flavor->flavor.manifestPlaceholders=[UMENG_CHANNEL_VALUE: name]
- }
- applicationVariants.all{ variant->
- variant.outputs.each{ output->
- def outputFile=output.outputFile
- if(outputFile!=null && outputFile.name.endsWith('.apk')){
- def fileName=outputFile.name.replace(".apk","-${defaultConfig.versionName}.apk")
- output.outputFile=new File(outputFile.parent,fileName)
- }
- }
- }
- */
- repositories {
- flatDir {
- // this way we can find the .aar file in libs folder
- dirs 'libs'
- }
- }
- compileOptions {
- targetCompatibility 17
- sourceCompatibility 17
- }
- kotlinOptions {
- jvmTarget = '17'
- }
- lint {
- abortOnError false
- disable 'MissingTranslation'
- }
- namespace 'com.sikey.interconnect'
- buildFeatures {
- buildConfig true
- }
- }
- dependencies {
- implementation 'androidx.multidex:multidex:2.0.1'
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation(name: 'crop_image', ext: 'aar')
- //AMAP
- implementation(name: 'AMap3DMap_10.0.900_AMapSearch_9.7.3_AMapLocation_6.4.7_20240816', ext: 'aar')
- //compile project(':social_sdk_library_project')
- // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation 'com.google.android.material:material:1.9.0'
- //kotlin coroutines
- implementation(platform('org.jetbrains.kotlin:kotlin-bom:1.8.0'))
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
- // androidX
- implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
- implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2'
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2'
- implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'androidx.activity:activity-ktx:1.7.0'
- implementation 'androidx.fragment:fragment-ktx:1.5.6'
- implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- implementation 'androidx.recyclerview:recyclerview:1.3.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- implementation 'androidx.cardview:cardview:1.0.0'
- implementation 'androidx.transition:transition:1.4.1'
- implementation 'androidx.exifinterface:exifinterface:1.3.6'
- implementation 'com.airbnb.android:lottie:3.0.0'
- implementation 'com.ashokvarma.android:bottom-navigation-bar:1.3.1'
- implementation 'com.lcodecorex:tkrefreshlayout:1.0.5'
- //zxing核心依赖
- implementation 'com.google.zxing:core:3.5.0'
- implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
- implementation 'com.koushikdutta.async:androidasync:2.2.1'
- // GMS
- // implementation 'com.google.android.gms:play-services-maps:18.1.0'
- implementation 'com.google.android.libraries.places:places:3.0.0'
- // implementation 'com.google.android.gms:play-services-location:21.0.1'
- // implementation 'com.google.android.gms:play-services-auth:20.4.1'
- // implementation 'com.google.android.gms:play-services-basement:18.2.0'
- implementation 'com.github.pengrad:mapscaleview:1.2.1'
- // implementation 'com.google.firebase:firebase-messaging:23.4.0'
- // implementation 'com.google.firebase:firebase-messaging-ktx:23.4.0'
- // implementation 'com.google.firebase:firebase-core:21.1.1'
- // implementation(platform("com.google.firebase:firebase-bom:32.7.1"))
- //rxpremissions
- implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4@aar'
- //retrofit
- implementation 'com.squareup.retrofit2:retrofit:2.9.0'
- implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
- implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
- implementation 'com.squareup.retrofit2:retrofit-converters:2.5.0'
- implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.10'
- implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- //gson
- implementation 'com.google.code.gson:gson:2.10'
- implementation 'org.greenrobot:eventbus:3.1.0-RC'
- implementation 'com.github.yalantis:ucrop:2.2.8'
- // MiPush
- implementation (name: 'MiPush_SDK_Client_6_0_1-C_3rd', ext: 'aar')
- // VPush
- implementation (name: 'vpush_clientSDK_v4.0.6.0_506', ext: 'aar')
- // Add Huawei AGC
- implementation 'com.huawei.agconnect:agconnect-core:1.5.2.300'
- implementation 'com.huawei.hms:push:6.12.0.300'
- // Oppo Push
- implementation (name: 'com.heytap.msp_V3.7.1', ext: 'aar')
- implementation 'commons-codec:commons-codec:1.6'
- implementation 'androidx.annotation:annotation:1.1.0'
- // 声网视频通话
- //implementation "io.agora.rtc:full-sdk:4.5.2"
- implementation 'com.github.bumptech.glide:glide:4.16.0'
- implementation 'com.arthenica:mobile-ffmpeg-audio:4.4'
- }
|