2026-04-13 16:37:34 +08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
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']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
androidExtensions {
|
|
|
|
|
experimental = true
|
|
|
|
|
}
|
2026-04-13 19:34:58 +08:00
|
|
|
namespace 'com.nova.brain.glass'
|
2026-04-14 10:37:16 +08:00
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
|
// 确保只保留第一个遇到的 so 文件
|
|
|
|
|
pickFirst 'lib/arm64-v8a/libr2aud.so'
|
|
|
|
|
pickFirst 'lib/armeabi-v7a/libr2aud.so'
|
|
|
|
|
}
|
2026-04-13 16:37:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
|
2026-04-14 10:37:16 +08:00
|
|
|
implementation ('com.rokid.security:glass3.open.sdk:2.1.5-E') {
|
|
|
|
|
exclude group: "org.slf4j"
|
|
|
|
|
}
|
2026-04-13 16:37:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|