@onslip/capacitor-cli
Advanced tools
Comparing version 2.4.2-onslip.0 to 2.5.0-onslip.0
@@ -378,5 +378,7 @@ "use strict"; | ||
let applicationXMLAttributes = []; | ||
let prefsArray = []; | ||
cordovaPlugins.map(async (p) => { | ||
const editConfig = plugin_1.getPlatformElement(p, platform, 'edit-config'); | ||
const configFile = plugin_1.getPlatformElement(p, platform, 'config-file'); | ||
prefsArray = prefsArray.concat(plugin_1.getAllElements(p, platform, 'preference')); | ||
editConfig.concat(configFile).map(async (configElement) => { | ||
@@ -426,2 +428,5 @@ if (configElement.$ && (configElement.$.target && configElement.$.target.includes('AndroidManifest.xml') || configElement.$.file && configElement.$.file.includes('AndroidManifest.xml'))) { | ||
content = content.replace(new RegExp(('$PACKAGE_NAME').replace('$', '\\$&'), 'g'), '${applicationId}'); | ||
prefsArray.map((preference) => { | ||
content = content.replace(new RegExp(('$' + preference.$.name).replace('$', '\\$&'), 'g'), preference.$.default); | ||
}); | ||
if (fs_extra_1.existsSync(manifestPath)) { | ||
@@ -428,0 +433,0 @@ await fs_1.writeFileAsync(manifestPath, content); |
@@ -45,3 +45,3 @@ "use strict"; | ||
await common_1.runTask(chalk_1.default `Installing dependencies`, () => { | ||
return common_1.installDeps(appDir, ['@onslip/capacitor-cli', '@capacitor/core'], config); | ||
return common_1.installDeps(appDir, ['@onslip/capacitor-cli@2', '@capacitor/core@2'], config); | ||
}); | ||
@@ -48,0 +48,0 @@ // Copy web and capacitor to web assets |
{ | ||
"name": "@onslip/capacitor-cli", | ||
"version": "2.4.2-onslip.0", | ||
"version": "2.5.0-onslip.0", | ||
"description": "Capacitor: Cross-platform apps with JavaScript and the web", | ||
@@ -68,3 +68,3 @@ "homepage": "https://capacitor.ionicframework.com/", | ||
"@types/which": "^1.0.28", | ||
"@types/xml2js": "^0.4.2", | ||
"@types/xml2js": "0.4.5", | ||
"jest": "^23.6.0", | ||
@@ -71,0 +71,0 @@ "mock-fs": "^4.4.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1053650
4325