Fixes SWIFT_VERSION error

This commit is contained in:
filipenevola
2020-03-06 10:24:56 -04:00
parent 975759f6aa
commit feebaabc95
3 changed files with 6 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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: {},

View File

@@ -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'