Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8377

<runs> tag in Plugin.xml aren't parsed properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      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>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alsorokin Alexander Sorokin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: