forked from Pyo25/Phonegap-SMS-reception-plugin
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathplugin.xml
39 lines (34 loc) · 1.46 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.cordova.plugins.sms"
version="0.1.2">
<name>Cordova SMS Reception Plugin</name>
<description>Android Cordova Plugin for SMS reception</description>
<license>MIT</license>
<keywords>cordova,phonegap,sms</keywords>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/SmsInboxPlugin.js" name="SmsInboxPlugin">
<clobbers target="window.SmsInboxPlugin" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="SmsInboxPlugin">
<param name="android-package" value="org.apache.cordova.plugin.SmsInboxPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<receiver android:name="org.apache.cordova.plugin.SmsReceiver" android:exported="true">
<intent-filter android:priority="999">
<action android:name="android.provider.Telephony.SMS_RECEIVED"></action>
</intent-filter>
</receiver>
</config-file>
<source-file src="src/org/apache/cordova/plugin/SmsReceiver.java" target-dir="src/org/apache/cordova/plugins" />
<source-file src="src/org/apache/cordova/plugin/SmsInboxPlugin.java" target-dir="src/org/apache/cordova/plugins" />
</platform>
</plugin>