@capgo/capacitor-social-login 7.20.0-beta.3 → 8.1.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.
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.exclude_files = '**/node_modules/**/*', '**/examples/**/*'
15
- s.ios.deployment_target = '14.0'
15
+ s.ios.deployment_target = '15.0'
16
16
  s.dependency 'Capacitor'
17
17
  # Provider dependencies (conditionally included via hook script)
18
18
  # Hook script modifies these lines based on capacitor.config.ts
package/Package.swift CHANGED
@@ -3,14 +3,14 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapgoCapacitorSocialLogin",
6
- platforms: [.iOS(.v14)],
6
+ platforms: [.iOS(.v15)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapgoCapacitorSocialLogin",
10
10
  targets: ["SocialLoginPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0"),
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
14
14
  // FBSDKCoreKit and FBSDKLoginKit
15
15
  .package(url: "https://github.com/facebook/facebook-ios-sdk.git", .upToNextMajor(from: "18.0.0")),
16
16
  // Add Google Sign-In dependency
@@ -1,8 +1,8 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
6
 
7
7
  // Read provider configuration from gradle.properties (set by hook script)
8
8
  // These need to be at ext level so they can be used in sourceSets
@@ -15,18 +15,18 @@ buildscript {
15
15
  mavenCentral()
16
16
  }
17
17
  dependencies {
18
- classpath 'com.android.tools.build:gradle:8.7.2'
18
+ classpath 'com.android.tools.build:gradle:8.13.0'
19
19
  }
20
20
  }
21
21
 
22
22
  apply plugin: 'com.android.library'
23
23
 
