diff --git a/packages/webapp/package.js b/packages/webapp/package.js index 1cf32664b6..9ed96068bb 100644 --- a/packages/webapp/package.js +++ b/packages/webapp/package.js @@ -22,7 +22,7 @@ Npm.strip({ Cordova.depends({ 'cordova-plugin-whitelist': '1.3.4', 'cordova-plugin-wkwebview-engine': '1.2.1', - 'cordova-plugin-meteor-webapp': '1.9.0' + 'cordova-plugin-meteor-webapp': '1.9.1' }); Package.onUse(function (api) { diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index eb66449a29..2af19a016c 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -12,7 +12,7 @@ import { loadIsopackage } from '../tool-env/isopackets.js'; import utils from '../utils/utils.js'; import XmlBuilder from 'xmlbuilder2'; -import { CORDOVA_ARCH } from './index.js'; +import { CORDOVA_ARCH, SWIFT_VERSION } from './index.js'; // Hard-coded size constants @@ -122,7 +122,8 @@ export class CordovaBuilder { global: { 'webviewbounce': false, 'DisallowOverscroll': true, - 'WKWebViewOnly': true + 'WKWebViewOnly': true, + 'SwiftVersion': SWIFT_VERSION }, platform: { ios: {}, diff --git a/tools/cordova/index.js b/tools/cordova/index.js index 46841c3a48..f7ce8abddc 100644 --- a/tools/cordova/index.js +++ b/tools/cordova/index.js @@ -24,6 +24,8 @@ export const CORDOVA_PLATFORM_VERSIONS = { 'ios': '5.1.1', }; +export const SWIFT_VERSION = 5; + const PLATFORM_TO_DISPLAY_NAME_MAP = { 'ios': 'iOS', 'android': 'Android'