fix bugs.

This commit is contained in:
2025-11-18 18:28:16 +08:00
parent 3322cfeb22
commit 18bd2d3ba0
44 changed files with 400 additions and 517 deletions

View File

@@ -56,10 +56,10 @@ android {
applicationIdSuffix ""
// // 测试版包名:基础包名 + .betacom.example.myapp.beta
// applicationIdSuffix ".beta.b"
// // 测试版版本名1.0-beta
// versionNameSuffix "-beta.b"
// 【正式版应用名称】通过resValue动态生成string资源
resValue "string", "app_name", "羽声语音"
// resValue "string", "app_name", "羽声语音APP"
// 【正式版图标】替换manifest中的占位符使用main目录下的正式图标
manifestPlaceholders = [
@@ -116,7 +116,10 @@ android {
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def versionName = variant.versionName
def versionCode = variant.versionCode
def fileName = "羽声_${versionName}_${versionCode}.apk"
// 获取当前时间戳格式yyyyMMddHHmmss
def buildTimes = new Date().format("yyyy-MM-dd_HH_mm_ss")
// def fileName = "羽声_${versionName}_${buildTimes}.apk"
def fileName = "羽声_${buildTimes}.apk"
output.outputFileName = fileName
}
}
@@ -176,6 +179,7 @@ android {
}
dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
// implementation fileTree(dir: '../LocalAar/aar_libs', include: ['*.jar', '*.aar'] dir: 'libs')