Files
mier-Android/app/build.gradle

140 lines
3.6 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.mob.sdk'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
MobSDK {
appKey "3635416c7fadb"
appSecret "c6e8c85e5b8d90220a063cdfda7d0096"
ShareSDK {
loopShare true
devInfo {
Wechat {
appId "wx7b5c4e89e726a72c"
appSecret "afc9860f4c670ac19f9efb0ab94927a3"
// appId "wx3858bffeddfb91b8"
// appSecret "0b59b165268b63ba6446d1dc55a21f38"
}
QQ {
appId "102046191"
appKey "dT8ZbR4TfdOuBF4e"
}
}
}
}
android {
compileSdkVersion 33
buildToolsVersion "30.0.2"
aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}
defaultConfig {
applicationId "com.yuyin.mier"
minSdkVersion 22
targetSdkVersion 31
versionCode 46
versionName "1.3.6"
dataBinding {
//noinspection DataBindingWithoutKapt
enabled = true
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
multiDexEnabled true
ndk {
abiFilters /*'armeabi-v7a',*/ 'arm64-v8a', 'x86' , 'x86_64'
}
}
signingConfigs {
debug {
storeFile file("../mier.jks")
storePassword "123456"
keyAlias "key0"
keyPassword "123456"
}
release {
storeFile file("../mier.jks")
storePassword "123456"
keyAlias "key0"
keyPassword "123456"
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
repositories { flatDir { dirs 'libs' } }
buildTypes {
release {
// minifyEnabled true
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
// 打包 start
applicationVariants.all { variant ->
variant.outputs.all {
def fileName
def date = new Date()
def formattedDate = date.format('yyyyMMdd-HHmmss')
if (variant.buildType.name == 'release') {
fileName = "余音派对-v${variant.mergedFlavor.versionName}_release_${formattedDate}.apk"
} else if (variant.buildType.name == 'debug') {
fileName = "余音派对-v${variant.mergedFlavor.versionName}_debug_${formattedDate}.apk"
}
outputFileName = fileName;
}
}
// 打包 end
dataBinding {
enabled = true
}
lint {
baseline = file("lint-baseline.xml")
}
// 添加AAR元数据兼容性配置
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation fileTree(dir: '../lib_base/libs', include: ['.jar', '.aar'] )
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
api 'com.alibaba:arouter-api:1.4.1'
kapt 'com.alibaba:arouter-compiler:1.2.2'
implementation project(':lib_base')
implementation project(':module_live')
implementation project(':module_community')
implementation project(path:':LocalAar:alipaySdk')
implementation project(path:':LocalAar:paytypelibrary')
}