react-native-shield-fraud-plugin 1.0.6 → 1.0.8

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 (53) hide show
  1. package/README.md +18 -12
  2. package/android/src/main/java/com/shieldfraudplugin/ShieldFraudPluginModule.java +141 -136
  3. package/ios/ShieldFraudPlugin.m +10 -3
  4. package/ios/ShieldFraudPlugin.xcodeproj/project.pbxproj +0 -44
  5. package/ios/ShieldFraudPlugin.xcodeproj/project.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  6. package/package.json +1 -1
  7. package/ios/Podfile +0 -10
  8. package/ios/Podfile.lock +0 -16
  9. package/ios/Pods/Manifest.lock +0 -16
  10. package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -536
  11. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/Pods-ShieldFraudPlugin.xcscheme +0 -58
  12. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/ShieldFraud.xcscheme +0 -58
  13. package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist +0 -21
  14. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/Info.plist +0 -40
  15. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +0 -425
  16. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud.h +0 -20
  17. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Info.plist +0 -0
  18. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.abi.json +0 -20535
  19. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -207
  20. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  21. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftinterface +0 -207
  22. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/module.modulemap +0 -11
  23. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/ShieldFraud +0 -0
  24. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/_CodeSignature/CodeResources +0 -222
  25. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +0 -846
  26. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud.h +0 -20
  27. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Info.plist +0 -0
  28. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -20535
  29. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -207
  30. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -207
  32. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -19653
  33. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -207
  34. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -207
  36. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/module.modulemap +0 -11
  37. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/ShieldFraud +0 -0
  38. package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/_CodeSignature/CodeResources +0 -297
  39. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-Info.plist +0 -26
  40. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-acknowledgements.markdown +0 -7
  41. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-acknowledgements.plist +0 -39
  42. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-dummy.m +0 -5
  43. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-umbrella.h +0 -16
  44. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.debug.xcconfig +0 -13
  45. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.modulemap +0 -6
  46. package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin.release.xcconfig +0 -13
  47. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud-xcframeworks.sh +0 -121
  48. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.debug.xcconfig +0 -15
  49. package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.release.xcconfig +0 -15
  50. package/ios/ShieldFraudPlugin.xcworkspace/contents.xcworkspacedata +0 -10
  51. package/ios/ShieldFraudPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  52. package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  53. package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
