@capgo/capacitor-social-login 7.14.4 → 7.14.9
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/Package.swift +3 -3
- package/README.md +2 -2
- package/android/build.gradle +1 -1
- package/android/src/main/java/ee/forgr/capacitor/social/login/SocialLoginPlugin.java +2 -2
- package/ios/Sources/SocialLoginPlugin/GoogleProvider.swift +1 -2
- package/ios/Sources/SocialLoginPlugin/SocialLoginPlugin.swift +2 -2
- package/package.json +1 -1
package/Package.swift
CHANGED
|
@@ -10,13 +10,13 @@ let package = Package(
|
|
|
10
10
|
targets: ["SocialLoginPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
|
|
14
14
|
// FBSDKCoreKit and FBSDKLoginKit
|
|
15
|
-
.package(url: "https://github.com/facebook/facebook-ios-sdk.git", .upToNextMajor(from: "18.0.
|
|
15
|
+
.package(url: "https://github.com/facebook/facebook-ios-sdk.git", .upToNextMajor(from: "18.0.0")),
|
|
16
16
|
// Add Google Sign-In dependency
|
|
17
17
|
.package(url: "https://github.com/google/GoogleSignIn-iOS.git", .upToNextMajor(from: "9.0.0")),
|
|
18
18
|
// Alamofire
|
|
19
|
-
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.
|
|
19
|
+
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.9.0"))
|
|
20
20
|
],
|
|
21
21
|
targets: [
|
|
22
22
|
.target(
|
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
|
3
3
|
|
|
4
4
|
<div align="center">
|
|
5
|
-
<h2><a href="https://capgo.app/?ref=
|
|
6
|
-
<h2><a href="https://capgo.app/consulting/?ref=
|
|
5
|
+
<h2><a href="https://capgo.app/?ref=plugin_social_login"> ➡️ Get Instant updates for your App with Capgo</a></h2>
|
|
6
|
+
<h2><a href="https://capgo.app/consulting/?ref=plugin_social_login"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
9
|
## Fork Information
|
package/android/build.gradle
CHANGED
|
@@ -59,7 +59,7 @@ dependencies {
|
|
|
59
59
|
implementation 'com.google.android.gms:play-services-auth:21.4.0'
|
|
60
60
|
implementation "androidx.credentials:credentials-play-services-auth:1.5.0"
|
|
61
61
|
implementation "com.google.android.libraries.identity.googleid:googleid:1.1.1"
|
|
62
|
-
implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.
|
|
62
|
+
implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.5.0'
|
|
63
63
|
testImplementation "junit:junit:$junitVersion"
|
|
64
64
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
65
65
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -18,7 +18,7 @@ import org.json.JSONObject;
|
|
|
18
18
|
@CapacitorPlugin(name = "SocialLogin")
|
|
19
19
|
public class SocialLoginPlugin extends Plugin {
|
|
20
20
|
|
|
21
|
-
private final String
|
|
21
|
+
private final String pluginVersion = "7.14.9";
|
|
22
22
|
|
|
23
23
|
public static String LOG_TAG = "CapgoSocialLogin";
|
|
24
24
|
|
|
@@ -281,7 +281,7 @@ public class SocialLoginPlugin extends Plugin {
|
|
|
281
281
|
public void getPluginVersion(final PluginCall call) {
|
|
282
282
|
try {
|
|
283
283
|
final JSObject ret = new JSObject();
|
|
284
|
-
ret.put("version", this.
|
|
284
|
+
ret.put("version", this.pluginVersion);
|
|
285
285
|
call.resolve(ret);
|
|
286
286
|
} catch (final Exception e) {
|
|
287
287
|
call.reject("Could not get plugin version", e);
|
|
@@ -47,8 +47,7 @@ class GoogleProvider {
|
|
|
47
47
|
GIDSignIn.sharedInstance.signIn(
|
|
48
48
|
withPresenting: presentingVc,
|
|
49
49
|
hint: nil,
|
|
50
|
-
additionalScopes: payload["scopes"] as? [String] ?? self.defaultGrantedScopes
|
|
51
|
-
nonce: payload["nonce"] as? String
|
|
50
|
+
additionalScopes: payload["scopes"] as? [String] ?? self.defaultGrantedScopes
|
|
52
51
|
) { result, error in
|
|
53
52
|
if let error = error {
|
|
54
53
|
completion(.failure(error))
|
|
@@ -7,7 +7,7 @@ import Capacitor
|
|
|
7
7
|
*/
|
|
8
8
|
@objc(SocialLoginPlugin)
|
|
9
9
|
public class SocialLoginPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
|
-
private let
|
|
10
|
+
private let pluginVersion: String = "7.14.9"
|
|
11
11
|
public let identifier = "SocialLoginPlugin"
|
|
12
12
|
public let jsName = "SocialLogin"
|
|
13
13
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -26,7 +26,7 @@ public class SocialLoginPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
26
26
|
private let google = GoogleProvider()
|
|
27
27
|
|
|
28
28
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
29
|
-
call.resolve(["version": self.
|
|
29
|
+
call.resolve(["version": self.pluginVersion])
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@objc func initialize(_ call: CAPPluginCall) {
|