cordova-plugin-oauth 3.0.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/package.json +2 -2
- package/plugin.xml +4 -4
- package/src/android/OAuthPlugin.java +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
Copyright 2021 Ayogo Health Inc.
|
|
2
|
+
Copyright 2021-2022 Ayogo Health Inc.
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -29,6 +29,10 @@ falling back to their browser.
|
|
|
29
29
|
|
|
30
30
|
**Note:** This plugin might conflict with the Cordova In-App Browser plugin!
|
|
31
31
|
|
|
32
|
+
> ℹ️ **This plugin uses AndroidX!**
|
|
33
|
+
>
|
|
34
|
+
> Use version 3.x if you are building without AndroidX enabled.
|
|
35
|
+
|
|
32
36
|
|
|
33
37
|
Installation
|
|
34
38
|
------------
|
|
@@ -51,7 +55,7 @@ Supported Platforms
|
|
|
51
55
|
-------------------
|
|
52
56
|
|
|
53
57
|
* **iOS** (cordova-ios >= 6.1.0)
|
|
54
|
-
* **Android** (cordova-android >=
|
|
58
|
+
* **Android** (cordova-android >= 9.0.0)
|
|
55
59
|
|
|
56
60
|
|
|
57
61
|
Usage
|
|
@@ -107,6 +111,6 @@ Licence
|
|
|
107
111
|
-------
|
|
108
112
|
|
|
109
113
|
Released under the Apache 2.0 Licence.
|
|
110
|
-
Copyright © 2020 Ayogo Health Inc.
|
|
114
|
+
Copyright © 2020-2022 Ayogo Health Inc.
|
|
111
115
|
|
|
112
|
-
[coc]: https://github.com/AyogoHealth/cordova-plugin-oauth/blob/
|
|
116
|
+
[coc]: https://github.com/AyogoHealth/cordova-plugin-oauth/blob/main/CODE_OF_CONDUCT.md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-oauth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"author": "Ayogo Health Inc. <info@ayogo.com>",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Darryl Pogue <darryl@dpogue.ca>",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"engines": [
|
|
29
29
|
{
|
|
30
30
|
"name": "cordova-android",
|
|
31
|
-
"version": ">=
|
|
31
|
+
"version": ">= 9.0.0"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "cordova-ios",
|
package/plugin.xml
CHANGED
|
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
14
14
|
See the License for the specific language governing permissions and
|
|
15
15
|
limitations under the License.
|
|
16
16
|
-->
|
|
17
|
-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-oauth" version="
|
|
17
|
+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-oauth" version="4.0.0">
|
|
18
18
|
<name>cordova-plugin-oauth</name>
|
|
19
19
|
<description>Cordova plugin for performing OAuth login flows.</description>
|
|
20
20
|
<keywords>cordova,ios,android,oauth</keywords>
|
|
@@ -26,7 +26,7 @@ limitations under the License.
|
|
|
26
26
|
|
|
27
27
|
<engines>
|
|
28
28
|
<engine name="cordova-ios" version=">= 6.1.0" />
|
|
29
|
-
<engine name="cordova-android" version=">=
|
|
29
|
+
<engine name="cordova-android" version=">= 9.0.0" />
|
|
30
30
|
</engines>
|
|
31
31
|
|
|
32
32
|
<js-module src="www/oauth.js" name="OAuth">
|
|
@@ -82,8 +82,8 @@ limitations under the License.
|
|
|
82
82
|
|
|
83
83
|
<source-file src="src/android/OAuthPlugin.java" target-dir="src/com/ayogo/cordova/oauth" />
|
|
84
84
|
|
|
85
|
-
<preference name="ANDROID_SUPPORT_CUSTOM_TABS_VERSION" default="
|
|
85
|
+
<preference name="ANDROID_SUPPORT_CUSTOM_TABS_VERSION" default="1.3.0" />
|
|
86
86
|
|
|
87
|
-
<framework src="
|
|
87
|
+
<framework src="androidx.browser:browser:$ANDROID_SUPPORT_CUSTOM_TABS_VERSION" />
|
|
88
88
|
</platform>
|
|
89
89
|
</plugin>
|
|
@@ -23,7 +23,7 @@ import android.content.IntentFilter;
|
|
|
23
23
|
import android.content.pm.PackageManager;
|
|
24
24
|
import android.content.pm.ResolveInfo;
|
|
25
25
|
import android.net.Uri;
|
|
26
|
-
import
|
|
26
|
+
import androidx.browser.customtabs.CustomTabsIntent;
|
|
27
27
|
import android.text.TextUtils;
|
|
28
28
|
|
|
29
29
|
import java.util.ArrayList;
|