@react-native-kakao/map 2.2.6 → 3.2.0

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.
Files changed (165) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +5 -38
  3. package/RNCKakaoMap.podspec +16 -52
  4. package/android/build.gradle +12 -107
  5. package/android/consumer-rules.pro +2 -0
  6. package/android/src/main/AndroidManifest.xml +3 -1
  7. package/android/src/main/java/net/mjstudio/rnkakao/map/CameraOptions.kt +61 -0
  8. package/android/src/main/java/net/mjstudio/rnkakao/map/KakaoMapModule.kt +131 -0
  9. package/android/src/main/java/net/mjstudio/rnkakao/map/KakaoMapView.kt +1257 -0
  10. package/android/src/main/java/net/mjstudio/rnkakao/map/MapCameraCommands.kt +306 -0
  11. package/android/src/main/java/net/mjstudio/rnkakao/map/MapDimScreen.kt +431 -0
  12. package/android/src/main/java/net/mjstudio/rnkakao/map/MapGui.kt +899 -0
  13. package/android/src/main/java/net/mjstudio/rnkakao/map/MapImageLoader.kt +232 -0
  14. package/android/src/main/java/net/mjstudio/rnkakao/map/MapLabels.kt +1572 -0
  15. package/android/src/main/java/net/mjstudio/rnkakao/map/MapOptions.kt +360 -0
  16. package/android/src/main/java/net/mjstudio/rnkakao/map/MapRoutes.kt +805 -0
  17. package/android/src/main/java/net/mjstudio/rnkakao/map/MapShapes.kt +1096 -0
  18. package/android/src/main/java/net/mjstudio/rnkakao/map/MapUtilities.kt +495 -0
  19. package/expo-module.config.json +5 -0
  20. package/ios/CameraOptions.swift +41 -0
  21. package/ios/KakaoMapModule.swift +204 -0
  22. package/ios/KakaoMapView.swift +1018 -0
  23. package/ios/MapCameraCommands.swift +451 -0
  24. package/ios/MapDimScreen.swift +463 -0
  25. package/ios/MapGui.swift +1099 -0
  26. package/ios/MapImageLoader.swift +177 -0
  27. package/ios/MapLabels.swift +1676 -0
  28. package/ios/MapOptions.swift +374 -0
  29. package/ios/MapRoutes.swift +903 -0
  30. package/ios/MapShapes.swift +1294 -0
  31. package/ios/MapUnits.swift +20 -0
  32. package/ios/MapUtilities.swift +365 -0
  33. package/lib/commonjs/index.js +180 -29
  34. package/lib/commonjs/index.js.map +1 -1
  35. package/lib/commonjs/index.web.js +18 -0
  36. package/lib/commonjs/index.web.js.map +1 -0
  37. package/lib/commonjs/package.json +1 -0
  38. package/lib/commonjs/types-assets.js +2 -0
  39. package/lib/commonjs/types-assets.js.map +1 -0
  40. package/lib/commonjs/types-camera.js +6 -0
  41. package/lib/commonjs/types-camera.js.map +1 -0
  42. package/lib/commonjs/types-dim.js +6 -0
  43. package/lib/commonjs/types-dim.js.map +1 -0
  44. package/lib/commonjs/types-gui.js +6 -0
  45. package/lib/commonjs/types-gui.js.map +1 -0
  46. package/lib/commonjs/types-labels.js +6 -0
  47. package/lib/commonjs/types-labels.js.map +1 -0
  48. package/lib/commonjs/types-routes.js +6 -0
  49. package/lib/commonjs/types-routes.js.map +1 -0
  50. package/lib/commonjs/types-shapes.js +6 -0
  51. package/lib/commonjs/types-shapes.js.map +1 -0
  52. package/lib/commonjs/types-utilities.js +6 -0
  53. package/lib/commonjs/types-utilities.js.map +1 -0
  54. package/lib/commonjs/types.js +6 -0
  55. package/lib/commonjs/types.js.map +1 -0
  56. package/lib/module/index.js +180 -22
  57. package/lib/module/index.js.map +1 -1
  58. package/lib/module/index.web.js +13 -0
  59. package/lib/module/index.web.js.map +1 -0
  60. package/lib/module/types-assets.js +2 -0
  61. package/lib/module/types-assets.js.map +1 -0
  62. package/lib/module/types-camera.js +4 -0
  63. package/lib/module/types-camera.js.map +1 -0
  64. package/lib/module/types-dim.js +4 -0
  65. package/lib/module/types-dim.js.map +1 -0
  66. package/lib/module/types-gui.js +4 -0
  67. package/lib/module/types-gui.js.map +1 -0
  68. package/lib/module/types-labels.js +4 -0
  69. package/lib/module/types-labels.js.map +1 -0
  70. package/lib/module/types-routes.js +4 -0
  71. package/lib/module/types-routes.js.map +1 -0
  72. package/lib/module/types-shapes.js +4 -0
  73. package/lib/module/types-shapes.js.map +1 -0
  74. package/lib/module/types-utilities.js +4 -0
  75. package/lib/module/types-utilities.js.map +1 -0
  76. package/lib/module/types.js +4 -0
  77. package/lib/module/types.js.map +1 -0
  78. package/lib/typescript/src/index.d.ts +59 -9
  79. package/lib/typescript/src/index.d.ts.map +1 -1
  80. package/lib/typescript/src/types-assets.d.ts +9 -0
  81. package/lib/typescript/src/types-assets.d.ts.map +1 -0
  82. package/lib/typescript/src/types-camera.d.ts +123 -0
  83. package/lib/typescript/src/types-camera.d.ts.map +1 -0
  84. package/lib/typescript/src/types-dim.d.ts +54 -0
  85. package/lib/typescript/src/types-dim.d.ts.map +1 -0
  86. package/lib/typescript/src/types-gui.d.ts +189 -0
  87. package/lib/typescript/src/types-gui.d.ts.map +1 -0
  88. package/lib/typescript/src/types-labels.d.ts +246 -0
  89. package/lib/typescript/src/types-labels.d.ts.map +1 -0
  90. package/lib/typescript/src/types-routes.d.ts +162 -0
  91. package/lib/typescript/src/types-routes.d.ts.map +1 -0
  92. package/lib/typescript/src/types-shapes.d.ts +253 -0
  93. package/lib/typescript/src/types-shapes.d.ts.map +1 -0
  94. package/lib/typescript/src/types-utilities.d.ts +130 -0
  95. package/lib/typescript/src/types-utilities.d.ts.map +1 -0
  96. package/lib/typescript/src/types.d.ts +222 -0
  97. package/lib/typescript/src/types.d.ts.map +1 -0
  98. package/package.json +24 -77
  99. package/src/index.tsx +322 -0
  100. package/src/index.web.tsx +46 -0
  101. package/src/types-assets.ts +8 -0
  102. package/src/types-camera.ts +97 -0
  103. package/src/types-dim.ts +54 -0
  104. package/src/types-gui.ts +171 -0
  105. package/src/types-labels.ts +207 -0
  106. package/src/types-routes.ts +118 -0
  107. package/src/types-shapes.ts +244 -0
  108. package/src/types-utilities.ts +115 -0
  109. package/src/types.ts +223 -0
  110. package/android/gradle.properties +0 -1
  111. package/android/src/main/AndroidManifestNew.xml +0 -2
  112. package/android/src/main/java/net/mjstudio/rnkakao/map/RNCKakaoMapModule.kt +0 -25
  113. package/android/src/main/java/net/mjstudio/rnkakao/map/RNCKakaoMapPackage.kt +0 -35
  114. package/android/src/newarch/KakaoMapSpec.kt +0 -7
  115. package/android/src/oldarch/KakaoMapSpec.kt +0 -14
  116. package/ios/Component/Map/RNCKakaoMapView.h +0 -23
  117. package/ios/Component/Map/RNCKakaoMapView.mm +0 -209
  118. package/ios/Component/Map/RNCKakaoMapViewManager.mm +0 -19
  119. package/ios/NativeModule/RNCKakaoMap.h +0 -7
  120. package/ios/NativeModule/RNCKakaoMap.mm +0 -19
  121. package/ios/NativeModule/RNCKakaoMapManager.swift +0 -7
  122. package/ios/Util/Util.h +0 -97
  123. package/lib/commonjs/component/KakaoMapView.js +0 -54
  124. package/lib/commonjs/component/KakaoMapView.js.map +0 -1
  125. package/lib/commonjs/spec/NativeKakaoMap.js +0 -9
  126. package/lib/commonjs/spec/NativeKakaoMap.js.map +0 -1
  127. package/lib/commonjs/spec/RNCKakaoMapViewNativeComponent.js +0 -15
  128. package/lib/commonjs/spec/RNCKakaoMapViewNativeComponent.js.map +0 -1
  129. package/lib/commonjs/type/type.js +0 -2
  130. package/lib/commonjs/type/type.js.map +0 -1
  131. package/lib/commonjs/util/Const.js +0 -14
  132. package/lib/commonjs/util/Const.js.map +0 -1
  133. package/lib/commonjs/util/Util.js +0 -15
  134. package/lib/commonjs/util/Util.js.map +0 -1
  135. package/lib/module/component/KakaoMapView.js +0 -48
  136. package/lib/module/component/KakaoMapView.js.map +0 -1
  137. package/lib/module/spec/NativeKakaoMap.js +0 -3
  138. package/lib/module/spec/NativeKakaoMap.js.map +0 -1
  139. package/lib/module/spec/RNCKakaoMapViewNativeComponent.js +0 -10
  140. package/lib/module/spec/RNCKakaoMapViewNativeComponent.js.map +0 -1
  141. package/lib/module/type/type.js +0 -2
  142. package/lib/module/type/type.js.map +0 -1
  143. package/lib/module/util/Const.js +0 -8
  144. package/lib/module/util/Const.js.map +0 -1
  145. package/lib/module/util/Util.js +0 -9
  146. package/lib/module/util/Util.js.map +0 -1
  147. package/lib/typescript/src/component/KakaoMapView.d.ts +0 -25
  148. package/lib/typescript/src/component/KakaoMapView.d.ts.map +0 -1
  149. package/lib/typescript/src/spec/NativeKakaoMap.d.ts +0 -7
  150. package/lib/typescript/src/spec/NativeKakaoMap.d.ts.map +0 -1
  151. package/lib/typescript/src/spec/RNCKakaoMapViewNativeComponent.d.ts +0 -32
  152. package/lib/typescript/src/spec/RNCKakaoMapViewNativeComponent.d.ts.map +0 -1
  153. package/lib/typescript/src/type/type.d.ts +0 -8
  154. package/lib/typescript/src/type/type.d.ts.map +0 -1
  155. package/lib/typescript/src/util/Const.d.ts +0 -8
  156. package/lib/typescript/src/util/Const.d.ts.map +0 -1
  157. package/lib/typescript/src/util/Util.d.ts +0 -3
  158. package/lib/typescript/src/util/Util.d.ts.map +0 -1
  159. package/src/component/KakaoMapView.tsx +0 -82
  160. package/src/index.ts +0 -43
  161. package/src/spec/NativeKakaoMap.ts +0 -8
  162. package/src/spec/RNCKakaoMapViewNativeComponent.ts +0 -38
  163. package/src/type/type.ts +0 -7
  164. package/src/util/Const.ts +0 -7
  165. package/src/util/Util.ts +0 -11
