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

Android Plugin Guidelines - sample plugin.xml lacks source-file element

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: cordova-website
    • Labels:
      None

      Description

      The page https://cordova.apache.org/docs/en/4.0.0/guide/platforms/android/plugin.html

      contains following Echo Android Plugin Example plugin.xml:

          <platform name="android">
              <config-file target="config.xml" parent="/*">
                  <feature name="Echo">
                      <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
                  </feature>
              </config-file>
          </platform>
      

      However I believe to actully copy the Echo.java file when installing plugin, following element must be included in the plugin.xml as well:

      <source-file src="src/org/apache/cordova/plugin/Echo.java" target-dir="src/org/apache/cordova/Echo" />
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              petervojtek Peter Vojtek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: