From f6d1deeff6260d4f593b8a44931240b063db7c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Tue, 13 Jul 2021 16:34:38 +0900 Subject: [PATCH] feat!: release build defaults to aab package type (#1268) --- bin/templates/cordova/lib/build.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index 40c93355..a5f0a34f 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -130,7 +130,11 @@ function parseOpts (options, resolvedTarget, projectRoot) { ret.packageType = packageArgs.packageType; } } else { - ret.packageType = PackageType.APK; + if (ret.buildType === 'release') { + ret.packageType = PackageType.BUNDLE; + } else { + ret.packageType = PackageType.APK; + } } return ret;