- 将Gradle版本从7.3.3升级到8.6 - 升级Kotlin版本从1.6.10到2.2.0并更新相关插件 - 升级Android Gradle Plugin到7.4.2 - 集成AsrHelper替代原有的IntentRecognizeHelper进行语音识别 - 添加Nova Nova唤醒词注册功能 - 更新SDK依赖版本并添加新的Maven仓库地址 - 移除废弃的kotlin-android-extensions插件 - 优化HeaderInterceptor中的HTTP响应处理逻辑 - 统一Toast消息显示方式为扩展函数实现
86 行
2.6 KiB
Groovy
86 行
2.6 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
|
android {
|
|
compileSdkVersion versions.compileSdk
|
|
buildToolsVersion versions.buildTools
|
|
|
|
defaultConfig {
|
|
applicationId apps.applicationId
|
|
minSdkVersion versions.minSdk
|
|
targetSdkVersion versions.targetSdk
|
|
versionCode versions.versionCode
|
|
versionName versions.versionName
|
|
|
|
manifestPlaceholders = [
|
|
APP_NAME: apps.applicationName,
|
|
APP_ID : apps.applicationId,
|
|
]
|
|
buildConfigField("String", "APP_Name", "\"" + apps.applicationName + "\"")
|
|
|
|
flavorDimensions "versioncode"
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled false
|
|
signingConfig signingConfigs.debug
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
signingConfig signingConfigs.debug
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
if ("debug" != variant.buildType.name) {
|
|
def now = new Date()
|
|
def path = "../../../../../apks/${variant.buildType.name}/v${defaultConfig.versionName}_" + now.format("yyyy.MM.dd_HH")
|
|
outputFileName = path + "/${applicationId}.apk"
|
|
}
|
|
}
|
|
}
|
|
signingConfigs {
|
|
debug {
|
|
}
|
|
releaseConfig {}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
}
|
|
}
|
|
namespace 'com.nova.brain.glass'
|
|
|
|
packagingOptions {
|
|
// 确保只保留第一个遇到的 so 文件
|
|
pickFirst 'lib/arm64-v8a/libr2aud.so'
|
|
pickFirst 'lib/armeabi-v7a/libr2aud.so'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar","*.aar"])
|
|
implementation project(path: ':core')
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
|
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.3.0'
|
|
implementation "io.noties.markwon:core:4.6.2"
|
|
|
|
implementation ('com.rokid.security:glass3.open.sdk:2.1.6-E') {
|
|
exclude group: "org.slf4j"
|
|
}
|
|
implementation 'com.rokid.security.sdk:online-speech:0.1.0'
|
|
|
|
|
|
}
|