forked from dukhanov/Cordova-Flic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
72 lines (68 loc) · 2.4 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?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="cordova-plugin-flic"
version="1.0.1">
<name>Flic</name>
<description>A Cordova plugin providing access to the Flic SDK</description>
<license>Apache 2.0</license>
<keywords>cordova,flic,smart,button,sdk</keywords>
<repo></repo>
<issue></issue>
<js-module src="www/Flic.js" name="Flic">
<clobbers target="Flic" />
</js-module>
<!-- android -->
<platform name="android">
<!-- Add plugin dependencies -->
<framework src="src/android/cordovaFlic.gradle" custom="true" type="gradleReference" />
<resource-file src="libs/fliclib-release.aar" target="libs/fliclib-release.aar" />
<config-file target="res/xml/config.xml" parent="/*">
<!-- The feature's name attribute should match what you specify as the JavaScript exec call's service parameter.
The value attribute should match the name of the plugin's Java class.
-->
<feature name="Flic" >
<param name="android-package" value="com.jguix.cordova.Flic"/>
</feature>
</config-file>
<source-file src="src/android/Flic.java" target-dir="src/com/jguix/cordova" />
<source-file src="src/android/PluginSettings.java" target-dir="src/com/jguix/cordova" />
</platform>
<!-- ios -->
<platform name="ios">
<preference name="URL_SCHEME" />
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>bluetooth-central</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>flic20</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>$URL_SCHEME</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="FlicUrlScheme">
<string>$URL_SCHEME</string>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="Flic">
<param name="ios-package" value="Flic"/>
<param name="onload" value="true" />
</feature>
</config-file>
<framework src="src/ios/fliclib.framework" custom="true" embed="true" />
<source-file src="src/ios/Flic.m" />
<header-file src="src/ios/Flic.h" />
<hook type="after_platform_add" src="hook/addEmbedded.js" />
</platform>
</plugin>