capacitor3-kakao-login 0.6.5 → 0.8.1

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.
@@ -11,14 +11,14 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '13.0'
14
+ s.ios.deployment_target = '15.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'KakaoSDKCommon', '2.22.0'
17
- s.dependency 'KakaoSDKAuth', '2.22.0'
18
- s.dependency 'KakaoSDKUser', '2.22.0'
19
- s.dependency 'KakaoSDKTalk', '2.22.0'
20
- s.dependency 'KakaoSDKShare', '2.22.0'
21
- s.dependency 'KakaoSDKTemplate', '2.22.0'
16
+ s.dependency 'KakaoSDKCommon'
17
+ s.dependency 'KakaoSDKAuth'
18
+ s.dependency 'KakaoSDKUser'
19
+ s.dependency 'KakaoSDKTalk'
20
+ s.dependency 'KakaoSDKShare'
21
+ s.dependency 'KakaoSDKTemplate'
22
22
 
23
23
  s.swift_version = '5.1'
24
24
  end
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # capacitor3-kakao-login
2
2
 
3
- This plugin is kakao login for capacitor5 even if it's name is capacitor3.
3
+ This plugin is kakao login for capacitor8 even if it's name is capacitor3.
4
4
 
5
5
  ## Install
6
6
 
@@ -87,9 +87,9 @@ npx cap sync
87
87
 
88
88
  ### iOS (Swift Package Manager)
89
89
 
90
- **Prerequisites**: Capacitor 6+
90
+ **Prerequisites**: Capacitor 8+
91
91
 
92
- If you are using Capacitor 6+, you can use Swift Package Manager to install this plugin.
92
+ If you are using Capacitor 8+, you can use Swift Package Manager to install this plugin.
93
93
  When you run `npx cap sync`, Capacitor should automatically detect `Package.swift` and configure the project to use SPM if your project is set up for it.
94
94
 
95
95
  If you are migrating from CocoaPods, please refer to the [Capacitor SPM Migration Guide](https://capacitorjs.com/docs/ios/spm).
@@ -11,7 +11,7 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.0.0'
14
+ classpath 'com.android.tools.build:gradle:8.7.2'
15
15
  }
16
16
  }
17
17
 
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
21
  namespace "com.fumi.capacitor3_kakao_login"
22
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
22
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
23
23
  defaultConfig {
24
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
24
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
26
26
  versionCode 1
27
27
  versionName "1.0"
28
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -15,29 +15,32 @@ import KakaoSDKTemplate
15
15
  UserApi.shared.loginWithKakaoTalk {(oauthToken, error) in
16
16
  if let error = error {
17
17
  print(error)
18
- // 카카오톡 로그인 실패 시 카카오계정 로그인 시도 (사용자 취소 등은 제외)
19
- // 여기서는 간단히 에러 리턴하지만, 필요 시 에러 타입 체크하여 fallback 가능
20
- call.reject(error.localizedDescription)
18
+ call.reject("error")
21
19
  }
22
20
  else {
21
+
23
22
  call.resolve([
24
23
  "value": oauthToken?.accessToken ?? ""
25
24
  ])
25
+
26
26
  }
27
27
  }
28
28
  }
29
29
  else{
30
+
30
31
  UserApi.shared.loginWithKakaoAccount {(oauthToken, error) in
31
32
  if let error = error {
32
33
  print(error)
33
- call.reject(error.localizedDescription)
34
+ call.reject("error")
34
35
  }
35
36
  else {
37
+
36
38
  call.resolve([
37
39
  "value": oauthToken?.accessToken ?? ""
38
40
  ])
39
41
  }
40
42
  }
43
+
41
44
  }
42
45
  }
43
46
 
@@ -6,16 +6,7 @@ import Capacitor
6
6
  * here: https://capacitorjs.com/docs/plugins/ios
7
7
  */
8
8
  @objc(Capacitor3KakaoLoginPlugin)
