forked from jospete/cordova-plugin-amazon-login
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
93 lines (75 loc) · 3.92 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
<?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-amazon-login"
version="3.0.6">
<name>Login with Amazon Plugin</name>
<description>A Cordova Plugin for Login with Amazon. Use your Amazon account to authenticate with the app.</description>
<license>MIT</license>
<keywords>Amazon, Amazon Login, Login, OAuth, Identity, Authentication</keywords>
<repo>https://github.com/edu-com/cordova-plugin-amazon-login.git</repo>
<issue>https://github.com/edu-com/cordova-plugin-amazon-login/issues</issue>
<js-module src="www/AmazonLoginPlugin.js" name="plugin">
<clobbers target="AmazonLoginPlugin"/>
</js-module>
<!-- android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml" >
<feature name="AmazonLoginPlugin">
<param name="android-package" value="com.education.AmazonLoginPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.amazon.identity.auth.device.workflow.WorkflowActivity"
android:theme="@android:style/Theme.NoDisplay"
android:allowTaskReparenting="true"
android:launchMode="singleTask"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<!-- android:host must use the full package name found in Manifest General Attributes -->
<data android:host="${applicationId}" android:scheme="amzn"/>
</intent-filter>
</activity>
</config-file>
<source-file src="src/android/AmazonLoginPlugin.java" target-dir="src/com/education"/>
<source-file src="src/android/login-with-amazon-sdk.jar" target-dir="libs"/>
<hook type="after_prepare" src="scripts/android/sync-android-api-key.js"/>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="AmazonLoginPlugin">
<param name="ios-package" value="AmazonLoginPlugin" onload="true"/>
</feature>
<plugin name="AmazonLoginPlugin" value="AmazonLoginPlugin"/>
<access origin="*.amazon.com" allows-arbitrary-loads-in-media="true"
allows-arbitrary-loads-in-web-content="true" allows-local-networking="true"/>
</config-file>
<header-file src="src/ios/AmazonLoginPlugin.h"/>
<source-file src="src/ios/AmazonLoginPlugin.m"/>
<framework src="Security.framework"/>
<framework src="SafariServices.framework"/>
<framework src="src/ios/LoginWithAmazon.framework" custom="true"/>
<hook type="after_prepare" src="scripts/ios/sync-ios-api-key.js"/>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLName</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleURLSchemes</key>
<array>
<string>amzn-$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
</array>
</config-file>
</platform>
</plugin>