react-native-shield-fraud-plugin 1.0.3 → 1.0.5
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.
- package/README.md +56 -1
- package/android/src/main/java/com/shieldfraudplugin/ShieldFraudPluginModule.java +2 -1
- package/ios/Podfile.lock +4 -4
- package/ios/Pods/Manifest.lock +4 -4
- package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist +0 -4
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/Info.plist +0 -4
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +88 -57
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Info.plist +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.abi.json +14452 -643
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -2
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios.swiftinterface +2 -2
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/ShieldFraud +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/ShieldFraud.framework/_CodeSignature/CodeResources +19 -19
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Headers/ShieldFraud-Swift.h +176 -114
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Info.plist +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.abi.json +14472 -663
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -2
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -2
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.abi.json +13587 -646
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -2
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/Modules/ShieldFraud.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -2
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/ShieldFraud +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/ShieldFraud.framework/_CodeSignature/CodeResources +34 -34
- package/ios/Pods/Target Support Files/Pods-ShieldFraudPlugin/Pods-ShieldFraudPlugin-Info.plist +1 -1
- package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.debug.xcconfig +1 -0
- package/ios/Pods/Target Support Files/ShieldFraud/ShieldFraud.release.xcconfig +1 -0
- package/ios/ShieldFraudPlugin.m +7 -9
- package/ios/ShieldFraudPlugin.xcodeproj/project.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/ShieldFraudPlugin.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist +1 -1
- package/ios/ShieldFraudPlugin.xcworkspace/xcuserdata/deepakraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/lib/commonjs/index.js +18 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +18 -4
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/index.d.ts +7 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +19 -5
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/dSYMs/ShieldFraud.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64/dSYMs/ShieldFraud.framework.dSYM/Contents/Resources/DWARF/ShieldFraud +0 -0
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/dSYMs/ShieldFraud.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/ShieldFraud/ShieldFraud.xcframework/ios-arm64_x86_64-simulator/dSYMs/ShieldFraud.framework.dSYM/Contents/Resources/DWARF/ShieldFraud +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ React Native Plugin for Shield Fraud (www.shield.com)
|
|
|
4
4
|
|
|
5
5
|
React Native Shield Fraud Plugin helps developers to assess malicious activities performed on mobile devices and return risk intelligence based on user's behaviour. It collects device's fingerprint, social metrics and network information.
|
|
6
6
|
|
|
7
|
-
There are
|
|
7
|
+
There are few steps to getting started with the SHIELD SDK:
|
|
8
8
|
|
|
9
9
|
1. [Integrate the SDK](#integrate-the-sdk)
|
|
10
10
|
|
|
@@ -16,6 +16,9 @@ There are four steps to getting started with the SHIELD SDK:
|
|
|
16
16
|
|
|
17
17
|
5. [Send Custom Attributes](#send-custom-attributes)
|
|
18
18
|
|
|
19
|
+
6. [Migration from BRIDGE CODE to PLUGIN](#migration-from-bridge-code-to-plugin)
|
|
20
|
+
|
|
21
|
+
|
|
19
22
|
|
|
20
23
|
### Integrate the SDK
|
|
21
24
|
|
|
@@ -158,4 +161,56 @@ ShieldFraud.isSDKready(async (isReady: boolean) => {
|
|
|
158
161
|
}
|
|
159
162
|
```
|
|
160
163
|
|
|
164
|
+
### Migration from BRIDGE CODE to PLUGIN
|
|
165
|
+
If you've been using the old method of integrating the React Native bridge code for the Shield Fraud SDK on iOS and Android, follow these steps to migrate to our plugin.
|
|
166
|
+
|
|
167
|
+
#### iOS Migration Steps
|
|
168
|
+
|
|
169
|
+
**1. Remove Old Pod Dependency:**
|
|
170
|
+
Open your iOS project's Podfile and remove the line `pod 'ShieldFraud'`. Then, in your project's root directory, run `pod deintegrate` followed by `pod install` to ensure the old ShieldFraud dependency is completely removed.
|
|
171
|
+
|
|
172
|
+
**2. Remove Old Bridge Code Files:**
|
|
173
|
+
In your Xcode project's file explorer, locate and remove the files `ShieldModule.h` and `ShieldModule.m`. Remove all these references as they are no longer needed.
|
|
174
|
+
|
|
175
|
+
**3. Clean the Project:**
|
|
176
|
+
Open your Xcode project. Go to `"Product"` in the top menu and select `"Clean Build Folder"` to make sure any residual build artifacts related to the old ShieldFraud library are removed.
|
|
177
|
+
|
|
178
|
+
**4. Update React Native Project:**
|
|
179
|
+
In your React Native project, search for any code that references the old `ShieldModule`. Remove all these references as they are no longer needed.
|
|
180
|
+
|
|
181
|
+
**5. Follow Plugin Integration Steps:**
|
|
182
|
+
Now that you've cleaned up the old bridge code, follow the integration steps outlined in the documentation under "Integrate the SDK" section, starting from the step of installing the plugin using npm or yarn.
|
|
183
|
+
|
|
184
|
+
#### Android Migration Steps
|
|
185
|
+
If you've been using the old method of integrating the React Native bridge code for the Shield Fraud SDK on Android, follow these steps to migrate to our plugin.
|
|
186
|
+
|
|
187
|
+
**1. Remove Old Dependencies:**
|
|
188
|
+
In your `app/build.gradle` file, locate and remove the line:
|
|
189
|
+
```
|
|
190
|
+
implementation 'com.shield.android:shield-fraud:1.5.+'
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**2. Update Android Settings:**
|
|
194
|
+
In your `settings.gradle` or project level `build.gradle` file from the `repositories` block, locate and remove the `maven url`:
|
|
195
|
+
```
|
|
196
|
+
allprojects {
|
|
197
|
+
repositories {
|
|
198
|
+
maven {
|
|
199
|
+
url "https://cashshield-sdk.s3.amazonaws.com/release/"
|
|
200
|
+
}
|
|
201
|
+
...
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
This is the maven url that you no longer need with the new plugin approach.
|
|
206
|
+
|
|
207
|
+
**3. Remove Old Bridge Code:**
|
|
208
|
+
In your Android project, if you have a ShieldModule.java file as part of the old bridge code integration, you can safely remove it.
|
|
209
|
+
|
|
210
|
+
**4. Update React Native Project:**
|
|
211
|
+
In your React Native project, search for any code that references the old ShieldModule in Java code. Also remove ShieldModule from ReactPackage, Remove all these references as they are no longer needed.
|
|
212
|
+
|
|
213
|
+
**5. Follow Plugin Integration Steps:**
|
|
214
|
+
Now that you've cleaned up the old bridge code, follow the integration steps outlined in the documentation under "Integrate the SDK" section, starting from the step of installing the plugin using npm or yarn.
|
|
161
215
|
|
|
216
|
+
By following these steps, you'll successfully migrate your React Native project from the old bridge code integration to the new Shield Fraud plugin. This migration will make your project more maintainable and allow you to take advantage of the new features and improvements offered by the plugin.
|
|
@@ -42,7 +42,8 @@ public class ShieldFraudPluginModule extends ReactContextBaseJavaModule implemen
|
|
|
42
42
|
return NAME;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
46
|
+
public boolean isShieldInitialized() {
|
|
46
47
|
try {
|
|
47
48
|
return Shield.getInstance() != null;
|
|
48
49
|
} catch (IllegalStateException e) {
|
package/ios/Podfile.lock
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- ShieldFraud (1.5.
|
|
2
|
+
- ShieldFraud (1.5.28)
|
|
3
3
|
|
|
4
4
|
DEPENDENCIES:
|
|
5
5
|
- ShieldFraud
|
|
@@ -9,8 +9,8 @@ SPEC REPOS:
|
|
|
9
9
|
- ShieldFraud
|
|
10
10
|
|
|
11
11
|
SPEC CHECKSUMS:
|
|
12
|
-
ShieldFraud:
|
|
12
|
+
ShieldFraud: d79af5280f65ba8b99188bffec32c33df18931ff
|
|
13
13
|
|
|
14
|
-
PODFILE CHECKSUM:
|
|
14
|
+
PODFILE CHECKSUM: bb1ff44dc7cfd449bde1bb035f6a1eb25a54d48c
|
|
15
15
|
|
|
16
|
-
COCOAPODS: 1.
|
|
16
|
+
COCOAPODS: 1.12.1
|
package/ios/Pods/Manifest.lock
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
PODS:
|
|
2
|
-
- ShieldFraud (1.5.
|
|
2
|
+
- ShieldFraud (1.5.28)
|
|
3
3
|
|
|
4
4
|
DEPENDENCIES:
|
|
5
5
|
- ShieldFraud
|
|
@@ -9,8 +9,8 @@ SPEC REPOS:
|
|
|
9
9
|
- ShieldFraud
|
|
10
10
|
|
|
11
11
|
SPEC CHECKSUMS:
|
|
12
|
-
ShieldFraud:
|
|
12
|
+
ShieldFraud: d79af5280f65ba8b99188bffec32c33df18931ff
|
|
13
13
|
|
|
14
|
-
PODFILE CHECKSUM:
|
|
14
|
+
PODFILE CHECKSUM: bb1ff44dc7cfd449bde1bb035f6a1eb25a54d48c
|
|
15
15
|
|
|
16
|
-
COCOAPODS: 1.
|
|
16
|
+
COCOAPODS: 1.12.1
|
package/ios/Pods/Pods.xcodeproj/xcuserdata/deepakraj.xcuserdatad/xcschemes/xcschememanagement.plist
CHANGED
|
@@ -8,15 +8,11 @@
|
|
|
8
8
|
<dict>
|
|
9
9
|
<key>isShown</key>
|
|
10
10
|
<false/>
|
|
11
|
-
<key>orderHint</key>
|
|
12
|
-
<integer>0</integer>
|
|
13
11
|
</dict>
|
|
14
12
|
<key>ShieldFraud.xcscheme</key>
|
|
15
13
|
<dict>
|
|
16
14
|
<key>isShown</key>
|
|
17
15
|
<false/>
|
|
18
|
-
<key>orderHint</key>
|
|
19
|
-
<integer>1</integer>
|
|
20
16
|
</dict>
|
|
21
17
|
</dict>
|
|
22
18
|
<key>SuppressBuildableAutocreation</key>
|
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
<key>AvailableLibraries</key>
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
|
-
<key>DebugSymbolsPath</key>
|
|
9
|
-
<string>dSYMs</string>
|
|
10
8
|
<key>LibraryIdentifier</key>
|
|
11
9
|
<string>ios-arm64</string>
|
|
12
10
|
<key>LibraryPath</key>
|
|
@@ -19,8 +17,6 @@
|
|
|
19
17
|
<string>ios</string>
|
|
20
18
|
</dict>
|
|
21
19
|
<dict>
|
|
22
|
-
<key>DebugSymbolsPath</key>
|
|
23
|
-
<string>dSYMs</string>
|
|
24
20
|
<key>LibraryIdentifier</key>
|
|
25
21
|
<string>ios-arm64_x86_64-simulator</string>
|
|
26
22
|
<key>LibraryPath</key>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.
|
|
3
|
+
// Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
|
|
4
4
|
#ifndef SHIELDFRAUD_SWIFT_H
|
|
5
5
|
#define SHIELDFRAUD_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
# include <swift/objc-prologue.h>
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
|
-
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
27
26
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
28
27
|
#if defined(__OBJC__)
|
|
29
28
|
#include <Foundation/Foundation.h>
|
|
@@ -32,10 +31,24 @@
|
|
|
32
31
|
#include <cstdint>
|
|
33
32
|
#include <cstddef>
|
|
34
33
|
#include <cstdbool>
|
|
34
|
+
#include <cstring>
|
|
35
|
+
#include <stdlib.h>
|
|
36
|
+
#include <new>
|
|
37
|
+
#include <type_traits>
|
|
35
38
|
#else
|
|
36
39
|
#include <stdint.h>
|
|
37
40
|
#include <stddef.h>
|
|
38
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
|
|
39
52
|
#endif
|
|
40
53
|
|
|
41
54
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -71,53 +84,66 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
71
84
|
# if __has_feature(objc_class_property)
|
|
72
85
|
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
73
86
|
# else
|
|
74
|
-
# define SWIFT_CLASS_PROPERTY(...)
|
|
87
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
75
88
|
# endif
|
|
76
89
|
#endif
|
|
77
|
-
|
|
78
|
-
#if __has_attribute(objc_runtime_name)
|
|
79
|
-
#
|
|
80
|
-
#else
|
|
81
|
-
#
|
|
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
|
|
82
96
|
#endif
|
|
83
|
-
#if
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
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
|
|
87
103
|
#endif
|
|
88
|
-
#if
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
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
|
|
92
110
|
#endif
|
|
93
|
-
#if
|
|
94
|
-
#
|
|
95
|
-
#
|
|
96
|
-
#
|
|
111
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
112
|
+
# if __has_attribute(noescape)
|
|
113
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
114
|
+
# else
|
|
115
|
+
# define SWIFT_NOESCAPE
|
|
116
|
+
# endif
|
|
97
117
|
#endif
|
|
98
|
-
#if
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
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
|
|
102
124
|
#endif
|
|
103
|
-
#if
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
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
|
|
107
131
|
#endif
|
|
108
|
-
#if
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
132
|
+
#if !defined(SWIFT_NORETURN)
|
|
133
|
+
# if __has_attribute(noreturn)
|
|
134
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
135
|
+
# else
|
|
136
|
+
# define SWIFT_NORETURN
|
|
137
|
+
# endif
|
|
112
138
|
#endif
|
|
113
139
|
#if !defined(SWIFT_CLASS_EXTRA)
|
|
114
|
-
# define SWIFT_CLASS_EXTRA
|
|
140
|
+
# define SWIFT_CLASS_EXTRA
|
|
115
141
|
#endif
|
|
116
142
|
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
117
|
-
# define SWIFT_PROTOCOL_EXTRA
|
|
143
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
118
144
|
#endif
|
|
119
145
|
#if !defined(SWIFT_ENUM_EXTRA)
|
|
120
|
-
# define SWIFT_ENUM_EXTRA
|
|
146
|
+
# define SWIFT_ENUM_EXTRA
|
|
121
147
|
#endif
|
|
122
148
|
#if !defined(SWIFT_CLASS)
|
|
123
149
|
# if __has_attribute(objc_subclassing_restricted)
|
|
@@ -137,28 +163,25 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
137
163
|
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
138
164
|
# endif
|
|
139
165
|
#endif
|
|
140
|
-
|
|
141
166
|
#if !defined(SWIFT_PROTOCOL)
|
|
142
167
|
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
143
168
|
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
144
169
|
#endif
|
|
145
|
-
|
|
146
170
|
#if !defined(SWIFT_EXTENSION)
|
|
147
171
|
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
148
172
|
#endif
|
|
149
|
-
|
|
150
173
|
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
151
174
|
# if __has_attribute(objc_designated_initializer)
|
|
152
175
|
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
153
176
|
# else
|
|
154
|
-
# define OBJC_DESIGNATED_INITIALIZER
|
|
177
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
155
178
|
# endif
|
|
156
179
|
#endif
|
|
157
180
|
#if !defined(SWIFT_ENUM_ATTR)
|
|
158
|
-
# if
|
|
181
|
+
# if __has_attribute(enum_extensibility)
|
|
159
182
|
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
160
183
|
# else
|
|
161
|
-
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
184
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
162
185
|
# endif
|
|
163
186
|
#endif
|
|
164
187
|
#if !defined(SWIFT_ENUM)
|
|
@@ -187,14 +210,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
187
210
|
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
188
211
|
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
189
212
|
#endif
|
|
190
|
-
#if
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
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
|
|
194
219
|
#endif
|
|
195
220
|
#if defined(__OBJC__)
|
|
196
221
|
#if !defined(IBSegueAction)
|
|
197
|
-
# define IBSegueAction
|
|
222
|
+
# define IBSegueAction
|
|
198
223
|
#endif
|
|
199
224
|
#endif
|
|
200
225
|
#if !defined(SWIFT_EXTERN)
|
|
@@ -207,26 +232,31 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
207
232
|
#if !defined(SWIFT_CALL)
|
|
208
233
|
# define SWIFT_CALL __attribute__((swiftcall))
|
|
209
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
|
|
210
244
|
#if defined(__cplusplus)
|
|
211
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
212
245
|
# define SWIFT_NOEXCEPT noexcept
|
|
213
|
-
#endif
|
|
214
246
|
#else
|
|
215
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
216
247
|
# define SWIFT_NOEXCEPT
|
|
217
248
|
#endif
|
|
249
|
+
#if defined(_WIN32)
|
|
250
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
251
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
218
252
|
#endif
|
|
219
|
-
#
|
|
220
|
-
#if !defined(
|
|
221
|
-
#define
|
|
222
|
-
namespace swift {
|
|
223
|
-
using Int = ptrdiff_t;
|
|
224
|
-
using UInt = size_t;
|
|
225
|
-
}
|
|
253
|
+
#else
|
|
254
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
255
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
226
256
|
#endif
|
|
227
257
|
#endif
|
|
228
258
|
#if defined(__OBJC__)
|
|
229
|
-
#if __has_feature(
|
|
259
|
+
#if __has_feature(objc_modules)
|
|
230
260
|
#if __has_warning("-Watimport-in-framework-header")
|
|
231
261
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
232
262
|
#endif
|
|
@@ -380,6 +410,7 @@ SWIFT_CLASS("_TtC11ShieldFraud6Shield")
|
|
|
380
410
|
|
|
381
411
|
|
|
382
412
|
|
|
413
|
+
|
|
383
414
|
#endif
|
|
384
415
|
#if defined(__cplusplus)
|
|
385
416
|
#endif
|