api-gateway-react-native 0.1.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 (51) hide show
  1. package/ApiGatwayReactNativeSdk.podspec +36 -0
  2. package/LICENSE +20 -0
  3. package/README.md +159 -0
  4. package/android/build.gradle +84 -0
  5. package/android/gradle.properties +5 -0
  6. package/android/libs/apiGateway-release.aar +0 -0
  7. package/android/src/main/AndroidManifest.xml +2 -0
  8. package/android/src/main/java/com/apigatwayreactnativesdk/ApiGatwayReactNativeSdkModule.kt +32 -0
  9. package/android/src/main/java/com/apigatwayreactnativesdk/ApiGatwayReactNativeSdkPackage.kt +19 -0
  10. package/ios/ApiGatewayReactNativeSdk-Bridging-Header.h +3 -0
  11. package/ios/ApiGatewayWrapper.swift +26 -0
  12. package/ios/ApiGatwayReactNativeSdk.h +4 -0
  13. package/ios/ApiGatwayReactNativeSdk.mm +29 -0
  14. package/ios/TNApiGetwaySDK.xcframework/Info.plist +44 -0
  15. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Headers/TNApiGatewayCrypto.h +34 -0
  16. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Headers/TNApiGetwaySDK.h +13 -0
  17. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Info.plist +0 -0
  18. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.abi.json +1419 -0
  19. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.private.swiftinterface +57 -0
  20. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  21. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios.swiftinterface +57 -0
  22. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/Modules/module.modulemap +6 -0
  23. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/TNApiGetwaySDK +0 -0
  24. package/ios/TNApiGetwaySDK.xcframework/ios-arm64/TNApiGetwaySDK.framework/_CodeSignature/CodeResources +201 -0
  25. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Headers/TNApiGatewayCrypto.h +34 -0
  26. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Headers/TNApiGetwaySDK.h +13 -0
  27. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Info.plist +0 -0
  28. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1419 -0
  29. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +57 -0
  30. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +57 -0
  32. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1419 -0
  33. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +57 -0
  34. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +57 -0
  36. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/Modules/module.modulemap +6 -0
  37. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/TNApiGetwaySDK +0 -0
  38. package/ios/TNApiGetwaySDK.xcframework/ios-arm64_x86_64-simulator/TNApiGetwaySDK.framework/_CodeSignature/CodeResources +256 -0
  39. package/lib/module/NativeApiGatwayReactNativeSdk.js +14 -0
  40. package/lib/module/NativeApiGatwayReactNativeSdk.js.map +1 -0
  41. package/lib/module/index.js +16 -0
  42. package/lib/module/index.js.map +1 -0
  43. package/lib/module/package.json +1 -0
  44. package/lib/typescript/package.json +1 -0
  45. package/lib/typescript/src/NativeApiGatwayReactNativeSdk.d.ts +6 -0
  46. package/lib/typescript/src/NativeApiGatwayReactNativeSdk.d.ts.map +1 -0
  47. package/lib/typescript/src/index.d.ts +9 -0
  48. package/lib/typescript/src/index.d.ts.map +1 -0
  49. package/package.json +169 -0
  50. package/src/NativeApiGatwayReactNativeSdk.ts +26 -0
  51. package/src/index.tsx +13 -0
