Comments (7)
The plugin uses an after_prepare hook to apply any custom config defined in config.xml to each platform folder under platforms/
. Regardless of whether you run cordova build android
, cordova build ios
, or cordova build
, the hook script is executed the same by Cordova. The arguments that Cordova passes to the hook script does not include which platforms it is operating on, so the only way for the plugin hook script to know which platforms are currently being operated on would be to scrape and parse the cordova CLI command-line arguments, which is a bit evil. Therefore, since if you have any custom config defined for other platforms, you probably want to apply it anyway, it's probably OK for now that the plugin runs against all platforms regardless of which platforms Cordova is operating on.
from cordova-custom-config.
ok, so that's not really an issue than? Nothing can go wrong and we can just ignore the message?
from cordova-custom-config.
yeah, so long as it isn't actually causing a build failure, I think it's OK as it is for now.
from cordova-custom-config.
Hmm I see that cordova passes the platforms to the hook in CORDOVA_PLATFORMS
.
Also see here: https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#sample-usage
from cordova-custom-config.
My bad, so Cordova does inform which platforms are being built. However, as stated above, since this isn't causing any issues other than applying config to platforms not currently being built, it's far from the top of my priority list.
from cordova-custom-config.
Created #59 to solve this ;)
from cordova-custom-config.
Resolved by #59 - thanks to @pke
from cordova-custom-config.
Related Issues (20)
- Android: custom-preference isn't doing anything, no error given HOT 1
- not compatible with cordova 9
- iOS location issue on uploading the apptore - ask for NSLocationAlwaysUsageDescription HOT 2
- All of a sudden (after updating node/npm LTS and cordova to 8.1.2), upon 'cordova run android', "Error loading dependencies (Cannot find module 'tostr') - attempting to resolve" - must install all deps by hand now HOT 6
- cordova-custom-config: Error updating config for platform 'android': Cannot use absolute path on element HOT 2
- Cordova builds fail with XCode-beta 11 HOT 4
- i need help with error unboun prefix HOT 1
- Question: iOS - how to set Legacy Build System ? HOT 5
- Builds fail when attempting usesClearText=true HOT 1
- Cordova ios build error - can someone help HOT 1
- Question: is this plugin needed for UISupportedInterfaceOrientations? HOT 2
- support capacitor HOT 1
- [Bug][Android] '"{{proj_path}}\platforms\android\cordova\version"' is not recognized as an internal or external command, operable program or batch file. HOT 1
- Cannot insert new Item to the section on AndroidManifest
- Vulnerability with package 'colors' HOT 1
- vulnerability in xcode package HOT 1
- Config.xml Bug HOT 6
- Ionic - The prefix "tools" for attribute "tools:node" associated with an element type "uses-permission" is not bound. HOT 1
- cordova-ios renamed Images.xcassets as Assets.xcassets meaning that asset_catalog needs to be updated
- BSF Cordova Ecosystem Crowdfunding Plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-custom-config.