plugin.xml 2.53 KB
Newer Older
李晓兵's avatar
李晓兵 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
<?xml version="1.0" encoding="UTF-8"?>

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
    id="ionic-plugin-keyboard"
    version="2.2.0">
    <name>Keyboard</name>
    <description>Ionic Keyboard Plugin</description>
    <license>Apache 2.0</license>
    <keywords>Ionic,keyboard</keywords>
    <repo>https://github.com/driftyco/ionic-plugin-keyboard.git</repo>
    <issue>https://github.com/driftyco/ionic-plugin-keyboard/issues</issue>


    <!-- android -->
    <platform name="android">
        <js-module src="www/android/keyboard.js" name="keyboard">
            <runs/>
            <clobbers target="cordova.plugins.Keyboard" />
        </js-module>
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="Keyboard">
              <param name="android-package" value="io.ionic.keyboard.IonicKeyboard" />
              <param name="onload" value="true" />
            </feature>
        </config-file>

        <source-file src="src/android/IonicKeyboard.java" target-dir="src/io/ionic/keyboard" />
    </platform>

    <!-- ios -->
    <platform name="ios">
        <js-module src="www/ios/keyboard.js" name="keyboard">
            <runs/>
            <clobbers target="cordova.plugins.Keyboard" />
        </js-module>
        <config-file target="config.xml" parent="/*">
            <feature name="Keyboard">
                <param name="ios-package" value="IonicKeyboard" onload="true" />
            </feature>
        </config-file>
        <header-file src="src/ios/IonicKeyboard.h" />
        <source-file src="src/ios/IonicKeyboard.m" />
    </platform>

	<!-- browser -->
    <platform name="browser">
        <js-module src="www/browser/keyboard.js" name="keyboard">
            <runs/>
            <clobbers target="cordova.plugins.Keyboard" />
        </js-module>
    </platform>

    <!-- blackberry10 -->
    <platform name="blackberry10">
        <source-file src="src/blackberry10/index.js" target-dir='Keyboard' />
        <lib-file src="src/blackberry10/native/device/libKeyboard.so" arch="device"/>
        <lib-file src="src/blackberry10/native/simulator/libKeyboard.so" arch="simulator"/>
        <config-file target="www/config.xml" parent="/widget">
            <feature name="Keyboard" value="io.ionic.keyboard"/>
        </config-file>
    </platform>

    <!-- windows -->
    <platform name="windows">
        <js-module src="src/windows/KeyboardProxy.js" name="KeyboardProxy">
            <runs />
            <clobbers target="cordova.plugins.Keyboard" />
        </js-module>
    </platform>

</plugin>