@chuseok22/capacitor-kakao-login 0.1.1 → 0.1.3
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 +30 -0
- package/README.md +18 -0
- package/dist/esm/constants/version.js +1 -1
- package/dist/{plugin.esm.js → plugin.esm.mjs} +1 -1
- package/dist/plugin.esm.mjs.map +1 -0
- package/ios/Package.swift +3 -29
- package/package.json +11 -4
- package/dist/plugin.esm.js.map +0 -1
package/Package.swift
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// swift-tools-version: 5.9
|
|
2
|
+
import PackageDescription
|
|
3
|
+
|
|
4
|
+
let package = Package(
|
|
5
|
+
name: "KakaoLoginPlugin",
|
|
6
|
+
platforms: [.iOS(.v13)],
|
|
7
|
+
products: [
|
|
8
|
+
.library(
|
|
9
|
+
name: "KakaoLoginPlugin",
|
|
10
|
+
targets: ["KakaoLoginPlugin"]
|
|
11
|
+
)
|
|
12
|
+
],
|
|
13
|
+
dependencies: [
|
|
14
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
|
|
15
|
+
.package(url: "https://github.com/kakao/kakao-ios-sdk", from: "2.23.0"),
|
|
16
|
+
],
|
|
17
|
+
targets: [
|
|
18
|
+
.target(
|
|
19
|
+
name: "KakaoLoginPlugin",
|
|
20
|
+
dependencies: [
|
|
21
|
+
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
22
|
+
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
23
|
+
.product(name: "KakaoSDKAuth", package: "kakao-ios-sdk"),
|
|
24
|
+
.product(name: "KakaoSDKUser", package: "kakao-ios-sdk"),
|
|
25
|
+
],
|
|
26
|
+
// 루트 기준 상대 경로 — ios/ 디렉토리 내 소스 위치
|
|
27
|
+
path: "ios/Sources/KakaoLoginPlugin"
|
|
28
|
+
)
|
|
29
|
+
]
|
|
30
|
+
)
|
package/README.md
CHANGED
|
@@ -83,6 +83,24 @@ func application(_ app: UIApplication, open url: URL,
|
|
|
83
83
|
|
|
84
84
|
## Android 설정
|
|
85
85
|
|
|
86
|
+
### 0. Kotlin Gradle 플러그인 classpath 추가
|
|
87
|
+
|
|
88
|
+
`android/build.gradle`의 `buildscript` 블록에 Kotlin 플러그인 classpath를 추가합니다.
|
|
89
|
+
|
|
90
|
+
```groovy
|
|
91
|
+
buildscript {
|
|
92
|
+
repositories {
|
|
93
|
+
google()
|
|
94
|
+
mavenCentral()
|
|
95
|
+
}
|
|
96
|
+
dependencies {
|
|
97
|
+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.21'
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
> 이 단계가 없으면 `cap add android` 또는 `cap sync` 후 Gradle sync 오류가 발생합니다.
|
|
103
|
+
|
|
86
104
|
### 1. KakaoSDK 초기화 (`Application` 클래스)
|
|
87
105
|
|
|
88
106
|
`Application` 서브클래스를 생성하고 KakaoSDK를 초기화합니다.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const APP_VERSION = '0.1.
|
|
1
|
+
export const APP_VERSION = '0.1.3';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.esm.mjs","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\n// 플러그인 등록명은 iOS jsName 및 Android @CapacitorPlugin(name) 과 반드시 일치해야 한다.\nconst KakaoLogin = registerPlugin('KakaoLogin', {\n web: () => import('./web').then(m => new m.KakaoLoginWeb()),\n});\nexport * from './definitions';\nexport { KakaoLogin };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n// 카카오 로그인은 네이티브 앱 환경 전용이므로, 웹 구현체는 unimplemented 에러를 던진다.\nexport class KakaoLoginWeb extends WebPlugin {\n async login() {\n throw this.unimplemented('카카오 로그인은 네이티브 앱 환경에서만 지원됩니다.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":[],"mappings":";;AACA;AACK,MAAC,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AAC/D,CAAC;;ACHD;AACO,MAAM,aAAa,SAAS,SAAS,CAAC;AAC7C,IAAI,MAAM,KAAK,GAAG;AAClB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,8BAA8B,CAAC;AAChE,IAAI;AACJ;;;;;;;;;"}
|
package/ios/Package.swift
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let package = Package(
|
|
5
|
-
name: "KakaoLoginPlugin",
|
|
6
|
-
platforms: [.iOS(.v13)],
|
|
7
|
-
products: [
|
|
8
|
-
.library(
|
|
9
|
-
name: "KakaoLoginPlugin",
|
|
10
|
-
targets: ["KakaoLoginPlugin"]
|
|
11
|
-
)
|
|
12
|
-
],
|
|
13
|
-
dependencies: [
|
|
14
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "6.0.0"),
|
|
15
|
-
.package(url: "https://github.com/kakao/kakao-ios-sdk", from: "2.23.0"),
|
|
16
|
-
],
|
|
17
|
-
targets: [
|
|
18
|
-
.target(
|
|
19
|
-
name: "KakaoLoginPlugin",
|
|
20
|
-
dependencies: [
|
|
21
|
-
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
|
22
|
-
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
23
|
-
.product(name: "KakaoSDKAuth", package: "kakao-ios-sdk"),
|
|
24
|
-
.product(name: "KakaoSDKUser", package: "kakao-ios-sdk"),
|
|
25
|
-
],
|
|
26
|
-
path: "Sources/KakaoLoginPlugin"
|
|
27
|
-
)
|
|
28
|
-
]
|
|
29
|
-
)
|
|
1
|
+
// 이 파일은 더 이상 사용되지 않습니다.
|
|
2
|
+
// SPM 패키지 매니페스트는 프로젝트 루트의 Package.swift를 사용합니다.
|
|
3
|
+
// This file is intentionally left empty. See Package.swift at the project root.
|
package/package.json
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chuseok22/capacitor-kakao-login",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Capacitor plugin for Kakao social login (iOS & Android)",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
|
-
"module": "dist/plugin.esm.
|
|
6
|
+
"module": "dist/plugin.esm.mjs",
|
|
7
7
|
"types": "dist/esm/index.d.ts",
|
|
8
8
|
"unpkg": "dist/plugin.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/esm/index.d.ts",
|
|
12
|
+
"import": "./dist/plugin.esm.mjs",
|
|
13
|
+
"require": "./dist/plugin.cjs.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
9
16
|
"files": [
|
|
10
17
|
"dist/",
|
|
11
18
|
"ios/",
|
|
12
19
|
"android/",
|
|
20
|
+
"Package.swift",
|
|
13
21
|
"CapacitorKakaoLogin.podspec"
|
|
14
22
|
],
|
|
15
23
|
"author": "Baek Jihoon",
|
|
16
24
|
"license": "MIT",
|
|
17
|
-
"type": "module",
|
|
18
25
|
"repository": {
|
|
19
26
|
"type": "git",
|
|
20
27
|
"url": "https://github.com/chuseok22/capacitor-kakao-login.git"
|
|
@@ -29,7 +36,7 @@
|
|
|
29
36
|
"android"
|
|
30
37
|
],
|
|
31
38
|
"scripts": {
|
|
32
|
-
"build": "npm run clean && tsc && rollup -c rollup.config.
|
|
39
|
+
"build": "npm run clean && tsc && rollup -c rollup.config.mjs",
|
|
33
40
|
"clean": "rimraf ./dist",
|
|
34
41
|
"lint": "eslint . --ext ts",
|
|
35
42
|
"fmt": "prettier --write --parser typescript 'src/**/*.ts'",
|
package/dist/plugin.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\n// 플러그인 등록명은 iOS jsName 및 Android @CapacitorPlugin(name) 과 반드시 일치해야 한다.\nconst KakaoLogin = registerPlugin('KakaoLogin', {\n web: () => import('./web').then(m => new m.KakaoLoginWeb()),\n});\nexport * from './definitions';\nexport { KakaoLogin };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\n// 카카오 로그인은 네이티브 앱 환경 전용이므로, 웹 구현체는 unimplemented 에러를 던진다.\nexport class KakaoLoginWeb extends WebPlugin {\n async login() {\n throw this.unimplemented('카카오 로그인은 네이티브 앱 환경에서만 지원됩니다.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":[],"mappings":";;AACA;AACK,MAAC,UAAU,GAAG,cAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AAC/D,CAAC;;ACHD;AACO,MAAM,aAAa,SAAS,SAAS,CAAC;AAC7C,IAAI,MAAM,KAAK,GAAG;AAClB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,8BAA8B,CAAC;AAChE,IAAI;AACJ;;;;;;;;;"}
|