|
| 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.8"> |
| 6 | + |
| 7 | + <name>AppVersion</name> |
| 8 | + <description> |
| 9 | + This plugin will return the version of your App that you have set in |
| 10 | + packaging it. I.e. it will always match the version in the app store. |
| 11 | + </description> |
| 12 | + <license>MIT</license> |
| 13 | + |
| 14 | + <engines> |
| 15 | + <!-- |
| 16 | + Cordova 2.8.0 is all I have tested on - it should work fine with earlier versions. |
| 17 | + Please modify the below line, test, and submit a PR if it works for you. |
| 18 | + --> |
| 19 | + <engine name="cordova" version=">=3.0.0" /> |
| 20 | + </engines> |
| 21 | + |
| 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 | + |
| 32 | + <!-- blackberry10 --> |
| 33 | + <platform name="blackberry10"> |
| 34 | + <dependency id="com.blackberry.app" /> |
| 35 | + |
| 36 | + <config-file target="www/config.xml" parent="/widget"> |
| 37 | + <feature name="AppVersion" value="AppVersion" /> |
| 38 | + </config-file> |
| 39 | + <js-module src="www/blackberry10/AppVersionProxy.js" name="AppVersionProxy.js" > |
| 40 | + <runs /> |
| 41 | + </js-module> |
| 42 | + </platform> |
| 43 | + |
| 44 | + <!-- ios --> |
| 45 | + <platform name="ios"> |
| 46 | + <plugins-plist key="AppVersion" string="AppVersion" /> |
| 47 | + |
| 48 | + <config-file target="config.xml" parent="/*"> |
| 49 | + <feature name="AppVersion"> |
| 50 | + <param name="ios-package" value="AppVersion" /> |
| 51 | + </feature> |
| 52 | + </config-file> |
| 53 | + |
| 54 | + <header-file src="src/ios/AppVersion.h" /> |
| 55 | + <source-file src="src/ios/AppVersion.m" /> |
| 56 | + </platform> |
| 57 | + |
| 58 | + <!-- windows8 --> |
| 59 | + <platform name="windows8"> |
| 60 | + <js-module src="src/windows8/AppVersionProxy.js" name="AppVersionProxy"> |
| 61 | + <merges target=""/> |
| 62 | + </js-module> |
| 63 | + </platform> |
| 64 | + |
| 65 | + <!-- wp8 --> |
| 66 | + <platform name="wp8"> |
| 67 | + <config-file target="config.xml" parent="/*"> |
| 68 | + <feature name="AppVersion"> |
| 69 | + <param name="wp-package" value="AppVersion"/> |
| 70 | + </feature> |
| 71 | + </config-file> |
| 72 | + |
| 73 | + <source-file src="src/wp8/AppVersion.cs" /> |
| 74 | + </platform> |
| 75 | +</plugin> |
0 commit comments