fix bugs.
This commit is contained in:
@@ -56,10 +56,10 @@ android {
|
||||
applicationIdSuffix ""
|
||||
// // 测试版包名:基础包名 + .beta(com.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')
|
||||
|
||||
Reference in New Issue
Block a user