-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
50 lines (42 loc) · 2 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-messager" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-messager</name>
<js-module name="cordova-plugin-messager" src="www/cordova-plugin-messager.js">
<clobbers target="CDVMessager" />
</js-module>
<engines>
<engine name="cordova" version=">=7.0.0"/>
<engine name="cordova-android" version=">=6.2.1"/>
<engine name="cordova-ios" version=">=4.4.0"/>
</engines>
<!-- android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CDVMessager">
<param name="android-package" value="daihere.cordova.plugin.CDVMessager"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<!-- plugin source code -->
<source-file src="src/android/CDVMessager.java" target-dir="src/daihere/cordova/plugin"/>
<!-- PAHO Library -->
<source-file src="src/android/libs/paho-client.jar" target-dir="libs"/>
<source-file src="src/android/libs/paho-service.jar" target-dir="libs"/>
</platform>
<!-- ios -->
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="CDVMessager">
<param name="ios-package" value="CDVMessager"/>
</feature>
</config-file>
<!-- plugin source code -->
<header-file src="src/ios/CDVMessager.h"/>
<source-file src="src/ios/CDVMessager.m"/>
<framework src="MQTTClient" type="podspec" spec="~> 0.9.9"/>
</platform>
</plugin>