优化打包流程

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",
"command": "${workspaceRoot}/gradlew clean",
"windows": {

View File

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