@react-native-kakao/user 1.6.1 → 1.6.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/README.md
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://rnkakao.dev">
|
|
3
|
+
<img width="160px" src="https://raw.githubusercontent.com/mym0404/image-archive/master/202404201234177.webp"><br/>
|
|
4
|
+
</a>
|
|
5
|
+
<h1 align="center">React Native Kakao Core</h1>
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://www.npmjs.com/package/@react-native-kakao/core"><img src="https://img.shields.io/npm/dm/@react-native-kakao/core.svg?style=flat-square" alt="NPM downloads"></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@react-native-kakao/core"><img src="https://img.shields.io/npm/v/@react-native-kakao/core.svg?style=flat-square" alt="NPM version"></a>
|
|
9
|
+
<a href="/LICENSE"><img src="https://img.shields.io/npm/l/@react-native-kakao/core.svg?style=flat-square" alt="License"></a>
|
|
10
|
+
<a href="https://github.com/lerna-lite/lerna-lite"><img src="https://img.shields.io/badge/maintained%20with-lerna--lite-e137ff?style=flat-square" alt="License"></a>
|
|
11
|
+
<h3 align="center">Native Kakao SDK All In One Solution</h3>
|
|
12
|
+
</p>
|
|
13
|
+
</p>
|
|
14
|
+
<a href="https://rnkakao.dev">Documentation</a>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Documentation
|
|
18
|
+
|
|
19
|
+
- [Quick Start](https://rnkakao.dev)
|
|
20
|
+
|
|
21
|
+
## Contributing
|
|
22
|
+
|
|
23
|
+
- [Contributing](https://github.com/mym0404/react-native-kakao/blob/main/CONTRIBUTING.md)
|
|
24
|
+
- [Issues](https://github.com/mym0404/react-native-kakao/issues)
|
|
25
|
+
- [PRs](https://github.com/mym0404/react-native-kakao/pulls)
|
|
26
|
+
- [Documentation](https://rnkakao.dev)
|
|
27
|
+
- [Code of Conduct](https://github.com/mym0404/react-native-kakao/blob/main/CODE_OF_CONDUCT.md)
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
- See [LICENSE](/LICENSE)
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
<p align="center">
|
|
36
|
+
<a href="https://mjstudio.net/">
|
|
37
|
+
<img width="75px" src="https://raw.githubusercontent.com/mym0404/image-archive/master/202404201239152.webp">
|
|
38
|
+
</a>
|
|
39
|
+
<p align="center">
|
|
40
|
+
Built and maintained by <a href="https://mjstudio.net/">MJ Studio</a>.
|
|
41
|
+
</p>
|
|
42
|
+
</p>
|
|
@@ -24,8 +24,8 @@ import net.mjstudio.rnkakao.core.util.pushMapList
|
|
|
24
24
|
import net.mjstudio.rnkakao.core.util.pushStringList
|
|
25
25
|
import net.mjstudio.rnkakao.core.util.putBooleanIfNotNull
|
|
26
26
|
import net.mjstudio.rnkakao.core.util.putDoubleIfNotNull
|
|
27
|
-
import net.mjstudio.rnkakao.core.util.putIntIfNotNull
|
|
28
27
|
import net.mjstudio.rnkakao.core.util.rejectWith
|
|
28
|
+
import net.mjstudio.rnkakao.core.util.unix
|
|
29
29
|
import java.util.Date
|
|
30
30
|
|
|
31
31
|
class RNCKakaoUserModule internal constructor(context: ReactApplicationContext) :
|
|
@@ -61,11 +61,11 @@ class RNCKakaoUserModule internal constructor(context: ReactApplicationContext)
|
|
|
61
61
|
putString("idToken", token.idToken)
|
|
62
62
|
putDouble(
|
|
63
63
|
"accessTokenExpiresAt",
|
|
64
|
-
token.accessTokenExpiresAt.
|
|
64
|
+
token.accessTokenExpiresAt.unix.toDouble(),
|
|
65
65
|
)
|
|
66
66
|
putDouble(
|
|
67
67
|
"refreshTokenExpiresAt",
|
|
68
|
-
token.refreshTokenExpiresAt.
|
|
68
|
+
token.refreshTokenExpiresAt.unix.toDouble(),
|
|
69
69
|
)
|
|
70
70
|
putDouble(
|
|
71
71
|
"accessTokenExpiresIn",
|
|
@@ -230,24 +230,17 @@ class RNCKakaoUserModule internal constructor(context: ReactApplicationContext)
|
|
|
230
230
|
promise.rejectWith(RNCKakaoResponseNotFoundException("serviceTerms"))
|
|
231
231
|
} else {
|
|
232
232
|
promise.resolve(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
putBoolean("revocable", term.revocable)
|
|
245
|
-
},
|
|
246
|
-
)
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
)
|
|
250
|
-
},
|
|
233
|
+
argArr().pushMapList(
|
|
234
|
+
serviceTerms.serviceTerms?.map { term ->
|
|
235
|
+
argMap().apply {
|
|
236
|
+
putString("tag", term.tag)
|
|
237
|
+
putDoubleIfNotNull("agreedAt", term.agreedAt?.unix?.toDouble())
|
|
238
|
+
putBoolean("agreed", term.agreed)
|
|
239
|
+
putBoolean("required", term.required)
|
|
240
|
+
putBoolean("revocable", term.revocable)
|
|
241
|
+
}
|
|
242
|
+
} ?: listOf(),
|
|
243
|
+
),
|
|
251
244
|
)
|
|
252
245
|
}
|
|
253
246
|
}
|
|
@@ -264,7 +257,7 @@ class RNCKakaoUserModule internal constructor(context: ReactApplicationContext)
|
|
|
264
257
|
} else {
|
|
265
258
|
promise.resolve(
|
|
266
259
|
argMap().apply {
|
|
267
|
-
|
|
260
|
+
putDoubleIfNotNull("userId", addrs.userId?.toDouble())
|
|
268
261
|
putBooleanIfNotNull("needsAgreement", addrs.needsAgreement)
|
|
269
262
|
putArray(
|
|
270
263
|
"shippingAddresses",
|
|
@@ -272,10 +265,10 @@ class RNCKakaoUserModule internal constructor(context: ReactApplicationContext)
|
|
|
272
265
|
pushMapList(
|
|
273
266
|
addrs.shippingAddresses?.map { addr ->
|
|
274
267
|
argMap().apply {
|
|
275
|
-
|
|
268
|
+
putDouble("id", addr.id.toDouble())
|
|
276
269
|
putString("name", addr.name)
|
|
277
270
|
putBoolean("isDefault", addr.isDefault)
|
|
278
|
-
putDoubleIfNotNull("updatedAt", addr.updatedAt?.
|
|
271
|
+
putDoubleIfNotNull("updatedAt", addr.updatedAt?.unix?.toDouble())
|
|
279
272
|
putString("type", addr.type?.name)
|
|
280
273
|
putString("baseAddress", addr.baseAddress)
|
|
281
274
|
putString("detailAddress", addr.detailAddress)
|
|
@@ -306,7 +299,7 @@ class RNCKakaoUserModule internal constructor(context: ReactApplicationContext)
|
|
|
306
299
|
} else {
|
|
307
300
|
promise.resolve(
|
|
308
301
|
argMap().apply {
|
|
309
|
-
|
|
302
|
+
putDoubleIfNotNull("id", user.id?.toDouble())
|
|
310
303
|
putString("name", user.kakaoAccount?.name)
|
|
311
304
|
|
|
312
305
|
putString("email", user.kakaoAccount?.email)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-kakao/user",
|
|
3
3
|
"description": "React Native Kakao User SDK",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.3",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/src/index.d.ts",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "jest",
|
|
32
32
|
"prepare": "husky",
|
|
33
33
|
"release": "./script/release.sh",
|
|
34
|
-
"codegen:android": "cd
|
|
35
|
-
"codegen:ios": "node
|
|
34
|
+
"codegen:android": "cd example/android && ./gradlew generateCodegenArtifactsFromSchema",
|
|
35
|
+
"codegen:ios": "node node_modules/react-native/scripts/generate-codegen-artifacts.js --path example/ --outputPath example/ios",
|
|
36
36
|
"codegen": "yarn codegen:android && yarn codegen:ios",
|
|
37
37
|
"prepack": "bob build",
|
|
38
38
|
"clean": "del-cli android/ lib"
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@react-native-kakao/core": "1.6.
|
|
65
|
+
"@react-native-kakao/core": "1.6.3",
|
|
66
66
|
"@types/invariant": "^2",
|
|
67
67
|
"@types/jest": "^29.5.5",
|
|
68
68
|
"@types/react": "^18.2.44",
|
|
69
69
|
"del-cli": "^5.1.0",
|
|
70
70
|
"jest": "^29.7.0",
|
|
71
71
|
"react": "18.2.0",
|
|
72
|
-
"react-native": "0.
|
|
72
|
+
"react-native": "0.74.0",
|
|
73
73
|
"react-native-builder-bob": "^0.20.0",
|
|
74
74
|
"typescript": "5.1.6"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@react-native-kakao/core": "1.6.
|
|
77
|
+
"@react-native-kakao/core": "1.6.3",
|
|
78
78
|
"react": "*",
|
|
79
79
|
"react-native": "*"
|
|
80
80
|
},
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"javaPackageName": "net.mjstudio.rnkakao.user"
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "029e997fe687bb4fde323d468075464d8e7e63d5",
|
|
114
114
|
"dependencies": {
|
|
115
115
|
"@mj-studio/js-util": "^1.0.34"
|
|
116
116
|
}
|