@situm/react-native 3.0.0-beta.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 (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +656 -0
  3. package/ReactNativeSitumPlugin.podspec +22 -0
  4. package/SECURITY-POLICY.md +9 -0
  5. package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
  6. package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/5.6.4/gc.properties +0 -0
  8. package/android/.idea/.name +1 -0
  9. package/android/.idea/codeStyles/Project.xml +116 -0
  10. package/android/.idea/encodings.xml +6 -0
  11. package/android/.idea/misc.xml +31 -0
  12. package/android/.idea/sonarlint/issuestore/index.pb +15 -0
  13. package/android/.project +34 -0
  14. package/android/build.gradle +45 -0
  15. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  16. package/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  17. package/android/gradlew +172 -0
  18. package/android/gradlew.bat +84 -0
  19. package/android/src/main/AndroidManifest.xml +6 -0
  20. package/android/src/main/java/com/situm/plugin/PluginHelper.java +989 -0
  21. package/android/src/main/java/com/situm/plugin/SitumMapper.java +1206 -0
  22. package/android/src/main/java/com/situm/plugin/SitumPackage.java +29 -0
  23. package/android/src/main/java/com/situm/plugin/SitumPlugin.java +84 -0
  24. package/android/src/main/java/com/situm/plugin/SitumPluginImpl.java +344 -0
  25. package/android/src/main/java/com/situm/plugin/utils/ReactNativeJson.java +122 -0
  26. package/android/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  27. package/android/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  28. package/android/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  29. package/android/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  30. package/android/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  31. package/android/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  32. package/android/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  33. package/android/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  34. package/android/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  35. package/android/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  36. package/android/src/main/res/values/strings.xml +3 -0
  37. package/android/src/main/res/values/styles.xml +9 -0
  38. package/ios/Constants.h +14 -0
  39. package/ios/Constants.m +14 -0
  40. package/ios/RNSitumReactNativePlugin.xcodeproj/project.pbxproj +272 -0
  41. package/ios/SitumLocationWrapper.h +112 -0
  42. package/ios/SitumLocationWrapper.m +1132 -0
  43. package/ios/SitumPlugin.h +15 -0
  44. package/ios/SitumPlugin.m +911 -0
  45. package/lib/commonjs/index.js +25 -0
  46. package/lib/commonjs/index.js.map +1 -0
  47. package/lib/commonjs/sdk/index.js +399 -0
  48. package/lib/commonjs/sdk/index.js.map +1 -0
  49. package/lib/commonjs/sdk/nativeInterface.js +20 -0
  50. package/lib/commonjs/sdk/nativeInterface.js.map +1 -0
  51. package/lib/commonjs/sdk/types/index.d.js +6 -0
  52. package/lib/commonjs/sdk/types/index.d.js.map +1 -0
  53. package/lib/commonjs/sdk/utils.js +22 -0
  54. package/lib/commonjs/sdk/utils.js.map +1 -0
  55. package/lib/commonjs/utils/requestPermission.js +73 -0
  56. package/lib/commonjs/utils/requestPermission.js.map +1 -0
  57. package/lib/commonjs/wayfinding/components/MapView.js +220 -0
  58. package/lib/commonjs/wayfinding/components/MapView.js.map +1 -0
  59. package/lib/commonjs/wayfinding/hooks/index.js +401 -0
  60. package/lib/commonjs/wayfinding/hooks/index.js.map +1 -0
  61. package/lib/commonjs/wayfinding/index.js +45 -0
  62. package/lib/commonjs/wayfinding/index.js.map +1 -0
  63. package/lib/commonjs/wayfinding/store/index.js +237 -0
  64. package/lib/commonjs/wayfinding/store/index.js.map +1 -0
  65. package/lib/commonjs/wayfinding/store/utils.js +44 -0
  66. package/lib/commonjs/wayfinding/store/utils.js.map +1 -0
  67. package/lib/commonjs/wayfinding/styles/colors.js +18 -0
  68. package/lib/commonjs/wayfinding/styles/colors.js.map +1 -0
  69. package/lib/commonjs/wayfinding/types/index.d.js +6 -0
  70. package/lib/commonjs/wayfinding/types/index.d.js.map +1 -0
  71. package/lib/commonjs/wayfinding/utils/index.js +11 -0
  72. package/lib/commonjs/wayfinding/utils/index.js.map +1 -0
  73. package/lib/commonjs/wayfinding/utils/mapper.js +106 -0
  74. package/lib/commonjs/wayfinding/utils/mapper.js.map +1 -0
  75. package/lib/module/index.js +6 -0
  76. package/lib/module/index.js.map +1 -0
  77. package/lib/module/sdk/index.js +390 -0
  78. package/lib/module/sdk/index.js.map +1 -0
  79. package/lib/module/sdk/nativeInterface.js +18 -0
  80. package/lib/module/sdk/nativeInterface.js.map +1 -0
  81. package/lib/module/sdk/types/index.d.js +2 -0
  82. package/lib/module/sdk/types/index.d.js.map +1 -0
  83. package/lib/module/sdk/utils.js +15 -0
  84. package/lib/module/sdk/utils.js.map +1 -0
  85. package/lib/module/utils/requestPermission.js +67 -0
  86. package/lib/module/utils/requestPermission.js.map +1 -0
  87. package/lib/module/wayfinding/components/MapView.js +207 -0
  88. package/lib/module/wayfinding/components/MapView.js.map +1 -0
  89. package/lib/module/wayfinding/hooks/index.js +392 -0
  90. package/lib/module/wayfinding/hooks/index.js.map +1 -0
  91. package/lib/module/wayfinding/index.js +12 -0
  92. package/lib/module/wayfinding/index.js.map +1 -0
  93. package/lib/module/wayfinding/store/index.js +202 -0
  94. package/lib/module/wayfinding/store/index.js.map +1 -0
  95. package/lib/module/wayfinding/store/utils.js +34 -0
  96. package/lib/module/wayfinding/store/utils.js.map +1 -0
  97. package/lib/module/wayfinding/styles/colors.js +11 -0
  98. package/lib/module/wayfinding/styles/colors.js.map +1 -0
  99. package/lib/module/wayfinding/types/index.d.js +2 -0
  100. package/lib/module/wayfinding/types/index.d.js.map +1 -0
  101. package/lib/module/wayfinding/utils/index.js +4 -0
  102. package/lib/module/wayfinding/utils/index.js.map +1 -0
  103. package/lib/module/wayfinding/utils/mapper.js +100 -0
  104. package/lib/module/wayfinding/utils/mapper.js.map +1 -0
  105. package/lib/typescript/src/index.d.ts +4 -0
  106. package/lib/typescript/src/index.d.ts.map +1 -0
  107. package/lib/typescript/src/sdk/index.d.ts +269 -0
  108. package/lib/typescript/src/sdk/index.d.ts.map +1 -0
  109. package/lib/typescript/src/sdk/nativeInterface.d.ts +2 -0
  110. package/lib/typescript/src/sdk/nativeInterface.d.ts.map +1 -0
  111. package/lib/typescript/src/sdk/utils.d.ts +7 -0
  112. package/lib/typescript/src/sdk/utils.d.ts.map +1 -0
  113. package/lib/typescript/src/utils/requestPermission.d.ts +3 -0
  114. package/lib/typescript/src/utils/requestPermission.d.ts.map +1 -0
  115. package/lib/typescript/src/wayfinding/components/MapView.d.ts +36 -0
  116. package/lib/typescript/src/wayfinding/components/MapView.d.ts.map +1 -0
  117. package/lib/typescript/src/wayfinding/hooks/index.d.ts +53 -0
  118. package/lib/typescript/src/wayfinding/hooks/index.d.ts.map +1 -0
  119. package/lib/typescript/src/wayfinding/index.d.ts +5 -0
  120. package/lib/typescript/src/wayfinding/index.d.ts.map +1 -0
  121. package/lib/typescript/src/wayfinding/store/index.d.ts +103 -0
  122. package/lib/typescript/src/wayfinding/store/index.d.ts.map +1 -0
  123. package/lib/typescript/src/wayfinding/store/utils.d.ts +9 -0
  124. package/lib/typescript/src/wayfinding/store/utils.d.ts.map +1 -0
  125. package/lib/typescript/src/wayfinding/styles/colors.d.ts +8 -0
  126. package/lib/typescript/src/wayfinding/styles/colors.d.ts.map +1 -0
  127. package/lib/typescript/src/wayfinding/utils/index.d.ts +3 -0
  128. package/lib/typescript/src/wayfinding/utils/index.d.ts.map +1 -0
  129. package/lib/typescript/src/wayfinding/utils/mapper.d.ts +17 -0
  130. package/lib/typescript/src/wayfinding/utils/mapper.d.ts.map +1 -0
  131. package/package.json +130 -0
  132. package/security.txt +4 -0
  133. package/src/index.ts +6 -0
  134. package/src/sdk/index.ts +656 -0
  135. package/src/sdk/nativeInterface.ts +18 -0
  136. package/src/sdk/types/index.d.ts +718 -0
  137. package/src/sdk/utils.ts +16 -0
  138. package/src/utils/requestPermission.ts +94 -0
  139. package/src/wayfinding/components/MapView.tsx +312 -0
  140. package/src/wayfinding/hooks/index.ts +539 -0
  141. package/src/wayfinding/index.tsx +11 -0
  142. package/src/wayfinding/store/index.tsx +254 -0
  143. package/src/wayfinding/store/utils.ts +40 -0
  144. package/src/wayfinding/styles/colors.tsx +6 -0
  145. package/src/wayfinding/types/index.d.ts +56 -0
  146. package/src/wayfinding/utils/index.ts +5 -0
  147. package/src/wayfinding/utils/mapper.ts +129 -0
@@ -0,0 +1,272 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 7E0E2A732473EC7C00F8FFCC /* SitumLocationWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2A6D2473EC7C00F8FFCC /* SitumLocationWrapper.m */; };
11
+ 7E0E2A742473EC7C00F8FFCC /* Constants.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2A6F2473EC7C00F8FFCC /* Constants.m */; };
12
+ 7E0E2A752473EC7C00F8FFCC /* SitumPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2A722473EC7C00F8FFCC /* SitumPlugin.m */; };
13
+ /* End PBXBuildFile section */
14
+
15
+ /* Begin PBXCopyFilesBuildPhase section */
16
+ 58B511D91A9E6C8500147676 /* CopyFiles */ = {
17
+ isa = PBXCopyFilesBuildPhase;
18
+ buildActionMask = 2147483647;
19
+ dstPath = "include/$(PRODUCT_NAME)";
20
+ dstSubfolderSpec = 16;
21
+ files = (
22
+ );
23
+ runOnlyForDeploymentPostprocessing = 0;
24
+ };
25
+ /* End PBXCopyFilesBuildPhase section */
26
+
27
+ /* Begin PBXFileReference section */
28
+ 134814201AA4EA6300B7C361 /* libRNSitumReactNativePlugin.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSitumReactNativePlugin.a; sourceTree = BUILT_PRODUCTS_DIR; };
29
+ 7E0E2A6D2473EC7C00F8FFCC /* SitumLocationWrapper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SitumLocationWrapper.m; sourceTree = "<group>"; };
30
+ 7E0E2A6E2473EC7C00F8FFCC /* Constants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Constants.h; sourceTree = "<group>"; };
31
+ 7E0E2A6F2473EC7C00F8FFCC /* Constants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Constants.m; sourceTree = "<group>"; };
32
+ 7E0E2A702473EC7C00F8FFCC /* SitumPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SitumPlugin.h; sourceTree = "<group>"; };
33
+ 7E0E2A712473EC7C00F8FFCC /* SitumLocationWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SitumLocationWrapper.h; sourceTree = "<group>"; };
34
+ 7E0E2A722473EC7C00F8FFCC /* SitumPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SitumPlugin.m; sourceTree = "<group>"; };
35
+ /* End PBXFileReference section */
36
+
37
+ /* Begin PBXFrameworksBuildPhase section */
38
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
39
+ isa = PBXFrameworksBuildPhase;
40
+ buildActionMask = 2147483647;
41
+ files = (
42
+ );
43
+ runOnlyForDeploymentPostprocessing = 0;
44
+ };
45
+ /* End PBXFrameworksBuildPhase section */
46
+
47
+ /* Begin PBXGroup section */
48
+ 134814211AA4EA7D00B7C361 /* Products */ = {
49
+ isa = PBXGroup;
50
+ children = (
51
+ 134814201AA4EA6300B7C361 /* libRNSitumReactNativePlugin.a */,
52
+ );
53
+ name = Products;
54
+ sourceTree = "<group>";
55
+ };
56
+ 58B511D21A9E6C8500147676 = {
57
+ isa = PBXGroup;
58
+ children = (
59
+ 7E0E2A6E2473EC7C00F8FFCC /* Constants.h */,
60
+ 7E0E2A6F2473EC7C00F8FFCC /* Constants.m */,
61
+ 7E0E2A712473EC7C00F8FFCC /* SitumLocationWrapper.h */,
62
+ 7E0E2A6D2473EC7C00F8FFCC /* SitumLocationWrapper.m */,
63
+ 7E0E2A702473EC7C00F8FFCC /* SitumPlugin.h */,
64
+ 7E0E2A722473EC7C00F8FFCC /* SitumPlugin.m */,
65
+ 134814211AA4EA7D00B7C361 /* Products */,
66
+ );
67
+ sourceTree = "<group>";
68
+ };
69
+ /* End PBXGroup section */
70
+
71
+ /* Begin PBXNativeTarget section */
72
+ 58B511DA1A9E6C8500147676 /* RNSitumReactNativePlugin */ = {
73
+ isa = PBXNativeTarget;
74
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSitumReactNativePlugin" */;
75
+ buildPhases = (
76
+ 58B511D71A9E6C8500147676 /* Sources */,
77
+ 58B511D81A9E6C8500147676 /* Frameworks */,
78
+ 58B511D91A9E6C8500147676 /* CopyFiles */,
79
+ );
80
+ buildRules = (
81
+ );
82
+ dependencies = (
83
+ );
84
+ name = RNSitumReactNativePlugin;
85
+ productName = RCTDataManager;
86
+ productReference = 134814201AA4EA6300B7C361 /* libRNSitumReactNativePlugin.a */;
87
+ productType = "com.apple.product-type.library.static";
88
+ };
89
+ /* End PBXNativeTarget section */
90
+
91
+ /* Begin PBXProject section */
92
+ 58B511D31A9E6C8500147676 /* Project object */ = {
93
+ isa = PBXProject;
94
+ attributes = {
95
+ LastUpgradeCheck = 0830;
96
+ ORGANIZATIONNAME = Facebook;
97
+ TargetAttributes = {
98
+ 58B511DA1A9E6C8500147676 = {
99
+ CreatedOnToolsVersion = 6.1.1;
100
+ };
101
+ };
102
+ };
103
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSitumReactNativePlugin" */;
104
+ compatibilityVersion = "Xcode 3.2";
105
+ developmentRegion = English;
106
+ hasScannedForEncodings = 0;
107
+ knownRegions = (
108
+ English,
109
+ en,
110
+ );
111
+ mainGroup = 58B511D21A9E6C8500147676;
112
+ productRefGroup = 58B511D21A9E6C8500147676;
113
+ projectDirPath = "";
114
+ projectRoot = "";
115
+ targets = (
116
+ 58B511DA1A9E6C8500147676 /* RNSitumReactNativePlugin */,
117
+ );
118
+ };
119
+ /* End PBXProject section */
120
+
121
+ /* Begin PBXSourcesBuildPhase section */
122
+ 58B511D71A9E6C8500147676 /* Sources */ = {
123
+ isa = PBXSourcesBuildPhase;
124
+ buildActionMask = 2147483647;
125
+ files = (
126
+ 7E0E2A752473EC7C00F8FFCC /* SitumPlugin.m in Sources */,
127
+ 7E0E2A732473EC7C00F8FFCC /* SitumLocationWrapper.m in Sources */,
128
+ 7E0E2A742473EC7C00F8FFCC /* Constants.m in Sources */,
129
+ );
130
+ runOnlyForDeploymentPostprocessing = 0;
131
+ };
132
+ /* End PBXSourcesBuildPhase section */
133
+
134
+ /* Begin XCBuildConfiguration section */
135
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
136
+ isa = XCBuildConfiguration;
137
+ buildSettings = {
138
+ ALWAYS_SEARCH_USER_PATHS = NO;
139
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
140
+ CLANG_CXX_LIBRARY = "libc++";
141
+ CLANG_ENABLE_MODULES = YES;
142
+ CLANG_ENABLE_OBJC_ARC = YES;
143
+ CLANG_WARN_BOOL_CONVERSION = YES;
144
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
145
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
146
+ CLANG_WARN_EMPTY_BODY = YES;
147
+ CLANG_WARN_ENUM_CONVERSION = YES;
148
+ CLANG_WARN_INFINITE_RECURSION = YES;
149
+ CLANG_WARN_INT_CONVERSION = YES;
150
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
151
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
152
+ CLANG_WARN_UNREACHABLE_CODE = YES;
153
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
154
+ COPY_PHASE_STRIP = NO;
155
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
156
+ ENABLE_TESTABILITY = YES;
157
+ GCC_C_LANGUAGE_STANDARD = gnu99;
158
+ GCC_DYNAMIC_NO_PIC = NO;
159
+ GCC_NO_COMMON_BLOCKS = YES;
160
+ GCC_OPTIMIZATION_LEVEL = 0;
161
+ GCC_PREPROCESSOR_DEFINITIONS = (
162
+ "DEBUG=1",
163
+ "$(inherited)",
164
+ );
165
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
166
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
167
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
168
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
169
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
170
+ GCC_WARN_UNUSED_FUNCTION = YES;
171
+ GCC_WARN_UNUSED_VARIABLE = YES;
172
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
173
+ MTL_ENABLE_DEBUG_INFO = YES;
174
+ ONLY_ACTIVE_ARCH = YES;
175
+ SDKROOT = iphoneos;
176
+ };
177
+ name = Debug;
178
+ };
179
+ 58B511EE1A9E6C8500147676 /* Release */ = {
180
+ isa = XCBuildConfiguration;
181
+ buildSettings = {
182
+ ALWAYS_SEARCH_USER_PATHS = NO;
183
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
184
+ CLANG_CXX_LIBRARY = "libc++";
185
+ CLANG_ENABLE_MODULES = YES;
186
+ CLANG_ENABLE_OBJC_ARC = YES;
187
+ CLANG_WARN_BOOL_CONVERSION = YES;
188
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
189
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
190
+ CLANG_WARN_EMPTY_BODY = YES;
191
+ CLANG_WARN_ENUM_CONVERSION = YES;
192
+ CLANG_WARN_INFINITE_RECURSION = YES;
193
+ CLANG_WARN_INT_CONVERSION = YES;
194
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
195
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
196
+ CLANG_WARN_UNREACHABLE_CODE = YES;
197
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
198
+ COPY_PHASE_STRIP = YES;
199
+ ENABLE_NS_ASSERTIONS = NO;
200
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
201
+ GCC_C_LANGUAGE_STANDARD = gnu99;
202
+ GCC_NO_COMMON_BLOCKS = YES;
203
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
204
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
205
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
206
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
207
+ GCC_WARN_UNUSED_FUNCTION = YES;
208
+ GCC_WARN_UNUSED_VARIABLE = YES;
209
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
210
+ MTL_ENABLE_DEBUG_INFO = NO;
211
+ SDKROOT = iphoneos;
212
+ VALIDATE_PRODUCT = YES;
213
+ };
214
+ name = Release;
215
+ };
216
+ 58B511F01A9E6C8500147676 /* Debug */ = {
217
+ isa = XCBuildConfiguration;
218
+ buildSettings = {
219
+ HEADER_SEARCH_PATHS = (
220
+ "$(inherited)",
221
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
222
+ "$(SRCROOT)/../../../React/**",
223
+ "$(SRCROOT)/../../react-native/React/**",
224
+ );
225
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
226
+ OTHER_LDFLAGS = "-ObjC";
227
+ PRODUCT_NAME = RNSitumReactNativePlugin;
228
+ SKIP_INSTALL = YES;
229
+ };
230
+ name = Debug;
231
+ };
232
+ 58B511F11A9E6C8500147676 /* Release */ = {
233
+ isa = XCBuildConfiguration;
234
+ buildSettings = {
235
+ HEADER_SEARCH_PATHS = (
236
+ "$(inherited)",
237
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
238
+ "$(SRCROOT)/../../../React/**",
239
+ "$(SRCROOT)/../../react-native/React/**",
240
+ );
241
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
242
+ OTHER_LDFLAGS = "-ObjC";
243
+ PRODUCT_NAME = RNSitumReactNativePlugin;
244
+ SKIP_INSTALL = YES;
245
+ };
246
+ name = Release;
247
+ };
248
+ /* End XCBuildConfiguration section */
249
+
250
+ /* Begin XCConfigurationList section */
251
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSitumReactNativePlugin" */ = {
252
+ isa = XCConfigurationList;
253
+ buildConfigurations = (
254
+ 58B511ED1A9E6C8500147676 /* Debug */,
255
+ 58B511EE1A9E6C8500147676 /* Release */,
256
+ );
257
+ defaultConfigurationIsVisible = 0;
258
+ defaultConfigurationName = Release;
259
+ };
260
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSitumReactNativePlugin" */ = {
261
+ isa = XCConfigurationList;
262
+ buildConfigurations = (
263
+ 58B511F01A9E6C8500147676 /* Debug */,
264
+ 58B511F11A9E6C8500147676 /* Release */,
265
+ );
266
+ defaultConfigurationIsVisible = 0;
267
+ defaultConfigurationName = Release;
268
+ };
269
+ /* End XCConfigurationList section */
270
+ };
271
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
272
+ }
@@ -0,0 +1,112 @@
1
+ #import <SitumSDK/SitumSDK.h>
2
+
3
+ @interface SitumLocationWrapper : NSObject {
4
+ // Member variables go here.
5
+ }
6
+ + (SitumLocationWrapper *)shared;
7
+
8
+ //Building
9
+
10
+ - (NSDictionary *) buildingToJsonObject:(SITBuilding *) building;
11
+ - (NSDictionary *) buildingInfoToJsonObject:(SITBuildingInfo *)buildingInfo;
12
+
13
+ //Building (should be deprecated)
14
+
15
+ - (NSDictionary *) buildingIndoorToJsonObject:(SITIndoorBuilding *) building __deprecated;
16
+
17
+ - (NSDictionary *) conversionAreaToJsonObject:(SITRectangularArea *) ca;
18
+
19
+
20
+ //Floor
21
+
22
+ - (NSDictionary *) floorToJsonObject:(SITFloor *) floor;
23
+
24
+ - (SITFloor *) jsonObjectToFloor:(NSDictionary *) joFloor;
25
+
26
+
27
+ //Event
28
+
29
+ - (NSDictionary *) eventToJsonObject:(SITEvent *) event;
30
+
31
+ // Category
32
+
33
+ - (SITPOICategory *) poiCategoryFromJsonObject:(NSDictionary *) jo;
34
+ - (NSDictionary *) poiCategoryToJsonObject:(SITPOICategory *) category;
35
+ - (NSDictionary *)bitmapToJsonObject:(UIImage *)icon;
36
+
37
+ // POI
38
+
39
+ - (NSDictionary *) poiToJsonObject:(SITPOI *) poi;
40
+
41
+ // Geofence
42
+ - (NSArray *)geofencesToJsonArray:(NSArray *)array;
43
+ - (NSDictionary *) geofenceToJsonObject:(SITGeofence *)geofence;
44
+
45
+ // Location
46
+ - (SITLocationRequest *) dictToLocationRequest: (NSDictionary *) dict;
47
+ - (SITLocationRequest *) jsonObjectToLocationRequest: (NSArray *) json;
48
+ - (NSDictionary *) locationToJsonObject:(SITLocation *) location;
49
+ - (NSString*) locationStateToString:(SITLocationState) state;
50
+ - (NSDictionary *) locationStateToJsonObject:(SITLocationState) state;
51
+
52
+ - (SITLocation *) locationJsonObjectToLocation:(NSDictionary *) jo;
53
+
54
+ // Coordinate
55
+
56
+ - (NSDictionary *) coordinateToJsonObject:(CLLocationCoordinate2D) coordinate;
57
+
58
+ - (CLLocationCoordinate2D) coordinateJsonObjectToCoordinate:(NSDictionary *) jo;
59
+
60
+ // Point
61
+
62
+ - (NSDictionary *) pointToJsonObject:(SITPoint *) point;
63
+
64
+ - (SITPoint *) pointJsonObjectToPoint:(NSDictionary *) jo;
65
+
66
+ // CartesianCoordinate
67
+
68
+ - (NSDictionary *) cartesianCoordinateToJsonObject:(SITCartesianCoordinate *) cartesianCoordinate;
69
+
70
+ - (SITCartesianCoordinate *) cartesianCoordinateJsonObjectToCartesianCoordinate:(NSDictionary *) jo;
71
+
72
+ // Directions
73
+ - (SITDirectionsRequest *) jsonObjectToDirectionsRequest: (NSArray *) json;
74
+
75
+ // Dimensions
76
+
77
+ - (NSDictionary *) dimensionsToJsonObject:(SITDimensions *) dimensions;
78
+ - (SITDimensions *) jsonObjectToDimensions:(NSDictionary *) json ;
79
+
80
+ // Bounds
81
+
82
+ - (NSDictionary *) boundsToJsonObject:(SITBounds) bounds;
83
+
84
+ // Angle
85
+
86
+ - (NSDictionary *) angleToJsonObject:(SITAngle *) angle;
87
+
88
+ // Route
89
+
90
+ - (NSDictionary *) routeToJsonObject:(SITRoute *) route;
91
+
92
+ //RouteStep
93
+
94
+ - (NSDictionary *) routeStepToJsonObject:(SITRouteStep *) routeStep;
95
+
96
+ - (SITRouteStep *) routeStepJsonObjectToRouteStep:(NSDictionary *) jo;
97
+
98
+ // Indication
99
+
100
+ - (NSDictionary *) indicationToJsonObject:(SITIndication *) indication;
101
+
102
+ - (SITIndication *) indicationJsonObjectToIndication:(NSDictionary *) jo;
103
+
104
+ // NavigationProgress
105
+
106
+ - (NSDictionary *) navigationProgressToJsonObject:(SITNavigationProgress *) navigationProgress;
107
+
108
+ // Realtime
109
+ - (NSDictionary *)jsonFromRealtimeData:(SITRealTimeData *)realtimeData;
110
+ - (SITRealTimeRequest *)realtimeRequestFromJson:(NSDictionary *)jo;
111
+
112
+ @end