-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
48 lines (38 loc) · 1.6 KB
/
plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="net.spantree.searchbar"
version="2.0">
<name>Cordova Native SearchBar Plugin</name>
<description>Displays a native search bar and sends the search String back to the JavaScript interface.</description>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- iOS -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="SearchBar">
<param name="ios-package" value="SearchBar"/>
</feature>
</config-file>
<js-module src="www/searchbar.js" name="searchbar">
<clobbers target="cordova.searchbar" />
</js-module>
<header-file src="src/ios/SearchBar.h" />
<source-file src="src/ios/SearchBar.m" />
</platform>
<!-- Android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="SearchBar">
<param name="android-package" value="net.spantree.searchbar.SearchBar"/>
</feature>
</config-file>
<js-module src="www/searchbar.js" name="searchbar">
<clobbers target="cordova.searchbar" />
</js-module>
<source-file src="src/android/SearchBar.java" target-dir="src/net/spantree/searchbar" />
<source-file src="src/android/slide_in.xml" target-dir="res/animator" />
<source-file src="src/android/slide_out.xml" target-dir="res/animator" />
</platform>
</plugin>