@package-kr/react-native-kakao-signin 1.0.1 → 1.0.4
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/README.md
CHANGED
|
@@ -233,17 +233,9 @@ const terms = await serviceTerms();
|
|
|
233
233
|
| `isEmailValid` | `boolean \| null` | 이메일 유효 여부 |
|
|
234
234
|
| `isEmailVerified` | `boolean \| null` | 이메일 인증 여부 |
|
|
235
235
|
| `isKorean` | `boolean \| null` | 한국인 여부 |
|
|
236
|
-
| `hasEmail` | `boolean \| null` | 이메일 보유 여부 |
|
|
237
|
-
| `hasPhoneNumber` | `boolean \| null` | 전화번호 보유 여부 |
|
|
238
|
-
| `hasBirthday` | `boolean \| null` | 생일 보유 여부 |
|
|
239
|
-
| `hasBirthyear` | `boolean \| null` | 출생 연도 보유 여부 |
|
|
240
|
-
| `hasAgeRange` | `boolean \| null` | 연령대 보유 여부 |
|
|
241
|
-
| `hasGender` | `boolean \| null` | 성별 보유 여부 |
|
|
242
236
|
| `isDefaultImage` | `boolean \| null` | 기본 프로필 이미지 여부 |
|
|
243
|
-
| `isDefaultNickname` | `boolean \| null` | 기본 닉네임 여부 |
|
|
244
237
|
| `connectedAt` | `string \| null` | 서비스 연결 시각 |
|
|
245
238
|
| `synchedAt` | `string \| null` | 카카오싱크 로그인 시각 |
|
|
246
|
-
| `isLeapMonth` | `boolean \| null` | 생일 윤달 여부 |
|
|
247
239
|
| `ci` | `string \| null` | 연계정보 |
|
|
248
240
|
| `ciAuthenticatedAt` | `string \| null` | CI 발급 시각 |
|
|
249
241
|
| `emailNeedsAgreement` | `boolean \| null` | 이메일 제공 동의 필요 여부 |
|
|
@@ -159,17 +159,9 @@ class RNKakaoSigninModule(
|
|
|
159
159
|
account?.isEmailValid?.let { profile.putBoolean("isEmailValid", it) }
|
|
160
160
|
account?.isEmailVerified?.let { profile.putBoolean("isEmailVerified", it) }
|
|
161
161
|
account?.isKorean?.let { profile.putBoolean("isKorean", it) }
|
|
162
|
-
account?.hasEmail?.let { profile.putBoolean("hasEmail", it) }
|
|
163
|
-
account?.hasPhoneNumber?.let { profile.putBoolean("hasPhoneNumber", it) }
|
|
164
|
-
account?.hasBirthday?.let { profile.putBoolean("hasBirthday", it) }
|
|
165
|
-
account?.hasBirthyear?.let { profile.putBoolean("hasBirthyear", it) }
|
|
166
|
-
account?.hasAgeRange?.let { profile.putBoolean("hasAgeRange", it) }
|
|
167
|
-
account?.hasGender?.let { profile.putBoolean("hasGender", it) }
|
|
168
162
|
detail?.isDefaultImage?.let { profile.putBoolean("isDefaultImage", it) }
|
|
169
|
-
detail?.isDefaultNickname?.let { profile.putBoolean("isDefaultNickname", it) }
|
|
170
163
|
profile.putString("connectedAt", formatDate(user.connectedAt))
|
|
171
164
|
profile.putString("synchedAt", formatDate(user.synchedAt))
|
|
172
|
-
account?.isLeapMonth?.let { profile.putBoolean("isLeapMonth", it) }
|
|
173
165
|
account?.ci?.let { profile.putString("ci", it) }
|
|
174
166
|
profile.putString("ciAuthenticatedAt", formatDate(account?.ciAuthenticatedAt))
|
|
175
167
|
account?.ageRangeNeedsAgreement?.let { profile.putBoolean("ageRangeNeedsAgreement", it) }
|
package/ios/RNKakaoLogin.swift
CHANGED
|
@@ -98,7 +98,7 @@ class RNKakaoSignin: NSObject {
|
|
|
98
98
|
else {
|
|
99
99
|
let account = user?.kakaoAccount
|
|
100
100
|
let profile = account?.profile
|
|
101
|
-
|
|
101
|
+
let result: [String: Any?] = [
|
|
102
102
|
"id": user?.id as Any,
|
|
103
103
|
"name": account?.name as Any,
|
|
104
104
|
"email": account?.email as Any,
|
|
@@ -114,17 +114,9 @@ class RNKakaoSignin: NSObject {
|
|
|
114
114
|
"isEmailValid": account?.isEmailValid as Any,
|
|
115
115
|
"isEmailVerified": account?.isEmailVerified as Any,
|
|
116
116
|
"isKorean": account?.isKorean as Any,
|
|
117
|
-
"hasEmail": account?.hasEmail as Any,
|
|
118
|
-
"hasPhoneNumber": account?.hasPhoneNumber as Any,
|
|
119
|
-
"hasBirthday": account?.hasBirthday as Any,
|
|
120
|
-
"hasBirthyear": account?.hasBirthyear as Any,
|
|
121
|
-
"hasAgeRange": account?.hasAgeRange as Any,
|
|
122
|
-
"hasGender": account?.hasGender as Any,
|
|
123
117
|
"isDefaultImage": profile?.isDefaultImage as Any,
|
|
124
|
-
"isDefaultNickname": profile?.isDefaultNickname as Any,
|
|
125
118
|
"connectedAt": user?.connectedAt as Any,
|
|
126
119
|
"synchedAt": user?.synchedAt as Any,
|
|
127
|
-
"isLeapMonth": account?.isLeapMonth as Any,
|
|
128
120
|
"ci": account?.ci as Any,
|
|
129
121
|
"ciAuthenticatedAt": account?.ciAuthenticatedAt as Any,
|
|
130
122
|
"ageRangeNeedsAgreement": account?.ageRangeNeedsAgreement as Any,
|
|
@@ -139,7 +131,8 @@ class RNKakaoSignin: NSObject {
|
|
|
139
131
|
"profileImageNeedsAgreement": account?.profileImageNeedsAgreement as Any,
|
|
140
132
|
"nameNeedsAgreement": account?.nameNeedsAgreement as Any,
|
|
141
133
|
"ciNeedsAgreement": account?.ciNeedsAgreement as Any,
|
|
142
|
-
]
|
|
134
|
+
]
|
|
135
|
+
resolve(result)
|
|
143
136
|
}
|
|
144
137
|
}
|
|
145
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@package-kr/react-native-kakao-signin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "React Native Kakao Login",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"android": "npm run android --workspace KakaoLoginExample",
|
|
9
9
|
"ios": "npm run ios --workspace KakaoLoginExample --",
|
|
10
10
|
"lint": "npm run lint --workspaces --if-present",
|
|
11
|
-
"release": "semantic-release",
|
|
12
11
|
"start": "npm run start --workspace KakaoLoginExample",
|
|
13
12
|
"test": "npm run test --workspaces --if-present"
|
|
14
13
|
},
|
|
@@ -50,15 +49,6 @@
|
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
"engines": {
|
|
53
|
-
"node": ">=
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
57
|
-
"@semantic-release/git": "^10.0.1",
|
|
58
|
-
"@semantic-release/github": "^12.0.6",
|
|
59
|
-
"@semantic-release/npm": "^13.1.5",
|
|
60
|
-
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
61
|
-
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
62
|
-
"semantic-release": "^25.0.3"
|
|
52
|
+
"node": ">= 24.14.1"
|
|
63
53
|
}
|
|
64
54
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -62,17 +62,9 @@ export type KakaoProfile = {
|
|
|
62
62
|
isEmailValid: boolean | null;
|
|
63
63
|
isEmailVerified: boolean | null;
|
|
64
64
|
isKorean: boolean | null;
|
|
65
|
-
hasEmail: boolean | null;
|
|
66
|
-
hasPhoneNumber: boolean | null;
|
|
67
|
-
hasBirthday: boolean | null;
|
|
68
|
-
hasBirthyear: boolean | null;
|
|
69
|
-
hasAgeRange: boolean | null;
|
|
70
|
-
hasGender: boolean | null;
|
|
71
65
|
isDefaultImage: boolean | null;
|
|
72
|
-
isDefaultNickname: boolean | null;
|
|
73
66
|
connectedAt: string | null;
|
|
74
67
|
synchedAt: string | null;
|
|
75
|
-
isLeapMonth: boolean | null;
|
|
76
68
|
ci: string | null;
|
|
77
69
|
ciAuthenticatedAt: string | null;
|
|
78
70
|
emailNeedsAgreement: boolean | null;
|