Skip to content

Commit 2f28bb4

Browse files
author
devjoks
authored
Merge pull request #10 from aboscan/master
Compatibility with Cordova new versions
2 parents 5de714c + 41a75ee commit 2f28bb4

File tree

4 files changed

+57
-39
lines changed

4 files changed

+57
-39
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.0.2
2+
## Description
3+
- Added package.json file
4+
- Compatibility with new Cordova path files
5+
- Removed hooks
6+
17
# 1.0.1
28
## Description
39
- iOS bug fixed

hooks/after_plugin_install/001_account_manager_settings.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "cordova-plugin-kunder-accountmanager",
3+
"version": "1.0.2",
4+
"description": "Use Android Account Manager and iOS Keychain to manage accounts of one user and share with other applications of the same vendor",
5+
"cordova": {
6+
"id": "cordova-plugin-kunder-accountmanager",
7+
"platforms": [
8+
"android",
9+
"ios"
10+
]
11+
},
12+
"devDependencies": {},
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/kunder-lab/cordova-plugin-kunder-accountmanager.git"
16+
},
17+
"keywords": [
18+
"cordova",
19+
"accountmanager",
20+
"android",
21+
"ios",
22+
"plugin",
23+
"ecosystem:cordova",
24+
"cordova-android"
25+
],
26+
"author": "Kunder",
27+
"license": "MIT",
28+
"bugs": {
29+
"url": "https://github.com/kunder-lab/cordova-plugin-kunder-accountmanager/issues"
30+
},
31+
"homepage": "https://github.com/kunder-lab/cordova-plugin-kunder-accountmanager#readme"
32+
}

plugin.xml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<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">
44
<name>AccountManagerPlugin</name>
55
<description>Account Manager cordova plugin for android and keychain for iOS</description>
66
<license>Apache 2.0</license>
@@ -10,6 +10,21 @@
1010
<clobbers target="window.AccountManager" />
1111
</js-module>
1212

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+
1328
<platform name="android">
1429
<config-file target="AndroidManifest.xml" parent="/*">
1530
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"></uses-permission>
@@ -42,10 +57,9 @@
4257
<resource-file src="src/android/res/xml/authenticator.xml" target="res/xml/authenticator.xml" />
4358
<resource-file src="src/android/res/drawable/acm_icon.png" target="res/drawable/acm_icon.png" />
4459

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>
4963
</platform>
5064

5165
<platform name="ios">

0 commit comments

Comments
 (0)