@capgo/capacitor-social-login 8.5.18 → 8.5.19

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.
@@ -24,7 +24,7 @@ import org.json.JSONObject;
24
24
  @CapacitorPlugin(name = "SocialLogin")
25
25
  public class SocialLoginPlugin extends Plugin {
26
26
 
27
- private final String pluginVersion = "8.5.18";
27
+ private final String pluginVersion = "8.5.19";
28
28
 
29
29
  public static String LOG_TAG = "CapgoSocialLogin";
30
30
  public HashMap<String, SocialProvider> socialProviderHashMap = new HashMap<>();
@@ -390,7 +390,7 @@ class OAuth2Provider: NSObject {
390
390
  let storedIdToken = loadTokens(for: providerId)?.idToken
391
391
  UserDefaults.standard.removeObject(forKey: tokenStorageKey(for: providerId))
392
392
  ensureDiscovered(providerId: providerId) { [weak self] res in
393
- guard let self = self else {
393
+ guard self != nil else {
394
394
  completion(.success(()))
395
395
  return
396
396
  }
@@ -23,7 +23,7 @@ enum PresentationWindowResolver {
23
23
  }
24
24
  }
25
25
 
26
- return preferredWindow(from: UIApplication.shared.windows)
26
+ return preferredWindow(from: scenes.flatMap { $0.windows })
27
27
  }
28
28
 
29
29
  private static func preferredWindow(from windows: [UIWindow]) -> UIWindow? {
@@ -16,7 +16,7 @@ import GoogleSignIn
16
16
  */
17
17
  @objc(SocialLoginPlugin)
18
18
  public class SocialLoginPlugin: CAPPlugin, CAPBridgedPlugin {
19
- private let pluginVersion: String = "8.5.18"
19
+ private let pluginVersion: String = "8.5.19"
20
20
  public let identifier = "SocialLoginPlugin"
21
21
  public let jsName = "SocialLogin"
22
22
  private static let userCancelledCode = "USER_CANCELLED"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-social-login",
3
- "version": "8.5.18",
3
+ "version": "8.5.19",
4
4
  "description": "All social logins in one plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -46,7 +46,7 @@
46
46
  "scripts": {
47
47
  "capacitor:sync:before": "node scripts/configure-dependencies.js",
48
48
  "verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
49
- "verify:ios": "xcodebuild -scheme CapgoCapacitorSocialLogin -destination generic/platform=iOS",
49
+ "verify:ios": "bash .github/scripts/verify-ios-plugin-build.sh",
50
50
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
51
51
  "verify:web": "bun run build",
52
52
  "lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",