|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
3 |
| - id="cordova-plugin-kunder-accountmanager" version="1.0.0"> |
| 3 | + id="cordova-plugin-kunder-accountmanager" version="1.0.2"> |
4 | 4 | <name>AccountManagerPlugin</name>
|
5 | 5 | <description>Account Manager cordova plugin for android and keychain for iOS</description>
|
6 | 6 | <license>Apache 2.0</license>
|
|
10 | 10 | <clobbers target="window.AccountManager" />
|
11 | 11 | </js-module>
|
12 | 12 |
|
| 13 | + <preference name="ACCOUNT_MANAGER_LABEL"/> |
| 14 | + <preference name="ACCOUNT_MANAGER_TYPE"/> |
| 15 | + |
| 16 | + <engines> |
| 17 | + <engine name="cordova" version=">=8.1.1" /> |
| 18 | + </engines> |
| 19 | + |
| 20 | + <edit-config mode="merge" file="src/android/res/xml/authenticator.xml" target="/account-authenticator"> |
| 21 | + <account-authenticator |
| 22 | + android:accountType="$ACCOUNT_MANAGER_TYPE" |
| 23 | + android:icon="@drawable/acm_icon" |
| 24 | + android:smallIcon="@drawable/acm_icon" |
| 25 | + android:label="@string/authLabel"/> |
| 26 | + </edit-config> |
| 27 | + |
13 | 28 | <platform name="android">
|
14 | 29 | <config-file target="AndroidManifest.xml" parent="/*">
|
15 | 30 | <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"></uses-permission>
|
|
42 | 57 | <resource-file src="src/android/res/xml/authenticator.xml" target="res/xml/authenticator.xml" />
|
43 | 58 | <resource-file src="src/android/res/drawable/acm_icon.png" target="res/drawable/acm_icon.png" />
|
44 | 59 |
|
45 |
| - <hook type="after_plugin_install" src="hooks/after_plugin_install/001_account_manager_settings.js" /> |
46 |
| - <hook type="before_build" src="hooks/after_plugin_install/001_account_manager_settings.js" /> |
47 |
| - <hook type="before_start" src="hooks/after_plugin_install/001_account_manager_settings.js" /> |
48 |
| - |
| 60 | + <config-file parent="/*" target="app/src/main/res/values/strings.xml"> |
| 61 | + <string name="authLabel">$ACCOUNT_MANAGER_LABEL</string> |
| 62 | + </config-file> |
49 | 63 | </platform>
|
50 | 64 |
|
51 | 65 | <platform name="ios">
|
|
0 commit comments