Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Master
-
None
-
None
Description
With the example of mobile-spec on windows:
1. cordova-mobile-spec/createmobilespec/createmobilespec.cmd --windows mobilespec
2. go to \mobilespec\platforms\windows\www and open cordova_plugins.js
Expected result
there must be a section with "runs" element
cordova_plugins.js
{ "file": "plugins/org.apache.cordova.globalization/src/windows/GlobalizationProxy.js", "id": "org.apache.cordova.globalization.GlobalizationProxy", "runs": true },
Actual result
There is a section without "runs" element
cordova_plugins.js
{ "file": "plugins/org.apache.cordova.globalization/src/windows/GlobalizationProxy.js", "id": "org.apache.cordova.globalization.GlobalizationProxy" },
This indicates that globalization plugin's Plugin.xml was not parsed properly:
Plugin.xml
<!-- windows --> <platform name="windows"> <js-module src="src/windows/GlobalizationProxy.js" name="GlobalizationProxy"> <runs /> </js-module> <framework src="src/Windows/GlobalizationProxy.winmd" custom="true"/> </platform>