103 lines
3.6 KiB
Groovy
103 lines
3.6 KiB
Groovy
apply plugin: 'com.android.application'
|
||
//apply plugin: 'com.android.library'
|
||
apply plugin: 'img-optimizer'
|
||
apply plugin: 'com.alibaba.arouter'
|
||
apply plugin: 'kotlin-android'
|
||
apply plugin: 'kotlin-android-extensions'
|
||
|
||
android {
|
||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||
buildToolsVersion rootProject.ext.android.buildToolsVersion
|
||
|
||
|
||
defaultConfig {
|
||
applicationId "com.shayu.onetoone"
|
||
minSdkVersion rootProject.ext.android.minSdkVersion
|
||
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
||
versionCode rootProject.ext.android.versionCode
|
||
versionName rootProject.ext.android.versionName
|
||
manifestPlaceholders = rootProject.ext.manifestPlaceholders
|
||
ndk {
|
||
abiFilters "armeabi-v7a", "arm64-v8a"
|
||
}
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
||
}
|
||
}
|
||
}
|
||
aaptOptions {
|
||
cruncherEnabled = false
|
||
useNewCruncher = false
|
||
}
|
||
signingConfigs {
|
||
release {
|
||
keyAlias 'phonelive'
|
||
keyPassword 'phonelive'
|
||
storeFile file('../hdl.jks')
|
||
storePassword 'phonelive'
|
||
}
|
||
//陌陌本地配置需要
|
||
config {//TODO BEAUTYSDK 这里需要配置keystore相关信息
|
||
keyAlias 'phonelive'
|
||
keyPassword 'phonelive'
|
||
storeFile file('../hdl.jks')//keystore的存放路径
|
||
storePassword 'phonelive'
|
||
v2SigningEnabled true // android 5.0-8.0,必须用V2,否则会有安全问题
|
||
v1SigningEnabled true
|
||
}
|
||
}
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
shrinkResources false
|
||
zipAlignEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.release
|
||
}
|
||
debug {
|
||
minifyEnabled false
|
||
shrinkResources false
|
||
zipAlignEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.release
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
}
|
||
repositories {
|
||
flatDir {
|
||
dirs 'libs', '../libs'
|
||
}
|
||
}
|
||
dependencies {
|
||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||
implementation rootProject.ext.dependencies["recyclerview-androidx"]
|
||
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||
//common
|
||
api project(path: ':common')
|
||
api project(path:':FaceUnity')//新娱美颜
|
||
|
||
api project(path:':TabLayout')
|
||
api project(path:':ViewPager2Delegate')
|
||
//implementation 'com.github.angcyo.DslTablayout:TabLayout:3.5.5'
|
||
//可选
|
||
//implementation 'com.github.angcyo.DslTablayout:ViewPager2Delegate:3.5.5'
|
||
|
||
//ExoPlayer,腾讯的播放器不支持无缝切换
|
||
implementation 'com.google.android.exoplayer:exoplayer:2.18.5'
|
||
implementation 'com.google.android.exoplayer:exoplayer-core:2.18.5@aar'
|
||
|
||
implementation 'cn.rongcloud.sdk:call_kit:5.2.0' // 音视频通话能力 UI 组件
|
||
implementation 'com.github.luqiming666:SwipeRecyclerView:1.4.8'//支持侧滑删除
|
||
implementation 'com.google.android.material:material:1.6.1'
|
||
implementation 'com.blankj:utilcode:1.30.0'//獲取uuid
|
||
|
||
}
|