-
Notifications
You must be signed in to change notification settings - Fork 17
/
plugin.xml
executable file
·127 lines (101 loc) · 6.7 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Created by Stuart Douglas ([email protected]) on June 11, 2015.
Copyright (c) 2015 Macadamian. All rights reserved.
-->
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="com.macadamian.blinkup"
version="1.1.5">
<name>cordova-blinkup-plugin</name>
<description>
This plugin allows you to integrate the native BlinkUp process for setting up an Electric Imp device directly into your Cordova / PhoneGap project.
The Plan ID, Device ID, Agent URL, Verfication Date, and status of the operation are all passed back as JSON to the Cordova application, along with a status or error code (see ReadMe.md for JSON format and status code definitions).
</description>
<info>
There are several required steps to perform before your application will run. Please see ReadMe.md for information on installation and usage.
If you previously had the plugin installed and are simply updating it, then you do not need to repeat the installation steps.
</info>
<license>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Created by Stuart Douglas ([email protected]) on June 11, 2015.
Copyright (c) 2015 Macadamian. All rights reserved.
</license>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<asset src="www/blinkup.js" target="js/blinkup.js"/>
<js-module src="www/blinkup.js" name="blinkup">
<clobbers target="blinkup" />
</js-module>
<!--========== Android ==========-->
<platform name="android">
<!-- Application specific permission injections -->
<hook type="after_platform_add" src="scripts/android/manifest_permission_inject.js" />
<hook type="after_plugin_add" src="scripts/android/manifest_permission_inject.js" />
<!-- Injections for blinkup -->
<hook type="after_platform_add" src="scripts/android/blinkup/main_activity_inject.js" />
<hook type="after_plugin_add" src="scripts/android/blinkup/main_activity_inject.js" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="cordova-blinkup-plugin">
<param name="android-package" value="com.macadamian.blinkup.BlinkUpPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.macadamian.blinkup.ClearCompleteActivity" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.macadamian.blinkup.BlinkUpCompleteActivity" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.electricimp.blinkup.WifiSelectActivity" android:label="BlinkUp" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.electricimp.blinkup.BlinkupGLActivity" android:label="BlinkUp" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.electricimp.blinkup.WifiActivity" android:label="BlinkUp" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.electricimp.blinkup.WPSActivity" android:label="BlinkUp" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.electricimp.blinkup.ClearWifiActivity" android:label="BlinkUp" android:configChanges="orientation" android:screenOrientation="portrait" />
<activity android:name="com.electricimp.blinkup.InterstitialActivity" android:label="BlinkUp" android:configChanges="orientation" android:screenOrientation="portrait" />
</config-file>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/BlinkUpPlugin.java" target-dir="src/com/macadamian/blinkup/" />
<source-file src="src/android/BlinkUpPluginResult.java" target-dir="src/com/macadamian/blinkup" />
<source-file src="src/android/BlinkUpCompleteActivity.java" target-dir="src/com/macadamian/blinkup" />
<source-file src="src/android/ClearCompleteActivity.java" target-dir="src/com/macadamian/blinkup" />
<source-file src="src/android/Extras.java" target-dir="src/com/macadamian/blinkup/" />
<source-file src="src/android/util/DebugUtils.java" target-dir="src/com/macadamian/blinkup/util/" />
<source-file src="src/android/util/PreferencesHelper.java" target-dir="src/com/macadamian/blinkup/util/" />
</platform>
<!--========== iOS ==========-->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="cordova-blinkup-plugin">
<param name="ios-package" value="BlinkUpPlugin" />
</feature>
<preference name="DisallowOverscroll" value="true" />
</config-file>
<framework src="Security.framework"/>
<framework src="OpenGLES.framework"/>
<framework src="QuartzCore.framework"/>
<framework src="SystemConfiguration.framework"/>
<header-file src="src/ios/BlinkUpPlugin.h" />
<source-file src="src/ios/BlinkUpPlugin.m" />
<header-file src="src/ios/BlinkUpPluginResult.h" />
<source-file src="src/ios/BlinkUpPluginResult.m" />
<header-file src="src/ios/BUDeviceInfo+JSON.h" />
<source-file src="src/ios/BUDeviceInfo+JSON.m" />
</platform>
</plugin>