@@ -0,0 +1,57 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
3
+ // swift-module-flags: -target x86_64-apple-ios18.1-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name TNApiGetwaySDK
4
+ // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
5
+ import Foundation
6
+ import Swift
7
+ @_exported import TNApiGetwaySDK
8
+ import UIKit
9
+ import _Concurrency
10
+ import _StringProcessing
11
+ import _SwiftConcurrencyShims
12
+ @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class ApiGatewayHeaderProvider : ObjectiveC.NSObject {
13
+ @objc public static let shared: TNApiGetwaySDK.ApiGatewayHeaderProvider
14
+ @objc public func getHeaders() -> [Swift.String : Swift.String]
15
+ @objc deinit
16
+ }
17
+ @_hasMissingDesignatedInitializers final public class Config {
18
+ public static var isDebuggable: Swift.Bool
19
+ @objc deinit
20
+ }
21
+ @_hasMissingDesignatedInitializers public class FrameworkConfig {
22
+ public static let shared: TNApiGetwaySDK.FrameworkConfig
23
+ public var json: [Swift.String : Any]
24
+ public var debugMode: Swift.Bool
25
+ @objc deinit
26
+ }
27
+ @objc @_inheritsConvenienceInitializers @objcMembers public class FrameworkProtocol : Foundation.URLProtocol {
28
+ @objc override dynamic public class func canInit(with request: Foundation.URLRequest) -> Swift.Bool
29
+ @objc override dynamic public class func canonicalRequest(for request: Foundation.URLRequest) -> Foundation.URLRequest
30
+ @objc override dynamic public func startLoading()
31
+ @objc override dynamic public func stopLoading()
32
+ #if compiler(>=5.3) && $NonescapableTypes
33
+ @objc override dynamic public init(request: Foundation.URLRequest, cachedResponse: Foundation.CachedURLResponse?, client: (any Foundation.URLProtocolClient)?)
34
+ #endif
35
+ @objc deinit
36
+ }
37
+ @_hasMissingDesignatedInitializers final public class Logger {
38
+ #if compiler(>=5.3) && $NonescapableTypes
39
+ public static func d(_ message: Swift.String, tag: Swift.String? = nil)
40
+ #endif
41
+ #if compiler(>=5.3) && $NonescapableTypes
42
+ public static func i(_ message: Swift.String, tag: Swift.String? = nil)
43
+ #endif
44
+ #if compiler(>=5.3) && $NonescapableTypes
45
+ public static func e(_ message: Swift.String, tag: Swift.String? = nil, error: (any Swift.Error)? = nil)
46
+ #endif
47
+ #if compiler(>=5.3) && $NonescapableTypes
48
+ public static func w(_ message: Swift.String, tag: Swift.String? = nil)
49
+ #endif
50
+ @objc deinit
51
+ }
52
+ @_hasMissingDesignatedInitializers final public class TimeProvider {
53
+ public static let shared: TNApiGetwaySDK.TimeProvider
54
+ final public func nowSeconds() -> Swift.Int
55
+ final public func isSynced() -> Swift.Bool
56
+ @objc deinit
57
+ }
@@ -0,0 +1,57 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
3
+ // swift-module-flags: -target x86_64-apple-ios18.1-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name TNApiGetwaySDK
4
+ // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
5
+ import Foundation
6
+ import Swift
7
+ @_exported import TNApiGetwaySDK
8
+ import UIKit
9
+ import _Concurrency
10
+ import _StringProcessing
11
+ import _SwiftConcurrencyShims
12
+ @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class ApiGatewayHeaderProvider : ObjectiveC.NSObject {
13
+ @objc public static let shared: TNApiGetwaySDK.ApiGatewayHeaderProvider
14
+ @objc public func getHeaders() -> [Swift.String : Swift.String]
15
+ @objc deinit
16
+ }
17
+ @_hasMissingDesignatedInitializers final public class Config {
18
+ public static var isDebuggable: Swift.Bool
19
+ @objc deinit
20
+ }
21
+ @_hasMissingDesignatedInitializers public class FrameworkConfig {
22
+ public static let shared: TNApiGetwaySDK.FrameworkConfig
23
+ public var json: [Swift.String : Any]
24
+ public var debugMode: Swift.Bool
25
+ @objc deinit
26
+ }
27
+ @objc @_inheritsConvenienceInitializers @objcMembers public class FrameworkProtocol : Foundation.URLProtocol {
28
+ @objc override dynamic public class func canInit(with request: Foundation.URLRequest) -> Swift.Bool
29
+ @objc override dynamic public class func canonicalRequest(for request: Foundation.URLRequest) -> Foundation.URLRequest
30
+ @objc override dynamic public func startLoading()
31
+ @objc override dynamic public func stopLoading()
32
+ #if compiler(>=5.3) && $NonescapableTypes
33
+ @objc override dynamic public init(request: Foundation.URLRequest, cachedResponse: Foundation.CachedURLResponse?, client: (any Foundation.URLProtocolClient)?)
34
+ #endif
35
+ @objc deinit
36
+ }
37
+ @_hasMissingDesignatedInitializers final public class Logger {
38
+ #if compiler(>=5.3) && $NonescapableTypes
39
+ public static func d(_ message: Swift.String, tag: Swift.String? = nil)
40
+ #endif
41
+ #if compiler(>=5.3) && $NonescapableTypes
42
+ public static func i(_ message: Swift.String, tag: Swift.String? = nil)
43
+ #endif
44
+ #if compiler(>=5.3) && $NonescapableTypes
45
+ public static func e(_ message: Swift.String, tag: Swift.String? = nil, error: (any Swift.Error)? = nil)
46
+ #endif
47
+ #if compiler(>=5.3) && $NonescapableTypes
48
+ public static func w(_ message: Swift.String, tag: Swift.String? = nil)
49
+ #endif
50
+ @objc deinit
51
+ }
52
+ @_hasMissingDesignatedInitializers final public class TimeProvider {
53
+ public static let shared: TNApiGetwaySDK.TimeProvider
54
+ final public func nowSeconds() -> Swift.Int
55
+ final public func isSynced() -> Swift.Bool
56
+ @objc deinit
57
+ }
@@ -0,0 +1,6 @@
1
+ framework module TNApiGetwaySDK {
2
+ umbrella header "TNApiGetwaySDK.h"
3
+ export *
4
+
5
+ module * { export * }
6
+ }
@@ -0,0 +1,256 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>.gitignore</key>
8
+ <data>
9
+ 6J1uNysVXPkg2iEYHwVMZk9znVE=
10
+ </data>
11
+ <key>Headers/TNApiGatewayCrypto.h</key>
12
+ <data>
13
+ 0f15dSbkHIkr4Ofj8MWfESQtcdM=
14
+ </data>
15
+ <key>Headers/TNApiGetwaySDK.h</key>
16
+ <data>
17
+ p9jtQhFiVA+sYVQwNDz46088l7I=
18
+ </data>
19
+ <key>Info.plist</key>
20
+ <data>
21
+ fqlC2GoUiC4stUiXo0ZGohr+b0w=
22
+ </data>
23
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
24
+ <data>
25
+ gRILf2Jn5xocP5QMiLmySfHrWrE=
26
+ </data>
27
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
28
+ <data>
29
+ r5AguR+WgjWxNqtIamyIzk8ieIU=
30
+ </data>
31
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
32
+ <data>
33
+ SpL8HAp6kMUqqkfC2T8LnS39heA=
34
+ </data>
35
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
36
+ <data>
37
+ r5AguR+WgjWxNqtIamyIzk8ieIU=
38
+ </data>
39
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
40
+ <data>
41
+ k23JbQP1KOZM96Cpv0qvZQl+Cvo=
42
+ </data>
43
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
44
+ <data>
45
+ gRILf2Jn5xocP5QMiLmySfHrWrE=
46
+ </data>
47
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
48
+ <data>
49
+ inw1U39RQmbw7QMMysPz8/jJMe8=
50
+ </data>
51
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
52
+ <data>
53
+ fhMg+IvsUVR7dPbfBGCEb2IjfoI=
54
+ </data>
55
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
56
+ <data>
57
+ inw1U39RQmbw7QMMysPz8/jJMe8=
58
+ </data>
59
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
60
+ <data>
61
+ iup0C5kfQbBBeFhb4jX9E9pRgHI=
62
+ </data>
63
+ <key>Modules/module.modulemap</key>
64
+ <data>
65
+ nsf8srj+nliqvPbnSIxPsj+DSNg=
66
+ </data>
67
+ </dict>
68
+ <key>files2</key>
69
+ <dict>
70
+ <key>.gitignore</key>
71
+ <dict>
72
+ <key>hash2</key>
73
+ <data>
74
+ XkMP713upWxaWO4u7uiWDqmVu79ssDyOahW2IuJ+X0Y=
75
+ </data>
76
+ </dict>
77
+ <key>Headers/TNApiGatewayCrypto.h</key>
78
+ <dict>
79
+ <key>hash2</key>
80
+ <data>
81
+ cjOuGHuFEHIi6GBfAkeKPT9CmYOxSaIvDPXZ3Op1h9M=
82
+ </data>
83
+ </dict>
84
+ <key>Headers/TNApiGetwaySDK.h</key>
85
+ <dict>
86
+ <key>hash2</key>
87
+ <data>
88
+ Pw7UJ64+ivB5mbgTaHOvP2KvFgmhlpzU6k3f6Ax1EOk=
89
+ </data>
90
+ </dict>
91
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
92
+ <dict>
93
+ <key>hash2</key>
94
+ <data>
95
+ LiKI+WFYyLwa8ZeCw7c05j38J5WE1loF3XxlguqD5fs=
96
+ </data>
97
+ </dict>
98
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
99
+ <dict>
100
+ <key>hash2</key>
101
+ <data>
102
+ 8CNKe1+5ZaTHEPRc5pc2bIiolRORaBq7zT3QZNu3uY8=
103
+ </data>
104
+ </dict>
105
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
106
+ <dict>
107
+ <key>hash2</key>
108
+ <data>
109
+ wdSs0aEvo8qozmXwXEF1gxq1KpNb5/ofXt0Hn0n0mKU=
110
+ </data>
111
+ </dict>
112
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
113
+ <dict>
114
+ <key>hash2</key>
115
+ <data>
116
+ 8CNKe1+5ZaTHEPRc5pc2bIiolRORaBq7zT3QZNu3uY8=
117
+ </data>
118
+ </dict>
119
+ <key>Modules/TNApiGetwaySDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
120
+ <dict>
121
+ <key>hash2</key>
122
+ <data>
123
+ kLnATEQlpHIkaNvT3emPbOSUuV1rZ+gez+PoGh/3oP4=
124
+ </data>
125
+ </dict>
126
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
127
+ <dict>
128
+ <key>hash2</key>
129
+ <data>
130
+ LiKI+WFYyLwa8ZeCw7c05j38J5WE1loF3XxlguqD5fs=
131
+ </data>
132
+ </dict>
133
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
134
+ <dict>
135
+ <key>hash2</key>
136
+ <data>
137
+ ZDvZ6FXsEBxJ2Sa+VA9JucGqP7HYb0eInY8decCaKFM=
138
+ </data>
139
+ </dict>
140
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
141
+ <dict>
142
+ <key>hash2</key>
143
+ <data>
144
+ T1DUdU9skgFxDDqMX+/+vVbRWeJ1Vn55WCkv1+orLQE=
145
+ </data>
146
+ </dict>
147
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
148
+ <dict>
149
+ <key>hash2</key>
150
+ <data>
151
+ ZDvZ6FXsEBxJ2Sa+VA9JucGqP7HYb0eInY8decCaKFM=
152
+ </data>
153
+ </dict>
154
+ <key>Modules/TNApiGetwaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
155
+ <dict>
156
+ <key>hash2</key>
157
+ <data>
158
+ dY04BH3gVgNo0L0gBPOk+7zJzquTffh7Kt7q+kRVztY=
159
+ </data>
160
+ </dict>
161
+ <key>Modules/module.modulemap</key>
162
+ <dict>
163
+ <key>hash2</key>
164
+ <data>
165
+ zbm/oAAuUIwjSF0maA9De9dORpYgwjlKe5KuXKeeHBc=
166
+ </data>
167
+ </dict>
168
+ </dict>
169
+ <key>rules</key>
170
+ <dict>
171
+ <key>^.*</key>
172
+ <true/>
173
+ <key>^.*\.lproj/</key>
174
+ <dict>
175
+ <key>optional</key>
176
+ <true/>
177
+ <key>weight</key>
178
+ <real>1000</real>
179
+ </dict>
180
+ <key>^.*\.lproj/locversion.plist$</key>
181
+ <dict>
182
+ <key>omit</key>
183
+ <true/>
184
+ <key>weight</key>
185
+ <real>1100</real>
186
+ </dict>
187
+ <key>^Base\.lproj/</key>
188
+ <dict>
189
+ <key>weight</key>
190
+ <real>1010</real>
191
+ </dict>
192
+ <key>^version.plist$</key>
193
+ <true/>
194
+ </dict>
195
+ <key>rules2</key>
196
+ <dict>
197
+ <key>.*\.dSYM($|/)</key>
198
+ <dict>
199
+ <key>weight</key>
200
+ <real>11</real>
201
+ </dict>
202
+ <key>^(.*/)?\.DS_Store$</key>
203
+ <dict>
204
+ <key>omit</key>
205
+ <true/>
206
+ <key>weight</key>
207
+ <real>2000</real>
208
+ </dict>
209
+ <key>^.*</key>
210
+ <true/>
211
+ <key>^.*\.lproj/</key>
212
+ <dict>
213
+ <key>optional</key>
214
+ <true/>
215
+ <key>weight</key>
216
+ <real>1000</real>
217
+ </dict>
218
+ <key>^.*\.lproj/locversion.plist$</key>
219
+ <dict>
220
+ <key>omit</key>
221
+ <true/>
222
+ <key>weight</key>
223
+ <real>1100</real>
224
+ </dict>
225
+ <key>^Base\.lproj/</key>
226
+ <dict>
227
+ <key>weight</key>
228
+ <real>1010</real>
229
+ </dict>
230
+ <key>^Info\.plist$</key>
231
+ <dict>
232
+ <key>omit</key>
233
+ <true/>
234
+ <key>weight</key>
235
+ <real>20</real>
236
+ </dict>
237
+ <key>^PkgInfo$</key>
238
+ <dict>
239
+ <key>omit</key>
240
+ <true/>
241
+ <key>weight</key>
242
+ <real>20</real>
243
+ </dict>
244
+ <key>^embedded\.provisionprofile$</key>
245
+ <dict>
246
+ <key>weight</key>
247
+ <real>20</real>
248
+ </dict>
249
+ <key>^version\.plist$</key>
250
+ <dict>
251
+ <key>weight</key>
252
+ <real>20</real>
253
+ </dict>
254
+ </dict>
255
+ </dict>
256
+ </plist>
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ import { NativeModules, Platform } from 'react-native';
4
+ const LINKING_ERROR = `The package 'api-gateway-react-native' doesn't seem to be linked.\n\n` + Platform.select({
5
+ ios: "- Did you run 'pod install'?\n",
6
+ default: ''
7
+ }) + '- Did you rebuild the app after installing the package?\n';
8
+ const NativeApiGatwayReactNativeSdk = NativeModules.ApiGatwayReactNativeSdk ?? new Proxy({}, {
9
+ get() {
10
+ throw new Error(LINKING_ERROR);
11
+ }
12
+ });
13
+ export default NativeApiGatwayReactNativeSdk;
14
+ //# sourceMappingURL=NativeApiGatwayReactNativeSdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","NativeApiGatwayReactNativeSdk","ApiGatwayReactNativeSdk","Proxy","get","Error"],"sourceRoot":"../../src","sources":["NativeApiGatwayReactNativeSdk.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAMtD,MAAMC,aAAa,GACjB,uEAAuE,GACvED,QAAQ,CAACE,MAAM,CAAC;EACdC,GAAG,EAAE,gCAAgC;EACrCC,OAAO,EAAE;AACX,CAAC,CAAC,GACF,2DAA2D;AAE7D,MAAMC,6BAAqD,GACzDN,aAAa,CAACO,uBAAuB,IACrC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEH,eAAeI,6BAA6B","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ import NativeApiGatwayReactNativeSdk from "./NativeApiGatwayReactNativeSdk.js";
4
+
5
+ /**
6
+ * Get API Gateway headers from native SDK
7
+ */
8
+ export async function getHeaders() {
9
+ return NativeApiGatwayReactNativeSdk.getHeaders();
10
+ }
11
+
12
+ // Optional default export
13
+ export default {
14
+ getHeaders
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeApiGatwayReactNativeSdk","getHeaders"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,6BAA6B,MAAM,oCAAiC;;AAE3E;AACA;AACA;AACA,OAAO,eAAeC,UAAUA,CAAA,EAAoC;EAClE,OAAOD,6BAA6B,CAACC,UAAU,CAAC,CAAC;AACnD;;AAEA;AACA,eAAe;EACbA;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,6 @@
1
+ type ApiGatewayNativeModule = {
2
+ getHeaders(): Promise<Record<string, string>>;
3
+ };
4
+ declare const NativeApiGatwayReactNativeSdk: ApiGatewayNativeModule;
5
+ export default NativeApiGatwayReactNativeSdk;
6
+ //# sourceMappingURL=NativeApiGatwayReactNativeSdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeApiGatwayReactNativeSdk.d.ts","sourceRoot":"","sources":["../../../src/NativeApiGatwayReactNativeSdk.ts"],"names":[],"mappings":"AAEA,KAAK,sBAAsB,GAAG;IAC5B,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/C,CAAC;AAUF,QAAA,MAAM,6BAA6B,EAAE,sBASlC,CAAC;AAEJ,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Get API Gateway headers from native SDK
3
+ */
4
+ export declare function getHeaders(): Promise<Record<string, string>>;
5
+ declare const _default: {
6
+ getHeaders: typeof getHeaders;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAElE;;;;AAGD,wBAEE"}
package/package.json ADDED
@@ -0,0 +1,169 @@
1
+ {
2
+ "name": "api-gateway-react-native",
3
+ "version": "0.1.0",
4
+ "description": "api-gatway-react-native-sdk",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "lib",
18
+ "android",
19
+ "ios",
20
+ "cpp",
21
+ "*.podspec",
22
+ "react-native.config.js",
23
+ "!ios/build",
24
+ "!android/build",
25
+ "!android/gradle",
26
+ "!android/gradlew",
27
+ "!android/gradlew.bat",
28
+ "!android/local.properties",
29
+ "!**/__tests__",
30
+ "!**/__fixtures__",
31
+ "!**/__mocks__",
32
+ "!**/.*"
33
+ ],
34
+ "scripts": {
35
+ "example": "yarn workspace api-gateway-react-native-example",
36
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
37
+ "prepare": "bob build",
38
+ "typecheck": "tsc",
39
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
40
+ "test": "jest",
41
+ "release": "release-it --only-version"
42
+ },
43
+ "keywords": [
44
+ "react-native",
45
+ "ios",
46
+ "android"
47
+ ],
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/mapnests/api-gateway-react-native-sdk/api-gateway-react-native.git"
51
+ },
52
+ "author": "mapnests <developer@mapnests.com> (https://github.com/mapnests/api-gateway-react-native-sdk)",
53
+ "license": "MIT",
54
+ "bugs": {
55
+ "url": "https://github.com/mapnests/api-gateway-react-native-sdk/api-gateway-react-native/issues"
56
+ },
57
+ "homepage": "https://github.com/mapnests/api-gateway-react-native-sdk/api-gateway-react-native#readme",
58
+ "publishConfig": {
59
+ "registry": "https://registry.npmjs.org/"
60
+ },
61
+ "devDependencies": {
62
+ "@commitlint/config-conventional": "^19.8.1",
63
+ "@eslint/compat": "^1.3.2",
64
+ "@eslint/eslintrc": "^3.3.1",
65
+ "@eslint/js": "^9.35.0",
66
+ "@react-native/babel-preset": "0.83.0",
67
+ "@react-native/eslint-config": "0.83.0",
68
+ "@release-it/conventional-changelog": "^10.0.1",
69
+ "@types/jest": "^29.5.14",
70
+ "@types/react": "^19.2.0",
71
+ "commitlint": "^19.8.1",
72
+ "del-cli": "^6.0.0",
73
+ "eslint": "^9.35.0",
74
+ "eslint-config-prettier": "^10.1.8",
75
+ "eslint-plugin-prettier": "^5.5.4",
76
+ "jest": "^29.7.0",
77
+ "lefthook": "^2.0.3",
78
+ "prettier": "^2.8.8",
79
+ "react": "19.2.0",
80
+ "react-native": "0.83.0",
81
+ "react-native-builder-bob": "^0.40.13",
82
+ "release-it": "^19.0.4",
83
+ "turbo": "^2.5.6",
84
+ "typescript": "^5.9.2"
85
+ },
86
+ "peerDependencies": {
87
+ "react": "*",
88
+ "react-native": "*"
89
+ },
90
+ "workspaces": [
91
+ "example"
92
+ ],
93
+ "packageManager": "yarn@4.11.0",
94
+ "react-native-builder-bob": {
95
+ "source": "src",
96
+ "output": "lib",
97
+ "targets": [
98
+ [
99
+ "module",
100
+ {
101
+ "esm": true
102
+ }
103
+ ],
104
+ [
105
+ "typescript",
106
+ {
107
+ "project": "tsconfig.build.json"
108
+ }
109
+ ]
110
+ ]
111
+ },
112
+ "codegenConfig": {
113
+ "name": "ApiGatwayReactNativeSdkSpec",
114
+ "type": "modules",
115
+ "jsSrcsDir": "src",
116
+ "android": {
117
+ "javaPackageName": "com.apigatwayreactnativesdk"
118
+ }
119
+ },
120
+ "prettier": {
121
+ "quoteProps": "consistent",
122
+ "singleQuote": true,
123
+ "tabWidth": 2,
124
+ "trailingComma": "es5",
125
+ "useTabs": false
126
+ },
127
+ "jest": {
128
+ "preset": "react-native",
129
+ "modulePathIgnorePatterns": [
130
+ "<rootDir>/example/node_modules",
131
+ "<rootDir>/lib/"
132
+ ]
133
+ },
134
+ "commitlint": {
135
+ "extends": [
136
+ "@commitlint/config-conventional"
137
+ ]
138
+ },
139
+ "release-it": {
140
+ "git": {
141
+ "commitMessage": "chore: release ${version}",
142
+ "tagName": "v${version}"
143
+ },
144
+ "npm": {
145
+ "publish": true
146
+ },
147
+ "github": {
148
+ "release": true
149
+ },
150
+ "plugins": {
151
+ "@release-it/conventional-changelog": {
152
+ "preset": {
153
+ "name": "angular"
154
+ }
155
+ }
156
+ }
157
+ },
158
+ "create-react-native-library": {
159
+ "type": "turbo-module",
160
+ "languages": "kotlin-objc",
161
+ "tools": [
162
+ "eslint",
163
+ "jest",
164
+ "lefthook",
165
+ "release-it"
166
+ ],
167
+ "version": "0.56.1"
168
+ }
169
+ }
@@ -0,0 +1,26 @@
1
+ import { NativeModules, Platform } from 'react-native';
2
+
3
+ type ApiGatewayNativeModule = {
4
+ getHeaders(): Promise<Record<string, string>>;
5
+ };
6
+
7
+ const LINKING_ERROR =
8
+ `The package 'api-gateway-react-native' doesn't seem to be linked.\n\n` +
9
+ Platform.select({
10
+ ios: "- Did you run 'pod install'?\n",
11
+ default: '',
12
+ }) +
13
+ '- Did you rebuild the app after installing the package?\n';
14
+
15
+ const NativeApiGatwayReactNativeSdk: ApiGatewayNativeModule =
16
+ NativeModules.ApiGatwayReactNativeSdk ??
17
+ new Proxy(
18
+ {},
19
+ {
20
+ get() {
21
+ throw new Error(LINKING_ERROR);
22
+ },
23
+ }
24
+ );
25
+
26
+ export default NativeApiGatwayReactNativeSdk;
package/src/index.tsx ADDED
@@ -0,0 +1,13 @@
1
+ import NativeApiGatwayReactNativeSdk from './NativeApiGatwayReactNativeSdk';
2
+
3
+ /**
4
+ * Get API Gateway headers from native SDK
5
+ */
6
+ export async function getHeaders(): Promise<Record<string, string>> {
7
+ return NativeApiGatwayReactNativeSdk.getHeaders();
8
+ }
9
+
10
+ // Optional default export
11
+ export default {
12
+ getHeaders,
13
+ };