优化打包流程

This commit is contained in:
CounterFire2023 2023-10-19 13:33:02 +08:00
parent bf9e2d7597
commit 8d863c01aa
2 changed files with 43 additions and 4 deletions

38
.vscode/tasks.json vendored
View File

@ -16,7 +16,43 @@
} }
}, },
{ {
"label": "CleanApp", "label": "Clean:App",
"type": "shell",
"command": "${workspaceRoot}/gradlew app:clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "Clean:Unity",
"type": "shell",
"command": "${workspaceRoot}/gradlew unityLibrary:clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "Clean:Cocos",
"type": "shell",
"command": "${workspaceRoot}/gradlew libcocos2dx:clean",
"windows": {
"command": "${workspaceRoot}\\gradlew.bat clean "
},
"group": "test",
"presentation": {
"reveal": "always"
}
},
{
"label": "CleanAll",
"type": "shell", "type": "shell",
"command": "${workspaceRoot}/gradlew clean", "command": "${workspaceRoot}/gradlew clean",
"windows": { "windows": {

View File

@ -31,9 +31,6 @@ android {
targetSdkVersion PROP_TARGET_SDK_VERSION targetSdkVersion PROP_TARGET_SDK_VERSION
versionCode 46 versionCode 46
versionName "1.0.46" versionName "1.0.46"
ndk{
abiFilters 'armeabi-v7a','arm64-v8a'
}
externalNativeBuild { externalNativeBuild {
ndkBuild { ndkBuild {
@ -97,8 +94,14 @@ android {
buildTypes { buildTypes {
debug { debug {
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
ndk {
abiFilters 'arm64-v8a'
}
} }
release { release {
ndk {
abiFilters 'armeabi-v7a','arm64-v8a'
}
minifyEnabled false minifyEnabled false
signingConfig signingConfigs.release signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'