@react-native-kakao/map 2.2.3 → 2.2.5

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.
@@ -4,21 +4,20 @@ import com.facebook.react.bridge.Promise
4
4
  import com.facebook.react.bridge.ReactApplicationContext
5
5
  import com.kakao.vectormap.KakaoMapSdk
6
6
 
7
- class RNCKakaoMapModule internal constructor(context: ReactApplicationContext) :
8
- KakaoMapSpec(context) {
9
- override fun getName(): String {
10
- return NAME
11
- }
7
+ class RNCKakaoMapModule internal constructor(
8
+ context: ReactApplicationContext,
9
+ ) : KakaoMapSpec(context) {
10
+ override fun getName(): String = NAME
12
11
 
13
- override fun initializeKakaoMapSDK(
14
- appKey: String,
15
- promise: Promise,
16
- ) {
17
- KakaoMapSdk.init(reactApplicationContext, appKey)
18
- promise.resolve(42)
19
- }
12
+ override fun initializeKakaoMapSDK(
13
+ appKey: String,
14
+ promise: Promise,
15
+ ) {
16
+ KakaoMapSdk.init(reactApplicationContext, appKey)
17
+ promise.resolve(42)
18
+ }
20
19
 
21
- companion object {
22
- const val NAME = "RNCKakaoMap"
23
- }
20
+ companion object {
21
+ const val NAME = "RNCKakaoMap"
24
22
  }
23
+ }
@@ -10,16 +10,15 @@ class RNCKakaoMapPackage : TurboReactPackage() {
10
10
  override fun getModule(
11
11
  name: String,
12
12
  reactContext: ReactApplicationContext,
13
- ): NativeModule? {
14
- return if (name == RNCKakaoMapModule.NAME) {
13
+ ): NativeModule? =
14
+ if (name == RNCKakaoMapModule.NAME) {
15
15
  RNCKakaoMapModule(reactContext)
16
16
  } else {
17
17
  null
18
18
  }
19
- }
20
19
 
21
- override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
22
- return ReactModuleInfoProvider {
20
+ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider =
21
+ ReactModuleInfoProvider {
23
22
  val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
24
23
  val isTurboModule: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
25
24
  moduleInfos[RNCKakaoMapModule.NAME] =
@@ -33,5 +32,4 @@ class RNCKakaoMapPackage : TurboReactPackage() {
33
32
  )
34
33
  moduleInfos
35
34
  }
36
- }
37
35
  }
@@ -2,5 +2,6 @@ package net.mjstudio.rnkakao.map
2
2
 
3
3
  import com.facebook.react.bridge.ReactApplicationContext
4
4
 
5
- abstract class KakaoMapSpec internal constructor(context: ReactApplicationContext) :
6
- NativeKakaoMapSpec(context)
5
+ abstract class KakaoMapSpec internal constructor(
6
+ context: ReactApplicationContext,
7
+ ) : NativeKakaoMapSpec(context)
@@ -4,10 +4,11 @@ import com.facebook.react.bridge.Promise
4
4
  import com.facebook.react.bridge.ReactApplicationContext
5
5
  import com.facebook.react.bridge.ReactContextBaseJavaModule
6
6
 
7
- abstract class KakaoMapSpec internal constructor(context: ReactApplicationContext) :
8
- ReactContextBaseJavaModule(context) {
9
- abstract fun initializeKakaoMapSDK(
10
- appKey: String,
11
- promise: Promise,
12
- )
13
- }
7
+ abstract class KakaoMapSpec internal constructor(
8
+ context: ReactApplicationContext,
9
+ ) : ReactContextBaseJavaModule(context) {
10
+ abstract fun initializeKakaoMapSDK(
11
+ appKey: String,
12
+ promise: Promise,
13
+ )
14
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-native-kakao/map",
3
3
  "description": "React Native Kakao Map SDK",
4
- "version": "2.2.3",
4
+ "version": "2.2.5",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
7
  "types": "lib/typescript/src/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "access": "public"
63
63
  },
64
64
  "devDependencies": {
65
- "@react-native-kakao/core": "2.2.3",
65
+ "@react-native-kakao/core": "2.2.5",
66
66
  "@types/invariant": "^2",
67
67
  "@types/jest": "^29.5.5",
68
68
  "@types/react": "^18.2.44",
@@ -74,7 +74,7 @@
74
74
  "typescript": "5.1.6"
75
75
  },
76
76
  "peerDependencies": {
77
- "@react-native-kakao/core": "2.2.3",
77
+ "@react-native-kakao/core": "2.2.5",
78
78
  "react": "*",
79
79
  "react-native": "*"
80
80
  },
@@ -113,5 +113,5 @@
113
113
  "dependencies": {
114
114
  "@mj-studio/js-util": "1.1.3"
115
115
  },
116
- "gitHead": "2ed9d6e300920b7056a8f539ab11a2592e0064a2"
116
+ "gitHead": "0ecf72a2948e71f464fbc27f7369f13b77916cbd"
117
117
  }