plugin.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. id="cordova-plugin-app-version"
  5. version="0.1.9">
  6. <name>AppVersion</name>
  7. <description>
  8. This plugin will return the version of your App that you have set in
  9. packaging it. I.e. it will always match the version in the app store.
  10. </description>
  11. <license>MIT</license>
  12. <engines>
  13. <!--
  14. Cordova 2.8.0 is all I have tested on - it should work fine with earlier versions.
  15. Please modify the below line, test, and submit a PR if it works for you.
  16. -->
  17. <engine name="cordova" version=">=3.0.0" />
  18. </engines>
  19. <js-module src="www/AppVersionPlugin.js">
  20. <clobbers target="cordova.getAppVersion" />
  21. </js-module>
  22. <!-- android -->
  23. <platform name="android">
  24. <config-file target="res/xml/config.xml" parent="/*">
  25. <feature name="AppVersion">
  26. <param name="android-package" value="uk.co.whiteoctober.cordova.AppVersion"/>
  27. </feature>
  28. </config-file>
  29. <source-file src="src/android/AppVersion.java" target-dir="src/uk/co/whiteoctober/cordova" />
  30. </platform>
  31. <!-- blackberry10 -->
  32. <platform name="blackberry10">
  33. <dependency id="cordova-plugin-bb-app" />
  34. <config-file target="www/config.xml" parent="/widget">
  35. <feature name="AppVersion" value="AppVersion" />
  36. </config-file>
  37. <js-module src="www/blackberry10/AppVersionProxy.js" name="AppVersionProxy.js" >
  38. <runs />
  39. </js-module>
  40. </platform>
  41. <!-- ios -->
  42. <platform name="ios">
  43. <plugins-plist key="AppVersion" string="AppVersion" />
  44. <config-file target="config.xml" parent="/*">
  45. <feature name="AppVersion">
  46. <param name="ios-package" value="AppVersion" />
  47. </feature>
  48. </config-file>
  49. <header-file src="src/ios/AppVersion.h" />
  50. <source-file src="src/ios/AppVersion.m" />
  51. </platform>
  52. <!-- windows8 -->
  53. <platform name="windows">
  54. <js-module src="src/windows/AppVersionProxy.js" name="AppVersionProxy">
  55. <merges target=""/>
  56. </js-module>
  57. </platform>
  58. <!-- wp8 -->
  59. <platform name="wp8">
  60. <config-file target="config.xml" parent="/*">
  61. <feature name="AppVersion">
  62. <param name="wp-package" value="AppVersion"/>
  63. </feature>
  64. </config-file>
  65. <source-file src="src/wp8/AppVersion.cs" />
  66. </platform>
  67. </plugin>