166 lines
5.2 KiB
Groovy
166 lines
5.2 KiB
Groovy
plugins {
|
||
alias(libs.plugins.android.application)
|
||
alias(libs.plugins.kotlin.android)
|
||
}
|
||
|
||
android {
|
||
namespace 'com.xscm.midi'
|
||
compileSdk 35
|
||
|
||
defaultConfig {
|
||
applicationId "com.xscm.midi"
|
||
minSdk 24
|
||
targetSdk 33
|
||
versionCode Integer.parseInt(project.findProperty("APP_VERSION_CODE"))
|
||
versionName project.findProperty("APP_VERSION_NAME")
|
||
multiDexEnabled true
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
||
ndk {
|
||
//设置支持的so库
|
||
abiFilters 'arm64-v8a' ,'armeabi'
|
||
// abiFilters 'armeabi-v7a', 'arm64-v8a'
|
||
}
|
||
|
||
javaCompileOptions {
|
||
annotationProcessorOptions {
|
||
arguments = [
|
||
AROUTER_MODULE_NAME: project.getName()
|
||
]
|
||
}
|
||
}
|
||
|
||
// signingConfig signingConfigs.release
|
||
// proguardFiles 'proguard-rules.pro'
|
||
|
||
}
|
||
|
||
|
||
signingConfigs {
|
||
|
||
debug {
|
||
storeFile file("midi.jks")
|
||
storePassword "123456"
|
||
keyAlias "key0"
|
||
keyPassword "123456"
|
||
}
|
||
|
||
release {
|
||
storeFile file("midi.jks")
|
||
storePassword "123456"
|
||
keyAlias "key0"
|
||
keyPassword "123456"
|
||
}
|
||
|
||
}
|
||
buildTypes {
|
||
release {
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.release
|
||
|
||
applicationVariants.all { variant ->
|
||
if (variant.buildType.name == 'release') {
|
||
variant.outputs.each { output ->
|
||
def outputFile = output.outputFile
|
||
if (outputFile != null && outputFile.name.endsWith('.apk')) {
|
||
def versionName = variant.versionName
|
||
def versionCode = variant.versionCode
|
||
def fileName = "秘地_${versionName}_${versionCode}.apk"
|
||
output.outputFileName = fileName
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
debug {
|
||
debuggable true
|
||
minifyEnabled false
|
||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
signingConfig signingConfigs.debug
|
||
|
||
applicationVariants.all { variant ->
|
||
if (variant.buildType.name == 'debug') {
|
||
variant.outputs.each { output ->
|
||
def outputFile = output.outputFile
|
||
if (outputFile != null && outputFile.name.endsWith('.apk')) {
|
||
def versionName = variant.versionName
|
||
def versionCode = variant.versionCode
|
||
def fileName = "app-debug-sr_${versionName}_${versionCode}.apk"
|
||
output.outputFileName = fileName
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
compileOptions {
|
||
sourceCompatibility JavaVersion.VERSION_1_8
|
||
targetCompatibility JavaVersion.VERSION_1_8
|
||
}
|
||
buildFeatures {
|
||
dataBinding true
|
||
}
|
||
dataBinding {
|
||
enabled = true
|
||
}
|
||
packagingOptions {
|
||
exclude 'META-INF/gradle/incremental.annotation.processors'
|
||
exclude 'META-INF/LICENSE.txt'
|
||
exclude 'META-INF/NOTICE.txt'
|
||
// exclude 'lib/arm64-v8a/libagora-ffmpeg.so'
|
||
// exclude 'lib/arm64-v8a/libagora-fdkaac.so'
|
||
}
|
||
|
||
kotlinOptions {
|
||
jvmTarget = '17'
|
||
}
|
||
dexOptions {
|
||
dexInProcess true
|
||
preDexLibraries true
|
||
javaMaxHeapSize "6g"
|
||
}
|
||
|
||
}
|
||
|
||
dependencies {
|
||
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
|
||
// implementation fileTree(dir: '../LocalAar/aar_libs', include: ['*.jar', '*.aar'] dir: 'libs')
|
||
|
||
implementation libs.appcompat
|
||
implementation libs.material
|
||
implementation libs.activity
|
||
implementation libs.constraintlayout
|
||
|
||
testImplementation libs.junit
|
||
androidTestImplementation libs.ext.junit
|
||
androidTestImplementation libs.espresso.core
|
||
|
||
|
||
implementation files('libs/auth_number_product-2.14.7-log-online-standard-cuum-release.aar')
|
||
implementation files('libs/logger-2.2.2-release.aar')
|
||
implementation files('libs/main-2.2.3-release.aar')
|
||
|
||
implementation files('libs/WbCloudFaceLiveSdk-face-v6.6.2-8e4718fc.aar')
|
||
implementation files('libs/WbCloudNormal-v5.1.10-4e3e198.aar')
|
||
|
||
|
||
implementation (libs.arouter.api.v150)
|
||
//annotationProcessor
|
||
annotationProcessor libs.arouter.compiler
|
||
implementation project(':modulevocal') // 必须
|
||
annotationProcessor project(':modulevocal') // 关键!
|
||
|
||
api project(":moduleUtil")
|
||
api project(":moduleLogin")
|
||
implementation project(':modulemain')
|
||
|
||
//aar的名称,例如:WbCloudFaceLiveSdk-v6.0.0-1234567.aar,填入'WbCloudFaceLiveSdk-v6.0.0-1234567'
|
||
// implementation(name: 'WbCloudFaceLiveSdk-face-v6.6.2-8e4718fc', ext: 'aar')
|
||
////2. 云normal SDK,
|
||
////aar的名称,例如:WbCloudNormal-v5.1.10-123456789.aar,填入 'WbCloudNormal-v5.1.10-123456789.aar'
|
||
// implementation(name: 'WbCloudNormal-v5.1.10-4e3e198', ext: 'aar')
|
||
} |