24
24
  android {
25
- namespace "ee.forgr.capacitor.social.login"
26
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
25
+ namespace = "ee.forgr.capacitor.social.login"
26
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
27
27
  defaultConfig {
28
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
29
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
28
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
29
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
30
30
  versionCode 1
31
31
  versionName "1.0"
32
32
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -38,7 +38,7 @@ android {
38
38
  }
39
39
  }
40
40
  lintOptions {
41
- abortOnError false
41
+ abortOnError = false
42
42
  }
43
43
  compileOptions {
44
44
  sourceCompatibility JavaVersion.VERSION_21
@@ -7,10 +7,10 @@ import android.content.Intent;
7
7
  * This is used when Facebook login is disabled to allow compilation without the Facebook SDK.
8
8
  */
9
9
  public interface CallbackManager {
10
-
11
10
  boolean onActivityResult(int requestCode, int resultCode, Intent data);
12
11
 
13
12
  class Factory {
13
+
14
14
  public static CallbackManager create() {
15
15
  return new CallbackManager() {
16
16
  @Override
@@ -14,6 +14,7 @@ public class GraphResponse {
14
14
  }
15
15
 
16
16
  public static class FacebookRequestError {
17
+
17
18
  public String getErrorMessage() {
18
19
  return "Facebook SDK is not available (stub)";
19
20
  }
@@ -25,11 +25,20 @@ public class LoginManager {
25
25
  // Stub - no-op
26
26
  }
27
27
 
28
- public void logIn(ActivityResultRegistryOwner activityResultRegistryOwner, CallbackManager callbackManager, Collection<String> permissions) {
28
+ public void logIn(
29
+ ActivityResultRegistryOwner activityResultRegistryOwner,
30
+ CallbackManager callbackManager,
31
+ Collection<String> permissions
32
+ ) {
29
33
  // Stub - no-op
30
34
  }
31
35
 
32
- public void logIn(ActivityResultRegistryOwner activityResultRegistryOwner, CallbackManager callbackManager, Collection<String> permissions, String nonce) {
36
+ public void logIn(
37
+ ActivityResultRegistryOwner activityResultRegistryOwner,
38
+ CallbackManager callbackManager,
39
+ Collection<String> permissions,
40
+ String nonce
41
+ ) {
33
42
  // Stub - no-op
34
43
  }
35
44
 
@@ -20,6 +20,7 @@ public class LoginResult {
20
20
  }
21
21
 
22
22
  public static class AuthenticationToken {
23
+
23
24
  public String getToken() {
24
25
  return "";
25
26
  }
@@ -19,7 +19,7 @@ import org.json.JSONObject;
19
19
  @CapacitorPlugin(name = "SocialLogin")
20
20
  public class SocialLoginPlugin extends Plugin {
21
21
 
22
- private final String pluginVersion = "7.20.0";
22
+ private final String pluginVersion = "8.1.0";
23
23
 
24
24
  public static String LOG_TAG = "CapgoSocialLogin";
25
25
 
@@ -15,7 +15,7 @@ import GoogleSignIn
15
15
  */
16
16
  @objc(SocialLoginPlugin)
17
17
  public class SocialLoginPlugin: CAPPlugin, CAPBridgedPlugin {
18
- private let pluginVersion: String = "7.20.0"
18
+ private let pluginVersion: String = "8.1.0"
19
19
  public let identifier = "SocialLoginPlugin"
20
20
  public let jsName = "SocialLogin"
21
21
  public let pluginMethods: [CAPPluginMethod] = [
@@ -599,12 +599,16 @@ public class SocialLoginPlugin: CAPPlugin, CAPBridgedPlugin {
599
599
  "familyName": appleResponse.profile.familyName ?? ""
600
600
  ]
601
601
 
602
- let appleResult: [String: Any] = [
602
+ var appleResult: [String: Any] = [
603
603
  "accessToken": accessTokenObject ?? NSNull(),
604
604
  "profile": profileObject,
605
605
  "idToken": appleResponse.idToken ?? ""
606
606
  ]
607
607
 
608
+ if let authorizationCode = appleResponse.authorizationCode {
609
+ appleResult["authorizationCode"] = authorizationCode
610
+ }
611
+
608
612
  call.resolve([
609
613
  "provider": "apple",
610
614
  "result": appleResult
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-social-login",
3
- "version": "7.20.0-beta.3",
3
+ "version": "8.1.0",
4
4
  "description": "All social logins in one plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -59,25 +59,25 @@
59
59
  "prepublishOnly": "npm run build"
60
60
  },
61
61
  "devDependencies": {
62
- "@capacitor/android": "^7.0.0",
63
- "@capacitor/docgen": "^0.3.0",
64
- "@capacitor/ios": "^7.0.0",
62
+ "@capacitor/android": "^8.0.0",
63
+ "@capacitor/docgen": "^0.3.1",
64
+ "@capacitor/ios": "^8.0.0",
65
65
  "@ionic/eslint-config": "^0.4.0",
66
66
  "@ionic/prettier-config": "^4.0.0",
67
67
  "@ionic/swiftlint-config": "^2.0.0",
68
68
  "@types/google.accounts": "^0.0.18",
69
- "@types/node": "^22.10.1",
70
- "eslint": "^8.57.0",
69
+ "@types/node": "^24.10.1",
70
+ "eslint": "^8.57.1",
71
71
  "eslint-plugin-import": "^2.31.0",
72
- "prettier": "^3.4.2",
73
- "prettier-plugin-java": "^2.6.6",
74
- "rimraf": "^6.0.1",
75
- "rollup": "^4.34.0",
72
+ "prettier": "^3.6.2",
73
+ "prettier-plugin-java": "^2.7.7",
74
+ "rimraf": "^6.1.0",
75
+ "rollup": "^4.53.2",
76
76
  "swiftlint": "^2.0.0",
77
- "typescript": "5.9.3"
77
+ "typescript": "^5.9.3"
78
78
  },
79
79
  "peerDependencies": {
80
- "@capacitor/core": ">=7.0.0"
80
+ "@capacitor/core": ">=8.0.0"
81
81
  },
82
82
  "prettier": "@ionic/prettier-config",
83
83
  "swiftlint": "@ionic/swiftlint-config",