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

Add CDVPlugin support for getting items from plugin resource bundles

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: cordova-ios
    • Labels:
      None

      Description

      Example:
      https://github.com/apache/cordova-plugin-media-capture/blob/f7d70e2e8f8354743286011f70dcd79a3292a82e/src/ios/CDVCapture.m#L34-L40

      Each plugin can have a <PluginName>.bundle with images, localization strings, etc and we provide an interface in CDVPlugin to grab them.

      Advantages:
      1. Only one line in plugin.xml as a <resource> tag, versus N lines for N files
      2. "Namespacing" of resources built in, no fear of resource name collision with other plugins, or the project template

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              shazron Shazron Abdullah
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: