react-native-shield-fraud-plugin 1.0.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 (74) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +161 -0
  3. package/android/build.gradle +85 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +5 -0
  6. package/android/src/main/java/com/shieldfraudplugin/ShieldFraudPluginModule.java +190 -0
  7. package/android/src/main/java/com/shieldfraudplugin/ShieldFraudPluginPackage.java +28 -0
  8. package/ios/Podfile +10 -0
  9. package/ios/Podfile.lock +16 -0
  10. package/ios/Pods/Manifest.lock +16 -0
  11. package/ios/Pods/Pods.xcodeproj/project.pbxproj +536 -0
  12. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/Pods-ShieldFraudPlugin.xcscheme +58 -0
  13. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/ShieldFraud.xcscheme +58 -0
  14. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist +25 -0
  15. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/Info.plist +44 -0
  16. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +394 -0
  17. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud.h +20 -0
  18. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Info.plist +0 -0
  19. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.abi.json +6726 -0
  20. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.private.swiftinterface +207 -0
  21. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  22. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftinterface +207 -0
  23. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/module.modulemap +11 -0
  24. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/ShieldFraud +0 -0
  25. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/_CodeSignature/CodeResources +222 -0
  26. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/dSYMs/ShieldFraud.framework.dSYM/Contents/Info.plist +20 -0
  27. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/dSYMs/ShieldFraud.framework.dSYM/Contents/Resources/DWARF/ShieldFraud +0 -0
  28. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +784 -0
  29. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud.h +20 -0
  30. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Info.plist +0 -0
  31. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.abi.json +6726 -0
  32. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +207 -0
  33. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  34. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftinterface +207 -0
  35. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.abi.json +6712 -0
  36. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +207 -0
  37. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  38. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +207 -0
  39. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/module.modulemap +11 -0
  40. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/ShieldFraud +0 -0
  41. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/_CodeSignature/CodeResources +297 -0
  42. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/dSYMs/ShieldFraud.framework.dSYM/Contents/Info.plist +20 -0
  43. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/dSYMs/ShieldFraud.framework.dSYM/Contents/Resources/DWARF/ShieldFraud +0 -0
  44. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-Info.plist +26 -0
  45. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-acknowledgements.markdown +7 -0
  46. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-acknowledgements.plist +39 -0
  47. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-dummy.m +5 -0
  48. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-umbrella.h +16 -0
  49. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.debug.xcconfig +13 -0
  50. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.modulemap +6 -0
  51. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.release.xcconfig +13 -0
  52. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud-xcframeworks.sh +121 -0
  53. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.debug.xcconfig +14 -0
  54. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.release.xcconfig +14 -0
  55. package/ios/ShieldFraudPlugin.h +15 -0
  56. package/ios/ShieldFraudPlugin.m +90 -0
  57. package/ios/ShieldFraudPlugin.xcodeproj/project.pbxproj +326 -0
  58. package/ios/ShieldFraudPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
  59. package/ios/ShieldFraudPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  60. package/ios/ShieldFraudPlugin.xcodeproj/project.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  61. package/ios/ShieldFraudPlugin.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  62. package/ios/ShieldFraudPlugin.xcworkspace/contents.xcworkspacedata +10 -0
  63. package/ios/ShieldFraudPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  64. package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  65. package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +6 -0
  66. package/lib/commonjs/index.js +150 -0
  67. package/lib/commonjs/index.js.map +1 -0
  68. package/lib/module/index.js +148 -0
  69. package/lib/module/index.js.map +1 -0
  70. package/lib/typescript/index.d.ts +100 -0
  71. package/lib/typescript/index.d.ts.map +1 -0
  72. package/package.json +160 -0
  73. package/react-native-shield-fraud-plugin.podspec +19 -0
  74. package/src/index.tsx +173 -0
@@ -0,0 +1,784 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
4
+ #ifndef SHIELDFRAUD_SWIFT_H
5
+ #define SHIELDFRAUD_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wduplicate-method-match"
27
+ #pragma clang diagnostic ignored "-Wauto-import"
28
+ #if defined(__OBJC__)
29
+ #include <Foundation/Foundation.h>
30
+ #endif
31
+ #if defined(__cplusplus)
32
+ #include <cstdint>
33
+ #include <cstddef>
34
+ #include <cstdbool>
35
+ #else
36
+ #include <stdint.h>
37
+ #include <stddef.h>
38
+ #include <stdbool.h>
39
+ #endif
40
+
41
+ #if !defined(SWIFT_TYPEDEFS)
42
+ # define SWIFT_TYPEDEFS 1
43
+ # if __has_include(<uchar.h>)
44
+ # include <uchar.h>
45
+ # elif !defined(__cplusplus)
46
+ typedef uint_least16_t char16_t;
47
+ typedef uint_least32_t char32_t;
48
+ # endif
49
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
50
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
51
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
52
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
53
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
54
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
55
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
56
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
57
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
58
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
59
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
60
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
61
+ #endif
62
+
63
+ #if !defined(SWIFT_PASTE)
64
+ # define SWIFT_PASTE_HELPER(x, y) x##y
65
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
66
+ #endif
67
+ #if !defined(SWIFT_METATYPE)
68
+ # define SWIFT_METATYPE(X) Class
69
+ #endif
70
+ #if !defined(SWIFT_CLASS_PROPERTY)
71
+ # if __has_feature(objc_class_property)
72
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
73
+ # else
74
+ # define SWIFT_CLASS_PROPERTY(...)
75
+ # endif
76
+ #endif
77
+
78
+ #if __has_attribute(objc_runtime_name)
79
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
80
+ #else
81
+ # define SWIFT_RUNTIME_NAME(X)
82
+ #endif
83
+ #if __has_attribute(swift_name)
84
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
85
+ #else
86
+ # define SWIFT_COMPILE_NAME(X)
87
+ #endif
88
+ #if __has_attribute(objc_method_family)
89
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
90
+ #else
91
+ # define SWIFT_METHOD_FAMILY(X)
92
+ #endif
93
+ #if __has_attribute(noescape)
94
+ # define SWIFT_NOESCAPE __attribute__((noescape))
95
+ #else
96
+ # define SWIFT_NOESCAPE
97
+ #endif
98
+ #if __has_attribute(ns_consumed)
99
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
100
+ #else
101
+ # define SWIFT_RELEASES_ARGUMENT
102
+ #endif
103
+ #if __has_attribute(warn_unused_result)
104
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
105
+ #else
106
+ # define SWIFT_WARN_UNUSED_RESULT
107
+ #endif
108
+ #if __has_attribute(noreturn)
109
+ # define SWIFT_NORETURN __attribute__((noreturn))
110
+ #else
111
+ # define SWIFT_NORETURN
112
+ #endif
113
+ #if !defined(SWIFT_CLASS_EXTRA)
114
+ # define SWIFT_CLASS_EXTRA
115
+ #endif
116
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
117
+ # define SWIFT_PROTOCOL_EXTRA
118
+ #endif
119
+ #if !defined(SWIFT_ENUM_EXTRA)
120
+ # define SWIFT_ENUM_EXTRA
121
+ #endif
122
+ #if !defined(SWIFT_CLASS)
123
+ # if __has_attribute(objc_subclassing_restricted)
124
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
125
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
126
+ # else
127
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
128
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
129
+ # endif
130
+ #endif
131
+ #if !defined(SWIFT_RESILIENT_CLASS)
132
+ # if __has_attribute(objc_class_stub)
133
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
134
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
135
+ # else
136
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
137
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
138
+ # endif
139
+ #endif
140
+
141
+ #if !defined(SWIFT_PROTOCOL)
142
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
143
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
144
+ #endif
145
+
146
+ #if !defined(SWIFT_EXTENSION)
147
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
148
+ #endif
149
+
150
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
151
+ # if __has_attribute(objc_designated_initializer)
152
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
153
+ # else
154
+ # define OBJC_DESIGNATED_INITIALIZER
155
+ # endif
156
+ #endif
157
+ #if !defined(SWIFT_ENUM_ATTR)
158
+ # if defined(__has_attribute) && __has_attribute(enum_extensibility)
159
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
160
+ # else
161
+ # define SWIFT_ENUM_ATTR(_extensibility)
162
+ # endif
163
+ #endif
164
+ #if !defined(SWIFT_ENUM)
165
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
166
+ # if __has_feature(generalized_swift_name)
167
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
168
+ # else
169
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
170
+ # endif
171
+ #endif
172
+ #if !defined(SWIFT_UNAVAILABLE)
173
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
174
+ #endif
175
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
176
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
177
+ #endif
178
+ #if !defined(SWIFT_AVAILABILITY)
179
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
180
+ #endif
181
+ #if !defined(SWIFT_WEAK_IMPORT)
182
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
183
+ #endif
184
+ #if !defined(SWIFT_DEPRECATED)
185
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
186
+ #endif
187
+ #if !defined(SWIFT_DEPRECATED_MSG)
188
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
189
+ #endif
190
+ #if __has_feature(attribute_diagnose_if_objc)
191
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
192
+ #else
193
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
194
+ #endif
195
+ #if defined(__OBJC__)
196
+ #if !defined(IBSegueAction)
197
+ # define IBSegueAction
198
+ #endif
199
+ #endif
200
+ #if !defined(SWIFT_EXTERN)
201
+ # if defined(__cplusplus)
202
+ # define SWIFT_EXTERN extern "C"
203
+ # else
204
+ # define SWIFT_EXTERN extern
205
+ # endif
206
+ #endif
207
+ #if !defined(SWIFT_CALL)
208
+ # define SWIFT_CALL __attribute__((swiftcall))
209
+ #endif
210
+ #if defined(__cplusplus)
211
+ #if !defined(SWIFT_NOEXCEPT)
212
+ # define SWIFT_NOEXCEPT noexcept
213
+ #endif
214
+ #else
215
+ #if !defined(SWIFT_NOEXCEPT)
216
+ # define SWIFT_NOEXCEPT
217
+ #endif
218
+ #endif
219
+ #if defined(__cplusplus)
220
+ #if !defined(SWIFT_CXX_INT_DEFINED)
221
+ #define SWIFT_CXX_INT_DEFINED
222
+ namespace swift {
223
+ using Int = ptrdiff_t;
224
+ using UInt = size_t;
225
+ }
226
+ #endif
227
+ #endif
228
+ #if defined(__OBJC__)
229
+ #if __has_feature(modules)
230
+ #if __has_warning("-Watimport-in-framework-header")
231
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
232
+ #endif
233
+ @import Foundation;
234
+ @import ObjectiveC;
235
+ #endif
236
+
237
+ #endif
238
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
239
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
240
+ #if __has_warning("-Wpragma-clang-attribute")
241
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
242
+ #endif
243
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
244
+ #pragma clang diagnostic ignored "-Wnullability"
245
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
246
+
247
+ #if __has_attribute(external_source_symbol)
248
+ # pragma push_macro("any")
249
+ # undef any
250
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ShieldFraud",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
251
+ # pragma pop_macro("any")
252
+ #endif
253
+
254
+ #if defined(__OBJC__)
255
+ @class NSString;
256
+
257
+ SWIFT_CLASS("_TtC11ShieldFraud13BlockedDialog")
258
+ @interface BlockedDialog : NSObject
259
+ @property (nonatomic, readonly, copy) NSString * _Nonnull title;
260
+ @property (nonatomic, readonly, copy) NSString * _Nonnull body;
261
+ - (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title body:(NSString * _Nonnull)body OBJC_DESIGNATED_INITIALIZER;
262
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
263
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
264
+ @end
265
+
266
+ enum Environment : NSInteger;
267
+ enum LogLevel : NSInteger;
268
+ @protocol DeviceShieldCallback;
269
+
270
+ SWIFT_CLASS("_TtC11ShieldFraud13Configuration")
271
+ @interface Configuration : NSObject
272
+ /// set the environment, default is production
273
+ @property (nonatomic) enum Environment environment;
274
+ /// set secretKey provided by SHIELD
275
+ @property (nonatomic, readonly, copy) NSString * _Nonnull siteId;
276
+ /// set desired LogLevel for testing
277
+ @property (nonatomic) enum LogLevel logLevel;
278
+ /// set deviceShieldCallback for real-time Device Result response
279
+ @property (nonatomic, strong) id <DeviceShieldCallback> _Nullable deviceShieldCallback;
280
+ /// set partnerId, only if SHIELD mentions it
281
+ @property (nonatomic, copy) NSString * _Nullable partnerId;
282
+ /// for internal use only
283
+ @property (nonatomic, copy) NSString * _Nullable debugKey;
284
+ /// set secretKey provided by SHIELD
285
+ @property (nonatomic, readonly, copy) NSString * _Nonnull secretKey;
286
+ /// set customized BlockedDialog
287
+ @property (nonatomic, strong) BlockedDialog * _Nullable defaultBlockedDialog;
288
+ - (nonnull instancetype)initWithSiteId:(NSString * _Nonnull)siteId secretKey:(NSString * _Nonnull)secretKey OBJC_DESIGNATED_INITIALIZER;
289
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
290
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
291
+ @end
292
+
293
+
294
+ SWIFT_PROTOCOL("_TtP11ShieldFraud25DeviceResultStateDelegate_")
295
+ @protocol DeviceResultStateDelegate
296
+ - (void)isReady;
297
+ @end
298
+
299
+ @class NSError;
300
+
301
+ SWIFT_PROTOCOL("_TtP11ShieldFraud20DeviceShieldCallback_")
302
+ @protocol DeviceShieldCallback
303
+ - (void)didSuccessWithResult:(NSDictionary<NSString *, id> * _Nonnull)result;
304
+ - (void)didErrorWithError:(NSError * _Nonnull)error;
305
+ @end
306
+
307
+ typedef SWIFT_ENUM(NSInteger, Environment, open) {
308
+ EnvironmentProd = 0,
309
+ EnvironmentDev = 1,
310
+ EnvironmentStag = 2,
311
+ };
312
+
313
+ typedef SWIFT_ENUM(NSInteger, LogLevel, open) {
314
+ LogLevelDebug = 3,
315
+ LogLevelInfo = 2,
316
+ LogLevelNone = 1,
317
+ };
318
+
319
+
320
+ typedef SWIFT_ENUM(NSInteger, RiskStatus, open) {
321
+ RiskStatusAllow = 1,
322
+ RiskStatusReview = 2,
323
+ RiskStatusBlock = -3,
324
+ RiskStatusSuspend = -4,
325
+ RiskStatusUnknown = -100,
326
+ };
327
+
328
+
329
+ SWIFT_CLASS("_TtC11ShieldFraud6Shield")
330
+ @interface Shield : NSObject
331
+ /// sessionId is readable value
332
+ @property (nonatomic, readonly, copy) NSString * _Nonnull sessionId;
333
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
334
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
335
+ /// Set up Shield client
336
+ /// \param configuration Configuration of siteId and addtional configuration
337
+ ///
338
+ + (void)setUpWith:(Configuration * _Nonnull)configuration;
339
+ /// Get Shield sharedInstance
340
+ + (Shield * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
341
+ @end
342
+
343
+
344
+
345
+
346
+
347
+ @interface Shield (SWIFT_EXTENSION(ShieldFraud))
348
+ /// Send device’s additional attributes to SHIELD
349
+ /// \param screenName name of the screen where the function is called
350
+ ///
351
+ /// \param data additional data client wants to add, please discuss with Shield before using this field.
352
+ ///
353
+ - (void)sendAttributesWithScreenName:(NSString * _Nonnull)screenName data:(NSDictionary<NSString *, NSString *> * _Nonnull)data;
354
+ /// Send device’s additional attributes to SHIELD.
355
+ /// \param screenName name of the screen where the function is called
356
+ ///
357
+ /// \param data addtional data client wants to add, please discuss with Shield before using this field.
358
+ ///
359
+ /// \param handler handler which will be called when response or error is received.
360
+ ///
361
+ - (void)sendAttributesWithScreenName:(NSString * _Nonnull)screenName data:(NSDictionary<NSString *, NSString *> * _Nonnull)data :(void (^ _Nonnull)(BOOL, NSError * _Nullable))handler;
362
+ /// Get cached DeviceResult
363
+ - (NSDictionary<NSString *, id> * _Nullable)getLatestDeviceResult SWIFT_WARN_UNUSED_RESULT;
364
+ /// Get cached Error Response of DeviceResult
365
+ - (NSError * _Nullable)getErrorResponse SWIFT_WARN_UNUSED_RESULT;
366
+ /// Listener to check DeviceResult is ready. It returns on Main Thread
367
+ - (void)setDeviceResultStateListener:(void (^ _Nullable)(void))isReady;
368
+ /// Send device’s finger print to SHIELD
369
+ /// \param screenName name of the screen where the function is called
370
+ ///
371
+ - (void)sendDeviceSignatureWithScreenName:(NSString * _Nonnull)screenName;
372
+ /// Send device’s finger print to SHIELD.
373
+ /// \param screenName name of the screen where the function is called
374
+ ///
375
+ /// \param completionHandler handler which will be called when response or error is received. It returns on Main Thread
376
+ ///
377
+ - (void)sendDeviceSignatureWithScreenName:(NSString * _Nonnull)screenName completionHandler:(void (^ _Nonnull)(void))completionHandler;
378
+ @end
379
+
380
+
381
+
382
+
383
+ #endif
384
+ #if defined(__cplusplus)
385
+ #endif
386
+ #if __has_attribute(external_source_symbol)
387
+ # pragma clang attribute pop
388
+ #endif
389
+ #pragma clang diagnostic pop
390
+ #endif
391
+
392
+ #elif defined(__x86_64__) && __x86_64__
393
+ // Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
394
+ #ifndef SHIELDFRAUD_SWIFT_H
395
+ #define SHIELDFRAUD_SWIFT_H
396
+ #pragma clang diagnostic push
397
+ #pragma clang diagnostic ignored "-Wgcc-compat"
398
+
399
+ #if !defined(__has_include)
400
+ # define __has_include(x) 0
401
+ #endif
402
+ #if !defined(__has_attribute)
403
+ # define __has_attribute(x) 0
404
+ #endif
405
+ #if !defined(__has_feature)
406
+ # define __has_feature(x) 0
407
+ #endif
408
+ #if !defined(__has_warning)
409
+ # define __has_warning(x) 0
410
+ #endif
411
+
412
+ #if __has_include(<swift/objc-prologue.h>)
413
+ # include <swift/objc-prologue.h>
414
+ #endif
415
+
416
+ #pragma clang diagnostic ignored "-Wduplicate-method-match"
417
+ #pragma clang diagnostic ignored "-Wauto-import"
418
+ #if defined(__OBJC__)
419
+ #include <Foundation/Foundation.h>
420
+ #endif
421
+ #if defined(__cplusplus)
422
+ #include <cstdint>
423
+ #include <cstddef>
424
+ #include <cstdbool>
425
+ #else
426
+ #include <stdint.h>
427
+ #include <stddef.h>
428
+ #include <stdbool.h>
429
+ #endif
430
+
431
+ #if !defined(SWIFT_TYPEDEFS)
432
+ # define SWIFT_TYPEDEFS 1
433
+ # if __has_include(<uchar.h>)
434
+ # include <uchar.h>
435
+ # elif !defined(__cplusplus)
436
+ typedef uint_least16_t char16_t;
437
+ typedef uint_least32_t char32_t;
438
+ # endif
439
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
440
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
441
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
442
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
443
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
444
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
445
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
446
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
447
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
448
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
449
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
450
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
451
+ #endif
452
+
453
+ #if !defined(SWIFT_PASTE)
454
+ # define SWIFT_PASTE_HELPER(x, y) x##y
455
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
456
+ #endif
457
+ #if !defined(SWIFT_METATYPE)
458
+ # define SWIFT_METATYPE(X) Class
459
+ #endif
460
+ #if !defined(SWIFT_CLASS_PROPERTY)
461
+ # if __has_feature(objc_class_property)
462
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
463
+ # else
464
+ # define SWIFT_CLASS_PROPERTY(...)
465
+ # endif
466
+ #endif
467
+
468
+ #if __has_attribute(objc_runtime_name)
469
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
470
+ #else
471
+ # define SWIFT_RUNTIME_NAME(X)
472
+ #endif
473
+ #if __has_attribute(swift_name)
474
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
475
+ #else
476
+ # define SWIFT_COMPILE_NAME(X)
477
+ #endif
478
+ #if __has_attribute(objc_method_family)
479
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
480
+ #else
481
+ # define SWIFT_METHOD_FAMILY(X)
482
+ #endif
483
+ #if __has_attribute(noescape)
484
+ # define SWIFT_NOESCAPE __attribute__((noescape))
485
+ #else
486
+ # define SWIFT_NOESCAPE
487
+ #endif
488
+ #if __has_attribute(ns_consumed)
489
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
490
+ #else
491
+ # define SWIFT_RELEASES_ARGUMENT
492
+ #endif
493
+ #if __has_attribute(warn_unused_result)
494
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
495
+ #else
496
+ # define SWIFT_WARN_UNUSED_RESULT
497
+ #endif
498
+ #if __has_attribute(noreturn)
499
+ # define SWIFT_NORETURN __attribute__((noreturn))
500
+ #else
501
+ # define SWIFT_NORETURN
502
+ #endif
503
+ #if !defined(SWIFT_CLASS_EXTRA)
504
+ # define SWIFT_CLASS_EXTRA
505
+ #endif
506
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
507
+ # define SWIFT_PROTOCOL_EXTRA
508
+ #endif
509
+ #if !defined(SWIFT_ENUM_EXTRA)
510
+ # define SWIFT_ENUM_EXTRA
511
+ #endif
512
+ #if !defined(SWIFT_CLASS)
513
+ # if __has_attribute(objc_subclassing_restricted)
514
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
515
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
516
+ # else
517
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
518
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
519
+ # endif
520
+ #endif
521
+ #if !defined(SWIFT_RESILIENT_CLASS)
522
+ # if __has_attribute(objc_class_stub)
523
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
524
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
525
+ # else
526
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
527
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
528
+ # endif
529
+ #endif
530
+
531
+ #if !defined(SWIFT_PROTOCOL)
532
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
533
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
534
+ #endif
535
+
536
+ #if !defined(SWIFT_EXTENSION)
537
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
538
+ #endif
539
+
540
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
541
+ # if __has_attribute(objc_designated_initializer)
542
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
543
+ # else
544
+ # define OBJC_DESIGNATED_INITIALIZER
545
+ # endif
546
+ #endif
547
+ #if !defined(SWIFT_ENUM_ATTR)
548
+ # if defined(__has_attribute) && __has_attribute(enum_extensibility)
549
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
550
+ # else
551
+ # define SWIFT_ENUM_ATTR(_extensibility)
552
+ # endif
553
+ #endif
554
+ #if !defined(SWIFT_ENUM)
555
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
556
+ # if __has_feature(generalized_swift_name)
557
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
558
+ # else
559
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
560
+ # endif
561
+ #endif
562
+ #if !defined(SWIFT_UNAVAILABLE)
563
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
564
+ #endif
565
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
566
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
567
+ #endif
568
+ #if !defined(SWIFT_AVAILABILITY)
569
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
570
+ #endif
571
+ #if !defined(SWIFT_WEAK_IMPORT)
572
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
573
+ #endif
574
+ #if !defined(SWIFT_DEPRECATED)
575
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
576
+ #endif
577
+ #if !defined(SWIFT_DEPRECATED_MSG)
578
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
579
+ #endif
580
+ #if __has_feature(attribute_diagnose_if_objc)
581
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
582
+ #else
583
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
584
+ #endif
585
+ #if defined(__OBJC__)
586
+ #if !defined(IBSegueAction)
587
+ # define IBSegueAction
588
+ #endif
589
+ #endif
590
+ #if !defined(SWIFT_EXTERN)
591
+ # if defined(__cplusplus)
592
+ # define SWIFT_EXTERN extern "C"
593
+ # else
594
+ # define SWIFT_EXTERN extern
595
+ # endif
596
+ #endif
597
+ #if !defined(SWIFT_CALL)
598
+ # define SWIFT_CALL __attribute__((swiftcall))
599
+ #endif
600
+ #if defined(__cplusplus)
601
+ #if !defined(SWIFT_NOEXCEPT)
602
+ # define SWIFT_NOEXCEPT noexcept
603
+ #endif
604
+ #else
605
+ #if !defined(SWIFT_NOEXCEPT)
606
+ # define SWIFT_NOEXCEPT
607
+ #endif
608
+ #endif
609
+ #if defined(__cplusplus)
610
+ #if !defined(SWIFT_CXX_INT_DEFINED)
611
+ #define SWIFT_CXX_INT_DEFINED
612
+ namespace swift {
613
+ using Int = ptrdiff_t;
614
+ using UInt = size_t;
615
+ }
616
+ #endif
617
+ #endif
618
+ #if defined(__OBJC__)
619
+ #if __has_feature(modules)
620
+ #if __has_warning("-Watimport-in-framework-header")
621
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
622
+ #endif
623
+ @import Foundation;
624
+ @import ObjectiveC;
625
+ #endif
626
+
627
+ #endif
628
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
629
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
630
+ #if __has_warning("-Wpragma-clang-attribute")
631
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
632
+ #endif
633
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
634
+ #pragma clang diagnostic ignored "-Wnullability"
635
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
636
+
637
+ #if __has_attribute(external_source_symbol)
638
+ # pragma push_macro("any")
639
+ # undef any
640
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ShieldFraud",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
641
+ # pragma pop_macro("any")
642
+ #endif
643
+
644
+ #if defined(__OBJC__)
645
+ @class NSString;
646
+
647
+ SWIFT_CLASS("_TtC11ShieldFraud13BlockedDialog")
648
+ @interface BlockedDialog : NSObject
649
+ @property (nonatomic, readonly, copy) NSString * _Nonnull title;
650
+ @property (nonatomic, readonly, copy) NSString * _Nonnull body;
651
+ - (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title body:(NSString * _Nonnull)body OBJC_DESIGNATED_INITIALIZER;
652
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
653
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
654
+ @end
655
+
656
+ enum Environment : NSInteger;
657
+ enum LogLevel : NSInteger;
658
+ @protocol DeviceShieldCallback;
659
+
660
+ SWIFT_CLASS("_TtC11ShieldFraud13Configuration")
661
+ @interface Configuration : NSObject
662
+ /// set the environment, default is production
663
+ @property (nonatomic) enum Environment environment;
664
+ /// set secretKey provided by SHIELD
665
+ @property (nonatomic, readonly, copy) NSString * _Nonnull siteId;
666
+ /// set desired LogLevel for testing
667
+ @property (nonatomic) enum LogLevel logLevel;
668
+ /// set deviceShieldCallback for real-time Device Result response
669
+ @property (nonatomic, strong) id <DeviceShieldCallback> _Nullable deviceShieldCallback;
670
+ /// set partnerId, only if SHIELD mentions it
671
+ @property (nonatomic, copy) NSString * _Nullable partnerId;
672
+ /// for internal use only
673
+ @property (nonatomic, copy) NSString * _Nullable debugKey;
674
+ /// set secretKey provided by SHIELD
675
+ @property (nonatomic, readonly, copy) NSString * _Nonnull secretKey;
676
+ /// set customized BlockedDialog
677
+ @property (nonatomic, strong) BlockedDialog * _Nullable defaultBlockedDialog;
678
+ - (nonnull instancetype)initWithSiteId:(NSString * _Nonnull)siteId secretKey:(NSString * _Nonnull)secretKey OBJC_DESIGNATED_INITIALIZER;
679
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
680
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
681
+ @end
682
+
683
+
684
+ SWIFT_PROTOCOL("_TtP11ShieldFraud25DeviceResultStateDelegate_")
685
+ @protocol DeviceResultStateDelegate
686
+ - (void)isReady;
687
+ @end
688
+
689
+ @class NSError;
690
+
691
+ SWIFT_PROTOCOL("_TtP11ShieldFraud20DeviceShieldCallback_")
692
+ @protocol DeviceShieldCallback
693
+ - (void)didSuccessWithResult:(NSDictionary<NSString *, id> * _Nonnull)result;
694
+ - (void)didErrorWithError:(NSError * _Nonnull)error;
695
+ @end
696
+
697
+ typedef SWIFT_ENUM(NSInteger, Environment, open) {
698
+ EnvironmentProd = 0,
699
+ EnvironmentDev = 1,
700
+ EnvironmentStag = 2,
701
+ };
702
+
703
+ typedef SWIFT_ENUM(NSInteger, LogLevel, open) {
704
+ LogLevelDebug = 3,
705
+ LogLevelInfo = 2,
706
+ LogLevelNone = 1,
707
+ };
708
+
709
+
710
+ typedef SWIFT_ENUM(NSInteger, RiskStatus, open) {
711
+ RiskStatusAllow = 1,
712
+ RiskStatusReview = 2,
713
+ RiskStatusBlock = -3,
714
+ RiskStatusSuspend = -4,
715
+ RiskStatusUnknown = -100,
716
+ };
717
+
718
+
719
+ SWIFT_CLASS("_TtC11ShieldFraud6Shield")
720
+ @interface Shield : NSObject
721
+ /// sessionId is readable value
722
+ @property (nonatomic, readonly, copy) NSString * _Nonnull sessionId;
723
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
724
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
725
+ /// Set up Shield client
726
+ /// \param configuration Configuration of siteId and addtional configuration
727
+ ///
728
+ + (void)setUpWith:(Configuration * _Nonnull)configuration;
729
+ /// Get Shield sharedInstance
730
+ + (Shield * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
731
+ @end
732
+
733
+
734
+
735
+
736
+
737
+ @interface Shield (SWIFT_EXTENSION(ShieldFraud))
738
+ /// Send device’s additional attributes to SHIELD
739
+ /// \param screenName name of the screen where the function is called
740
+ ///
741
+ /// \param data additional data client wants to add, please discuss with Shield before using this field.
742
+ ///
743
+ - (void)sendAttributesWithScreenName:(NSString * _Nonnull)screenName data:(NSDictionary<NSString *, NSString *> * _Nonnull)data;
744
+ /// Send device’s additional attributes to SHIELD.
745
+ /// \param screenName name of the screen where the function is called
746
+ ///
747
+ /// \param data addtional data client wants to add, please discuss with Shield before using this field.
748
+ ///
749
+ /// \param handler handler which will be called when response or error is received.
750
+ ///
751
+ - (void)sendAttributesWithScreenName:(NSString * _Nonnull)screenName data:(NSDictionary<NSString *, NSString *> * _Nonnull)data :(void (^ _Nonnull)(BOOL, NSError * _Nullable))handler;
752
+ /// Get cached DeviceResult
753
+ - (NSDictionary<NSString *, id> * _Nullable)getLatestDeviceResult SWIFT_WARN_UNUSED_RESULT;
754
+ /// Get cached Error Response of DeviceResult
755
+ - (NSError * _Nullable)getErrorResponse SWIFT_WARN_UNUSED_RESULT;
756
+ /// Listener to check DeviceResult is ready. It returns on Main Thread
757
+ - (void)setDeviceResultStateListener:(void (^ _Nullable)(void))isReady;
758
+ /// Send device’s finger print to SHIELD
759
+ /// \param screenName name of the screen where the function is called
760
+ ///
761
+ - (void)sendDeviceSignatureWithScreenName:(NSString * _Nonnull)screenName;
762
+ /// Send device’s finger print to SHIELD.
763
+ /// \param screenName name of the screen where the function is called
764
+ ///
765
+ /// \param completionHandler handler which will be called when response or error is received. It returns on Main Thread
766
+ ///
767
+ - (void)sendDeviceSignatureWithScreenName:(NSString * _Nonnull)screenName completionHandler:(void (^ _Nonnull)(void))completionHandler;
768
+ @end
769
+
770
+
771
+
772
+
773
+ #endif
774
+ #if defined(__cplusplus)
775
+ #endif
776
+ #if __has_attribute(external_source_symbol)
777
+ # pragma clang attribute pop
778
+ #endif
779
+ #pragma clang diagnostic pop
780
+ #endif
781
+
782
+ #else
783
+ #error unsupported Swift architecture
784
+ #endif