forked from SpiderOak/cordova-android-accountmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
53 lines (45 loc) · 2.29 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.polychrom.cordova.AccountManagerPlugin"
version="0.1.0">
<name>Account Manager</name>
<description>An Android AccountManager plugin for Apache Cordova.</description>
<license>Modified BSD</license>
<keywords>cordova,account,android</keywords>
<repo>https://github.com/polychrom/cordova-android-accountmanager.git</repo>
<js-module src="www/js/accountmanager.js" name="accountmanager">
<clobbers target="accountmanager" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AccountManager" >
<param name="android-package" value="com.polychrom.cordova.AccountManagerPlugin"/>
</feature>
</config-file>
<config-file target="res/values/strings.xml" parent="/*">
<string name="aam_account_type">MyAccountType</string>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:exported="false" android:name="com.polychrom.cordova.AuthenticatorService">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator" />
</service>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.READ_CONTACTS"/>
</config-file>
<resource-file src="res/xml/authenticator.xml" target="res/xml/authenticator.xml" />
<source-file src="src/android/AccountManagerPlugin.java" target-dir="src/com/polychrom/cordova" />
<source-file src="src/android/Authenticator.java" target-dir="src/com/polychrom/cordova" />
<source-file src="src/android/AuthenticatorService.java" target-dir="src/com/polychrom/cordova" />
</platform>
</plugin>