You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
colors.xml gets overwritten by plugins, making it appear that the documentation is incorrect
What is expected to happen?
colors.xml should write the content from your config.xml, but popular plugins overwrite this
What does actually happen?
cordova-plugin-firebasex: Updated colors.xml with accent color
Information
The this plugin cordova-plugin-firebasex overwrites the colors.xml file, which overwrites what is in the documentation. I'm not saying the functionality of the plugin is correct, but when you use it and try to implement based on the documentation it fails.
Either the documentation should mention this caveat that other plugins may overwrite the colors.xml, or to specify a different xml file name since any name can be used, for example I used brand.xml
Either the documentation should mention this caveat that other plugins may overwrite the colors.xml
I'm not sure if this is a reasonable approach... because in theory any plugin could overwrite any project file. Should we document every potential thing that a plugin can do? This to me is just poor programming on the plugin's part.
If you have any other suggestions, I'd be happy to hear it. Otherwise I don't think there is anything Cordova can do here.
Bug Report
Problem
colors.xml gets overwritten by plugins, making it appear that the documentation is incorrect
What is expected to happen?
colors.xml should write the content from your config.xml, but popular plugins overwrite this
What does actually happen?
cordova-plugin-firebasex: Updated colors.xml with accent color
Information
The this plugin
cordova-plugin-firebasex
overwrites the colors.xml file, which overwrites what is in the documentation. I'm not saying the functionality of the plugin is correct, but when you use it and try to implement based on the documentation it fails.Either the documentation should mention this caveat that other plugins may overwrite the colors.xml, or to specify a different xml file name since any name can be used, for example I used brand.xml
Command or Code
https://cordova.apache.org/docs/en/latest/config_ref/images.html#adaptive-icon-with-colors
Environment, Platform, Device
Pixel 3 latest Android
Version information
Building using cordova cli
Checklist
The text was updated successfully, but these errors were encountered: