apply plugin: 'com.android.library' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { minSdkVersion 19 targetSdkVersion 29 versionCode 1 versionName "1.0" multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { arguments = [AROUTER_MODULE_NAME: project.getName()] } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } buildFeatures { dataBinding = true } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.3.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' annotationProcessor 'com.alibaba:arouter-compiler:1.5.2' api 'com.alibaba:arouter-api:1.5.2' implementation project(':KlcCommonView') implementation project(':KlcMoney') implementation project(':KlcTrend') implementation project(':KlcAnchorCenter') implementation project(':KlcMap') implementation project(':KlcRanking') implementation project(':KlcImJmessage') implementation project(':KlcShortVideo') implementation project(':KlcVideoCommon') implementation project(':KlcMe') implementation project(':KlcPush') implementation project(':AlivcMedia') implementation project(':AliyunCrop') implementation project(':AliyunRecorder') implementation project(':AliyunSVideoBase') implementation project(':AliyunVideoCommon') implementation 'com.aliyun.video.android:svideopro:3.32.1'//基础版短视频SDK必须依赖。 implementation 'com.aliyun.video.android:core:1.2.2' //核心库必须依赖。 //AlivcFFmpeg必须依赖,且版本需要在4.3.0及以上,在以下两个版本中选择一个版本进行依赖。 // implementation 'com.aliyun.video.android:AlivcFFmpeg:4.3.2.0-part' // 短视频SDK专用,包size较小。 implementation 'com.aliyun.video.android:AlivcFFmpeg:4.3.2' //短视频SDK与播放器SDK共用。两个SDK同时接入时,请用该版本。 // implementation 'com.aliyun.video.android:upload:1.6.6'// 上传库,如不需要上传可不依赖。 // implementation 'com.google.code.gson:gson:2.8.0'//第三方依赖库。 // implementation 'com.squareup.okhttp3:okhttp:3.2.0'//第三方依赖库。 // implementation 'com.aliyun.dpa:oss-android-sdk:+'//短视频上传需要依赖上传SDK及OSS,如果不需要上传可不依赖。 implementation "com.airbnb.android:lottie:3.4.0" }