@@ -1,40 +0,0 @@
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>AvailableLibraries</key>
6
- <array>
7
- <dict>
8
- <key>LibraryIdentifier</key>
9
- <string>ios-arm64</string>
10
- <key>LibraryPath</key>
11
- <string>ShieldFraud.framework</string>
12
- <key>SupportedArchitectures</key>
13
- <array>
14
- <string>arm64</string>
15
- </array>
16
- <key>SupportedPlatform</key>
17
- <string>ios</string>
18
- </dict>
19
- <dict>
20
- <key>LibraryIdentifier</key>
21
- <string>ios-arm64_x86_64-simulator</string>
22
- <key>LibraryPath</key>
23
- <string>ShieldFraud.framework</string>
24
- <key>SupportedArchitectures</key>
25
- <array>
26
- <string>arm64</string>
27
- <string>x86_64</string>
28
- </array>
29
- <key>SupportedPlatform</key>
30
- <string>ios</string>
31
- <key>SupportedPlatformVariant</key>
32
- <string>simulator</string>
33
- </dict>
34
- </array>
35
- <key>CFBundlePackageType</key>
36
- <string>XFWK</string>
37
- <key>XCFrameworkFormatVersion</key>
38
- <string>1.0</string>
39
- </dict>
40
- </plist>
@@ -1,425 +0,0 @@
1
- #if 0
2
- #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
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 "-Wauto-import"
27
- #if defined(__OBJC__)
28
- #include <Foundation/Foundation.h>
29
- #endif
30
- #if defined(__cplusplus)
31
- #include <cstdint>
32
- #include <cstddef>
33
- #include <cstdbool>
34
- #include <cstring>
35
- #include <stdlib.h>
36
- #include <new>
37
- #include <type_traits>
38
- #else
39
- #include <stdint.h>
40
- #include <stddef.h>
41
- #include <stdbool.h>
42
- #include <string.h>
43
- #endif
44
- #if defined(__cplusplus)
45
- #if __has_include(<ptrauth.h>)
46
- # include <ptrauth.h>
47
- #else
48
- # ifndef __ptrauth_swift_value_witness_function_pointer
49
- # define __ptrauth_swift_value_witness_function_pointer(x)
50
- # endif
51
- #endif
52
- #endif
53
-
54
- #if !defined(SWIFT_TYPEDEFS)
55
- # define SWIFT_TYPEDEFS 1
56
- # if __has_include(<uchar.h>)
57
- # include <uchar.h>
58
- # elif !defined(__cplusplus)
59
- typedef uint_least16_t char16_t;
60
- typedef uint_least32_t char32_t;
61
- # endif
62
- typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
63
- typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
64
- typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
65
- typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
66
- typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
67
- typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
68
- typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
69
- typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
70
- typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
71
- typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
72
- typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
73
- typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
74
- #endif
75
-
76
- #if !defined(SWIFT_PASTE)
77
- # define SWIFT_PASTE_HELPER(x, y) x##y
78
- # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
79
- #endif
80
- #if !defined(SWIFT_METATYPE)
81
- # define SWIFT_METATYPE(X) Class
82
- #endif
83
- #if !defined(SWIFT_CLASS_PROPERTY)
84
- # if __has_feature(objc_class_property)
85
- # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
86
- # else
87
- # define SWIFT_CLASS_PROPERTY(...)
88
- # endif
89
- #endif
90
- #if !defined(SWIFT_RUNTIME_NAME)
91
- # if __has_attribute(objc_runtime_name)
92
- # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
93
- # else
94
- # define SWIFT_RUNTIME_NAME(X)
95
- # endif
96
- #endif
97
- #if !defined(SWIFT_COMPILE_NAME)
98
- # if __has_attribute(swift_name)
99
- # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
100
- # else
101
- # define SWIFT_COMPILE_NAME(X)
102
- # endif
103
- #endif
104
- #if !defined(SWIFT_METHOD_FAMILY)
105
- # if __has_attribute(objc_method_family)
106
- # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
107
- # else
108
- # define SWIFT_METHOD_FAMILY(X)
109
- # endif
110
- #endif
111
- #if !defined(SWIFT_NOESCAPE)
112
- # if __has_attribute(noescape)
113
- # define SWIFT_NOESCAPE __attribute__((noescape))
114
- # else
115
- # define SWIFT_NOESCAPE
116
- # endif
117
- #endif
118
- #if !defined(SWIFT_RELEASES_ARGUMENT)
119
- # if __has_attribute(ns_consumed)
120
- # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
121
- # else
122
- # define SWIFT_RELEASES_ARGUMENT
123
- # endif
124
- #endif
125
- #if !defined(SWIFT_WARN_UNUSED_RESULT)
126
- # if __has_attribute(warn_unused_result)
127
- # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
128
- # else
129
- # define SWIFT_WARN_UNUSED_RESULT
130
- # endif
131
- #endif
132
- #if !defined(SWIFT_NORETURN)
133
- # if __has_attribute(noreturn)
134
- # define SWIFT_NORETURN __attribute__((noreturn))
135
- # else
136
- # define SWIFT_NORETURN
137
- # endif
138
- #endif
139
- #if !defined(SWIFT_CLASS_EXTRA)
140
- # define SWIFT_CLASS_EXTRA
141
- #endif
142
- #if !defined(SWIFT_PROTOCOL_EXTRA)
143
- # define SWIFT_PROTOCOL_EXTRA
144
- #endif
145
- #if !defined(SWIFT_ENUM_EXTRA)
146
- # define SWIFT_ENUM_EXTRA
147
- #endif
148
- #if !defined(SWIFT_CLASS)
149
- # if __has_attribute(objc_subclassing_restricted)
150
- # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
151
- # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
152
- # else
153
- # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
154
- # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
155
- # endif
156
- #endif
157
- #if !defined(SWIFT_RESILIENT_CLASS)
158
- # if __has_attribute(objc_class_stub)
159
- # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
160
- # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
161
- # else
162
- # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
163
- # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
164
- # endif
165
- #endif
166
- #if !defined(SWIFT_PROTOCOL)
167
- # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
168
- # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
169
- #endif
170
- #if !defined(SWIFT_EXTENSION)
171
- # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
172
- #endif
173
- #if !defined(OBJC_DESIGNATED_INITIALIZER)
174
- # if __has_attribute(objc_designated_initializer)
175
- # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
176
- # else
177
- # define OBJC_DESIGNATED_INITIALIZER
178
- # endif
179
- #endif
180
- #if !defined(SWIFT_ENUM_ATTR)
181
- # if __has_attribute(enum_extensibility)
182
- # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
183
- # else
184
- # define SWIFT_ENUM_ATTR(_extensibility)
185
- # endif
186
- #endif
187
- #if !defined(SWIFT_ENUM)
188
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
189
- # if __has_feature(generalized_swift_name)
190
- # 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
191
- # else
192
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
193
- # endif
194
- #endif
195
- #if !defined(SWIFT_UNAVAILABLE)
196
- # define SWIFT_UNAVAILABLE __attribute__((unavailable))
197
- #endif
198
- #if !defined(SWIFT_UNAVAILABLE_MSG)
199
- # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
200
- #endif
201
- #if !defined(SWIFT_AVAILABILITY)
202
- # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
203
- #endif
204
- #if !defined(SWIFT_WEAK_IMPORT)
205
- # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
206
- #endif
207
- #if !defined(SWIFT_DEPRECATED)
208
- # define SWIFT_DEPRECATED __attribute__((deprecated))
209
- #endif
210
- #if !defined(SWIFT_DEPRECATED_MSG)
211
- # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
212
- #endif
213
- #if !defined(SWIFT_DEPRECATED_OBJC)
214
- # if __has_feature(attribute_diagnose_if_objc)
215
- # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
216
- # else
217
- # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
218
- # endif
219
- #endif
220
- #if defined(__OBJC__)
221
- #if !defined(IBSegueAction)
222
- # define IBSegueAction
223
- #endif
224
- #endif
225
- #if !defined(SWIFT_EXTERN)
226
- # if defined(__cplusplus)
227
- # define SWIFT_EXTERN extern "C"
228
- # else
229
- # define SWIFT_EXTERN extern
230
- # endif
231
- #endif
232
- #if !defined(SWIFT_CALL)
233
- # define SWIFT_CALL __attribute__((swiftcall))
234
- #endif
235
- #if !defined(SWIFT_INDIRECT_RESULT)
236
- # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
237
- #endif
238
- #if !defined(SWIFT_CONTEXT)
239
- # define SWIFT_CONTEXT __attribute__((swift_context))
240
- #endif
241
- #if !defined(SWIFT_ERROR_RESULT)
242
- # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
243
- #endif
244
- #if defined(__cplusplus)
245
- # define SWIFT_NOEXCEPT noexcept
246
- #else
247
- # define SWIFT_NOEXCEPT
248
- #endif
249
- #if defined(_WIN32)
250
- #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
251
- # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
252
- #endif
253
- #else
254
- #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
255
- # define SWIFT_IMPORT_STDLIB_SYMBOL
256
- #endif
257
- #endif
258
- #if defined(__OBJC__)
259
- #if __has_feature(objc_modules)
260
- #if __has_warning("-Watimport-in-framework-header")
261
- #pragma clang diagnostic ignored "-Watimport-in-framework-header"
262
- #endif
263
- @import Foundation;
264
- @import ObjectiveC;
265
- #endif
266
-
267
- #endif
268
- #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
269
- #pragma clang diagnostic ignored "-Wduplicate-method-arg"
270
- #if __has_warning("-Wpragma-clang-attribute")
271
- # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
272
- #endif
273
- #pragma clang diagnostic ignored "-Wunknown-pragmas"
274
- #pragma clang diagnostic ignored "-Wnullability"
275
- #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
276
-
277
- #if __has_attribute(external_source_symbol)
278
- # pragma push_macro("any")
279
- # undef any
280
- # 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))
281
- # pragma pop_macro("any")
282
- #endif
283
-
284
- #if defined(__OBJC__)
285
- @class NSString;
286
-
287
- SWIFT_CLASS("_TtC11ShieldFraud13BlockedDialog")
288
- @interface BlockedDialog : NSObject
289
- @property (nonatomic, readonly, copy) NSString * _Nonnull title;
290
- @property (nonatomic, readonly, copy) NSString * _Nonnull body;
291
- - (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title body:(NSString * _Nonnull)body OBJC_DESIGNATED_INITIALIZER;
292
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
293
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
294
- @end
295
-
296
- enum Environment : NSInteger;
297
- enum LogLevel : NSInteger;
298
- @protocol DeviceShieldCallback;
299
-
300
- SWIFT_CLASS("_TtC11ShieldFraud13Configuration")
301
- @interface Configuration : NSObject
302
- /// set the environment, default is production
303
- @property (nonatomic) enum Environment environment;
304
- /// set secretKey provided by SHIELD
305
- @property (nonatomic, readonly, copy) NSString * _Nonnull siteId;
306
- /// set desired LogLevel for testing
307
- @property (nonatomic) enum LogLevel logLevel;
308
- /// set deviceShieldCallback for real-time Device Result response
309
- @property (nonatomic, strong) id <DeviceShieldCallback> _Nullable deviceShieldCallback;
310
- /// set partnerId, only if SHIELD mentions it
311
- @property (nonatomic, copy) NSString * _Nullable partnerId;
312
- /// for internal use only
313
- @property (nonatomic, copy) NSString * _Nullable debugKey;
314
- /// set secretKey provided by SHIELD
315
- @property (nonatomic, readonly, copy) NSString * _Nonnull secretKey;
316
- /// set customized BlockedDialog
317
- @property (nonatomic, strong) BlockedDialog * _Nullable defaultBlockedDialog;
318
- - (nonnull instancetype)initWithSiteId:(NSString * _Nonnull)siteId secretKey:(NSString * _Nonnull)secretKey OBJC_DESIGNATED_INITIALIZER;
319
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
320
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
321
- @end
322
-
323
-
324
- SWIFT_PROTOCOL("_TtP11ShieldFraud25DeviceResultStateDelegate_")
325
- @protocol DeviceResultStateDelegate
326
- - (void)isReady;
327
- @end
328
-
329
- @class NSError;
330
-
331
- SWIFT_PROTOCOL("_TtP11ShieldFraud20DeviceShieldCallback_")
332
- @protocol DeviceShieldCallback
333
- - (void)didSuccessWithResult:(NSDictionary<NSString *, id> * _Nonnull)result;
334
- - (void)didErrorWithError:(NSError * _Nonnull)error;
335
- @end
336
-
337
- typedef SWIFT_ENUM(NSInteger, Environment, open) {
338
- EnvironmentProd = 0,
339
- EnvironmentDev = 1,
340
- EnvironmentStag = 2,
341
- };
342
-
343
- typedef SWIFT_ENUM(NSInteger, LogLevel, open) {
344
- LogLevelDebug = 3,
345
- LogLevelInfo = 2,
346
- LogLevelNone = 1,
347
- };
348
-
349
-
350
- typedef SWIFT_ENUM(NSInteger, RiskStatus, open) {
351
- RiskStatusAllow = 1,
352
- RiskStatusReview = 2,
353
- RiskStatusBlock = -3,
354
- RiskStatusSuspend = -4,
355
- RiskStatusUnknown = -100,
356
- };
357
-
358
-
359
- SWIFT_CLASS("_TtC11ShieldFraud6Shield")
360
- @interface Shield : NSObject
361
- /// sessionId is readable value
362
- @property (nonatomic, readonly, copy) NSString * _Nonnull sessionId;
363
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
364
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
365
- /// Set up Shield client
366
- /// \param configuration Configuration of siteId and addtional configuration
367
- ///
368
- + (void)setUpWith:(Configuration * _Nonnull)configuration;
369
- /// Get Shield sharedInstance
370
- + (Shield * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
371
- @end
372
-
373
-
374
-
375
-
376
-
377
- @interface Shield (SWIFT_EXTENSION(ShieldFraud))
378
- /// Send device’s additional attributes to SHIELD
379
- /// \param screenName name of the screen where the function is called
380
- ///
381
- /// \param data additional data client wants to add, please discuss with Shield before using this field.
382
- ///
383
- - (void)sendAttributesWithScreenName:(NSString * _Nonnull)screenName data:(NSDictionary<NSString *, NSString *> * _Nonnull)data;
384
- /// Send device’s additional attributes to SHIELD.
385
- /// \param screenName name of the screen where the function is called
386
- ///
387
- /// \param data addtional data client wants to add, please discuss with Shield before using this field.
388
- ///
389
- /// \param handler handler which will be called when response or error is received.
390
- ///
391
- - (void)sendAttributesWithScreenName:(NSString * _Nonnull)screenName data:(NSDictionary<NSString *, NSString *> * _Nonnull)data :(void (^ _Nonnull)(BOOL, NSError * _Nullable))handler;
392
- /// Get cached DeviceResult
393
- - (NSDictionary<NSString *, id> * _Nullable)getLatestDeviceResult SWIFT_WARN_UNUSED_RESULT;
394
- /// Get cached Error Response of DeviceResult
395
- - (NSError * _Nullable)getErrorResponse SWIFT_WARN_UNUSED_RESULT;
396
- /// Listener to check DeviceResult is ready. It returns on Main Thread
397
- - (void)setDeviceResultStateListener:(void (^ _Nullable)(void))isReady;
398
- /// Send device’s finger print to SHIELD
399
- /// \param screenName name of the screen where the function is called
400
- ///
401
- - (void)sendDeviceSignatureWithScreenName:(NSString * _Nonnull)screenName;
402
- /// Send device’s finger print to SHIELD.
403
- /// \param screenName name of the screen where the function is called
404
- ///
405
- /// \param completionHandler handler which will be called when response or error is received. It returns on Main Thread
406
- ///
407
- - (void)sendDeviceSignatureWithScreenName:(NSString * _Nonnull)screenName completionHandler:(void (^ _Nonnull)(void))completionHandler;
408
- @end
409
-
410
-
411
-
412
-
413
-
414
- #endif
415
- #if defined(__cplusplus)
416
- #endif
417
- #if __has_attribute(external_source_symbol)
418
- # pragma clang attribute pop
419
- #endif
420
- #pragma clang diagnostic pop
421
- #endif
422
-
423
- #else
424
- #error unsupported Swift architecture
425
- #endif
@@ -1,20 +0,0 @@
1
- //
2
- // ShieldFraud.h
3
- // Shield
4
- //
5
- // Created by Poe Poe Myint Swe on 9/1/20.
6
- // Copyright © 2020 Shield. All rights reserved.
7
- //
8
-
9
- #import <UIKit/UIKit.h>
10
- #import <CommonCrypto/CommonHMAC.h>
11
-
12
- //! Project version number for Shield.
13
- FOUNDATION_EXPORT double ShieldVersionNumber;
14
-
15
- //! Project version string for Shield.
16
- FOUNDATION_EXPORT const unsigned char ShieldVersionString[];
17
-
18
- // In this header, you should import all the public headers of your framework using statements like #import <Shield/PublicHeader.h>
19
-
20
-