9
- public class Capacitor3KakaoLoginPlugin: CAPPlugin, CAPBridgedPlugin {
10
- public let identifier = "Capacitor3KakaoLoginPlugin"
11
- public let jsName = "Capacitor3KakaoLogin"
12
- public let pluginMethods: [CAPPluginMethod] = [
13
- CAPPluginMethod(name: "initializeKakao", returnType: CAPPluginReturnPromise),
14
- CAPPluginMethod(name: "kakaoLogin", returnType: CAPPluginReturnPromise),
15
- CAPPluginMethod(name: "kakaoLogout", returnType: CAPPluginReturnPromise),
16
- CAPPluginMethod(name: "kakaoUnlink", returnType: CAPPluginReturnPromise),
17
- CAPPluginMethod(name: "sendLinkFeed", returnType: CAPPluginReturnPromise)
18
- ]
9
+ public class Capacitor3KakaoLoginPlugin: CAPPlugin {
19
10
  private let implementation = Capacitor3KakaoLogin()
20
11
 
21
12
  //네이티브는 app delegate에서 초기화함
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "capacitor3-kakao-login",
3
- "version": "0.6.5",
4
- "description": "kakao login for capacitor5",
3
+ "version": "0.8.1",
4
+ "description": "kakao login for capacitor8",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "native"
30
30
  ],
31
31
  "engines": {
32
- "node": "20.16.0"
32
+ "node": "22.14.0"
33
33
  },
34
34
  "scripts": {
35
35
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
@@ -48,13 +48,14 @@
48
48
  "clean": "rimraf ./dist",
49
49
  "watch": "tsc --watch",
50
50
  "prepublishOnly": "npm run build",
51
- "release": "np --any-branch --no-tests && echo 'done'"
51
+ "release": "np --any-branch --no-tests && echo 'done'",
52
+ "build_custom_module": "npm run build"
52
53
  },
53
54
  "devDependencies": {
54
- "@capacitor/android": "6.0.0",
55
- "@capacitor/core": "6.0.0",
55
+ "@capacitor/android": "8.0.0",
56
+ "@capacitor/core": "8.0.0",
56
57
  "@capacitor/docgen": "^0.0.18",
57
- "@capacitor/ios": "6.0.0",
58
+ "@capacitor/ios": "8.0.0",
58
59
  "@ionic/eslint-config": "^0.3.0",
59
60
  "@ionic/prettier-config": "^1.0.1",
60
61
  "@ionic/swiftlint-config": "^1.1.2",
@@ -70,7 +71,7 @@
70
71
  "typescript": "~4.1.5"
71
72
  },
72
73
  "peerDependencies": {
73
- "@capacitor/core": "^6.0.0"
74
+ "@capacitor/core": "^8.0.0"
74
75
  },
75
76
  "prettier": "@ionic/prettier-config",
76
77
  "swiftlint": "@ionic/swiftlint-config",
package/Package.swift DELETED
@@ -1,32 +0,0 @@
1
- // swift-tools-version: 5.9
2
- import PackageDescription
3
-
4
- let package = Package(
5
- name: "Capacitor3KakaoLogin",
6
- platforms: [.iOS(.v13)],
7
- products: [
8
- .library(
9
- name: "Capacitor3KakaoLogin",
10
- targets: ["Capacitor3KakaoLoginPlugin"])
11
- ],
12
- dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "6.0.0"),
14
- .package(url: "https://github.com/kakao/kakao-ios-sdk", from: "2.23.0")
15
- ],
16
- targets: [
17
- .target(
18
- name: "Capacitor3KakaoLoginPlugin",
19
- dependencies: [
20
- .product(name: "Capacitor", package: "capacitor-swift-pm"),
21
- .product(name: "Cordova", package: "capacitor-swift-pm"),
22
- .product(name: "KakaoSDKCommon", package: "kakao-ios-sdk"),
23
- .product(name: "KakaoSDKAuth", package: "kakao-ios-sdk"),
24
- .product(name: "KakaoSDKUser", package: "kakao-ios-sdk"),
25
- .product(name: "KakaoSDKTalk", package: "kakao-ios-sdk"),
26
- .product(name: "KakaoSDKShare", package: "kakao-ios-sdk"),
27
- .product(name: "KakaoSDKTemplate", package: "kakao-ios-sdk")
28
- ],
29
- path: "ios/Plugin",
30
- exclude: ["Capacitor3KakaoLoginPlugin.m", "Capacitor3KakaoLoginPlugin.h"])
31
- ]
32
- )