Newbie question but I can't find any solution. Thanks in advance
Where should I set DisableDeploy?. Tested so far:
config.xml: No effect at all. Is this example file required on a Capacitor project?ios/App/App/Info.plist: No effect at allios/App/App/config.xml and android/app/src/main/res/xml/config.xml: Works fine until you execute npx cap sync. This command overwrites ios/App/App/config.xml and android/app/src/main/res/xml/config.xmlAt the moment the only way is manually copying the value to the generated config.xml file, but as you say, it gets overwritten.
With this PR you'll be able to set it like this in capacitor.config.json:
"cordova": {
"preferences": {
"DisableDeploy": "true"
}
}
Works for any Cordova preference, not just DisableDeploy.
@jcesarmobile is this released? I am adding the "cordova" block to our capactitor.config and it is still getting overwritten
Yes, it's released.
The config.xml is always overwritten, what the PR does is to set your own preferences into the config.xml based on the capacitor.config.json preferences.
The PR was merged 23th september, and as far as I can tell the latest release is 1.2.1 released on 17th september?
ah, yeah, sorry, it's not released yet
1.3.0 was released yesterday including this feature
Hello. This seems to NOT be working at all in capacitor 1.5.1
Setting
"cordova": {
"preferences": {
"DisableDeploy": "true"
}
}
in capacitor.config will indeed update
android/app/src/main/res/xml/config.xml
and
ios/App/App/config.xml
to contain
But this will have no impact on the plugin being used (it is still used).
Can anyone get this to work on capacitor 1.5.1?
This seems to NOT be working at all in capacitor 1.5.1
It's working on Capacitor 2.4.2/Ionic 5.3.4.
PD: Just in case, you must use "true" (string) instead of true (boolean) in order to work.
Most helpful comment
At the moment the only way is manually copying the value to the generated config.xml file, but as you say, it gets overwritten.
With this PR you'll be able to set it like this in capacitor.config.json:
Works for any Cordova preference, not just DisableDeploy.