This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass project config.xml path to platform's prepare (#751)
Currently we're passing in an already-constructed ConfigParser instance as part of the fake projectInfo object, but the problem is that it's constructed with the version of cordova-common depended on by *cordova-lib* as opposed to the version of cordova-common depended on by the *platform*. By passing the path in, we can construct the ConfigParser at the Platform API level, using the correct version. In the meantime, for compatibility reasons, we have to keep passing in a ConfigParser instance, and the Platform API needs to handle the case where rootConfigXml is undefined and it needs to fetch the path out of the existing ConfigParser instance and then overwrite it with a newly constructed ConfigParser. We should at some point look into making this "root project info" object a class in cordova-common so that we can document what it's expected to contain and rely on that both here and in the platforms.
- Loading branch information
Showing 1 changed file with 2 additions and 1 deletion.