-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathplugin.xml
55 lines (45 loc) · 2.13 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
<?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-sms-retriever"
version="4.0.5">
<name>SMS Retriever</name>
<description>Cordova plugin to retrieve SMS in Android using the SMS Retriever API.</description>
<author>Andres Zsogon</author>
<license>MIT</license>
<keywords>sms,retriever</keywords>
<engines>
<engine name="cordova" version=">=9.0.0"/>
<engine name="cordova-android" version=">=9.0.0"/>
</engines>
<js-module src="www/SMSRetriever.js" name="SMSRetriever">
<clobbers target="cordova.plugins.SMSRetriever" />
</js-module>
<!-- android -->
<platform name="android">
<preference name="PLAY_SERVICES_AUTH_VERSION" default="21.2.0"/>
<preference name="PLAY_SERVICES_AUTH_API_PHONE_VERSION" default="18.1.0"/>
<framework src="com.google.android.gms:play-services-auth:$PLAY_SERVICES_AUTH_VERSION"/>
<framework src="com.google.android.gms:play-services-auth-api-phone:$PLAY_SERVICES_AUTH_API_PHONE_VERSION"/>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="SMSRetriever">
<param name="android-package" value="com.andreszs.smsretriever.SMSRetriever"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<receiver android:exported="true"
android:name="com.andreszs.smsretriever.SMSBroadcastReceiver"
android:permission="com.google.android.gms.auth.api.phone.permission.SEND">
<intent-filter>
<action android:name="com.google.android.gms.auth.api.phone.SMS_RETRIEVED" />
</intent-filter>
</receiver>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-feature android:name="android.hardware.telephony" android:required="false" />
</config-file>
<source-file src="src/android/SMSRetriever.java" target-dir="src/com/andreszs/smsretriever" />
<source-file src="src/android/SMSBroadcastReceiver.java" target-dir="src/com/andreszs/smsretriever" />
<source-file src="src/android/AppSignatureHashHelper.java" target-dir="src/com/andreszs/smsretriever" />
</platform>
</plugin>