-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
49 lines (37 loc) · 1.71 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
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-android-sms-reader"
version="0.0.2"
>
<name>AndroidSMSReader</name>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<hook type="after_plugin_add" src="scripts/build_app.js" />
<asset src="www" target="js"/>
<js-module src="www/reader.js" name="smsreader">
<clobbers target="smsreader" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AndroidSMSReader">
<param name="android-package" value="me.jeremyf.cordova.sms.SMSReader"/>
</feature>
</config-file>
<source-file src="src/android/me/jeremyf/cordova/sms/SMSReader.java"
target-dir="src/me/jeremyf/cordova/sms"/>
<!-- Actions -->
<source-file src="src/android/me/jeremyf/cordova/sms/action/Action.java"
target-dir="src/me/jeremyf/cordova/sms/action"/>
<source-file src="src/android/me/jeremyf/cordova/sms/action/PermissionAction.java"
target-dir="src/me/jeremyf/cordova/sms/action"/>
<source-file src="src/android/me/jeremyf/cordova/sms/action/ReadAction.java"
target-dir="src/me/jeremyf/cordova/sms/action"/>
<!-- Model -->
<source-file src="src/android/me/jeremyf/cordova/sms/model/SMS.java"
target-dir="src/me/jeremyf/cordova/sms/model"/>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.READ_SMS" />
</config-file>
</platform>
</plugin>