cordova-xml
cordova-xml copied to clipboard
🆘 No check if `config.xml` not exist in path
⚠️ const file = inFile || defaultFile;
- OK ✅
var cordovaXML = require('cordova-xml')('/Users/xyz/dev/workspaces/tmp/myApp/config.xml');
- need Exception ☠️
var cordovaXML = require('cordova-xml')('/Users/xyz/dev/workspaces/tmp/myApp/');
Why do you need exception?
hallo @mifi
if
- I forgot to create
config.xml - in bad timing this file was not created correctly, plugin return SUCCESS
- in folder (from path)
config.xmlnot exist (ex. my Path can be:'foo/bar')
If you do a require('cordova-xml')('/Users/xyz/dev/workspaces/tmp/myApp/').setId('com.example.myid') then does it not fail?