@@ -1,7 +0,0 @@
1
- import type { TurboModule } from 'react-native';
2
- export interface Spec extends TurboModule {
3
- initializeKakaoMapSDK(appKey: string): Promise<void>;
4
- }
5
- declare const _default: Spec;
6
- export default _default;
7
- //# sourceMappingURL=NativeKakaoMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeKakaoMap.d.ts","sourceRoot":"","sources":["../../../../src/spec/NativeKakaoMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;;AAED,wBAAqE"}
@@ -1,32 +0,0 @@
1
- /// <reference types="react-native/types/modules/codegen" />
2
- import type { ViewProps } from 'react-native';
3
- import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
4
- interface Camera {
5
- lat: Double;
6
- lng: Double;
7
- tilt?: Double;
8
- rotation?: Double;
9
- zoomLevel?: Double;
10
- }
11
- interface Props extends ViewProps {
12
- buildingScale?: Double;
13
- overlays?: ReadonlyArray<string>;
14
- poiEnabled?: boolean;
15
- poiClickable?: boolean;
16
- poiScale?: string;
17
- language?: string;
18
- baseMapType?: string;
19
- camera?: Camera;
20
- initialCamera?: Camera;
21
- cameraMinLevel?: Double;
22
- cameraMaxLevel?: Double;
23
- cameraAnimationDuration?: Double;
24
- isShowScaleBar?: boolean;
25
- isShowCompass?: boolean;
26
- }
27
- interface NativeCommands {
28
- }
29
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<Props>;
30
- export default _default;
31
- export declare const Commands: NativeCommands;
32
- //# sourceMappingURL=RNCKakaoMapViewNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNCKakaoMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/spec/RNCKakaoMapViewNativeComponent.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAIxE,UAAU,MAAM;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,UAAU,KAAM,SAAQ,SAAS;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAID,UAAU,cAAc;CAAG;;AAE3B,wBAAgE;AAChE,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC"}
@@ -1,8 +0,0 @@
1
- export interface Camera {
2
- lat: number;
3
- lng: number;
4
- tilt?: number;
5
- rotation?: number;
6
- zoomLevel?: number;
7
- }
8
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/type/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,8 +0,0 @@
1
- export declare const Const: {
2
- /**
3
- * ios: codegen generate struct number fields with default value zero.
4
- * in some cases, we should check it is invalid value instead of checking is zero.
5
- */
6
- nullNumber: number;
7
- };
8
- //# sourceMappingURL=Const.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Const.d.ts","sourceRoot":"","sources":["../../../../src/util/Const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;IAChB;;;OAGG;;CAEsC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Camera } from '../type/type';
2
- export declare const nullCamera: Required<Camera>;
3
- //# sourceMappingURL=Util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../../src/util/Util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAI3C,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAMvC,CAAC"}
@@ -1,82 +0,0 @@
1
- import { type ForwardedRef, forwardRef, useImperativeHandle, useMemo } from 'react';
2
- import type { ViewProps } from 'react-native';
3
- import { kAssert } from '@react-native-kakao/core';
4
-
5
- import NativeKakaoMapComponent from '../spec/RNCKakaoMapViewNativeComponent';
6
- import type { Camera } from '../type/type';
7
- import { Const } from '../util/Const';
8
- import { nullCamera } from '../util/Util';
9
-
10
- interface KakaoMapProps extends ViewProps {
11
- baseMapType?: 'map' | 'skyview';
12
- overlays?: ('hill_shading' | 'roadview_line' | 'bicycle_road' | 'hybrid')[];
13
- camera?: Camera;
14
- initialCamera?: Camera;
15
- cameraMinLevel?: number;
16
- cameraMaxLevel?: number;
17
- cameraAnimationDuration?: number;
18
-
19
- buildingScale?: number;
20
- poiEnabled?: boolean;
21
- poiClickable?: boolean;
22
- poiScale?: 'small' | 'regular' | 'large' | 'xlarge';
23
- language?: 'ko' | 'en';
24
-
25
- isShowScaleBar?: boolean;
26
- isShowCompass?: boolean;
27
- }
28
- interface KakaoMapRef {}
29
-
30
- const KakaoMapView = forwardRef(
31
- (
32
- {
33
- baseMapType = 'map',
34
- buildingScale = 0.5,
35
- poiEnabled = true,
36
- poiClickable = true,
37
- poiScale = 'regular',
38
- language,
39
- overlays,
40
- camera: cameraProp,
41
- cameraMinLevel = Const.nullNumber,
42
- cameraMaxLevel = Const.nullNumber,
43
- cameraAnimationDuration = 0,
44
- isShowScaleBar = true,
45
- isShowCompass = true,
46
- ...rest
47
- }: KakaoMapProps,
48
- ref: ForwardedRef<KakaoMapRef>,
49
- ) => {
50
- kAssert(
51
- buildingScale >= 0 && buildingScale <= 1,
52
- '[KakaoMapView] buildingScale range should be 0..1',
53
- );
54
- useImperativeHandle(ref, () => ({}), []);
55
-
56
- const camera: Camera = useMemo(() => {
57
- return { ...nullCamera, ...cameraProp };
58
- }, [cameraProp]);
59
-
60
- return (
61
- <NativeKakaoMapComponent
62
- baseMapType={baseMapType}
63
- buildingScale={buildingScale}
64
- camera={camera}
65
- cameraMinLevel={cameraMinLevel}
66
- cameraMaxLevel={cameraMaxLevel}
67
- cameraAnimationDuration={cameraAnimationDuration}
68
- poiEnabled={poiEnabled}
69
- poiClickable={poiClickable}
70
- poiScale={poiScale}
71
- language={language}
72
- overlays={overlays}
73
- isShowScaleBar={isShowScaleBar}
74
- isShowCompass={isShowCompass}
75
- {...rest}
76
- />
77
- );
78
- },
79
- );
80
-
81
- export { KakaoMapView };
82
- export type { KakaoMapProps, KakaoMapRef };
package/src/index.ts DELETED
@@ -1,43 +0,0 @@
1
- import { Platform } from 'react-native';
2
-
3
- import type { KakaoMapProps, KakaoMapRef } from './component/KakaoMapView';
4
- import { KakaoMapView } from './component/KakaoMapView';
5
- import type { Spec } from './spec/NativeKakaoMap';
6
-
7
- const LINKING_ERROR =
8
- "The package '@react-native-kakao/map' doesn't seem to be linked. Make sure: \n\n" +
9
- Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
10
- '- You rebuilt the app after installing the package\n' +
11
- '- You are not using Expo Go\n';
12
-
13
- const isTurboModuleEnabled = global.__turboModuleProxy != null;
14
-
15
- if (!isTurboModuleEnabled) {
16
- throw new Error('The package @react-native-kakao/map only supports fabric');
17
- }
18
-
19
- const Module = require('./spec/NativeKakaoMap').default;
20
-
21
- const Native: Spec = Module
22
- ? Module
23
- : new Proxy(
24
- {},
25
- {
26
- get() {
27
- throw new Error(LINKING_ERROR);
28
- },
29
- },
30
- );
31
- // todo remove
32
- console.log(Native);
33
-
34
- const KakaoMap = {
35
- initializeKakaoMapSDK: async (appKey: string) => {
36
- return await Native.initializeKakaoMapSDK(appKey);
37
- },
38
- };
39
- export default KakaoMapView;
40
- export type KakaoMapAPI = typeof KakaoMap;
41
-
42
- export { KakaoMapView, KakaoMap };
43
- export type { KakaoMapProps, KakaoMapRef };
@@ -1,8 +0,0 @@
1
- import type { TurboModule } from 'react-native';
2
- import { TurboModuleRegistry } from 'react-native';
3
-
4
- export interface Spec extends TurboModule {
5
- initializeKakaoMapSDK(appKey: string): Promise<void>;
6
- }
7
-
8
- export default TurboModuleRegistry.getEnforcing<Spec>('RNCKakaoMap');
@@ -1,38 +0,0 @@
1
- import type { ViewProps } from 'react-native';
2
- import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
3
- import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
-
6
- interface Camera {
7
- lat: Double;
8
- lng: Double;
9
- tilt?: Double;
10
- rotation?: Double;
11
- zoomLevel?: Double;
12
- }
13
- interface Props extends ViewProps {
14
- buildingScale?: Double;
15
- overlays?: ReadonlyArray<string>;
16
- poiEnabled?: boolean;
17
- poiClickable?: boolean;
18
- poiScale?: string;
19
- language?: string;
20
- baseMapType?: string;
21
- camera?: Camera;
22
- initialCamera?: Camera;
23
- cameraMinLevel?: Double;
24
- cameraMaxLevel?: Double;
25
- cameraAnimationDuration?: Double;
26
-
27
- isShowScaleBar?: boolean;
28
- isShowCompass?: boolean;
29
- }
30
-
31
- // type ComponentType = HostComponent<Props>;
32
-
33
- interface NativeCommands {}
34
-
35
- export default codegenNativeComponent<Props>('RNCKakaoMapView');
36
- export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
37
- supportedCommands: [],
38
- });
package/src/type/type.ts DELETED
@@ -1,7 +0,0 @@
1
- export interface Camera {
2
- lat: number;
3
- lng: number;
4
- tilt?: number;
5
- rotation?: number;
6
- zoomLevel?: number;
7
- }
package/src/util/Const.ts DELETED
@@ -1,7 +0,0 @@
1
- export const Const = {
2
- /**
3
- * ios: codegen generate struct number fields with default value zero.
4
- * in some cases, we should check it is invalid value instead of checking is zero.
5
- */
6
- nullNumber: -123123123,
7
- } satisfies (Record<string, any> & {}) & {};
package/src/util/Util.ts DELETED
@@ -1,11 +0,0 @@
1
- import type { Camera } from '../type/type';
2
-
3
- import { Const } from './Const';
4
-
5
- export const nullCamera: Required<Camera> = {
6
- lat: Const.nullNumber,
7
- lng: Const.nullNumber,
8
- tilt: Const.nullNumber,
9
- rotation: Const.nullNumber,
10
- zoomLevel: Const.nullNumber,
11
- };