react-native-plaid-link-sdk 13.0.0 → 13.0.1
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/CHANGELOG.md +12 -0
- package/README.md +246 -7
- package/android/src/main/java/expo/modules/plaidlinksdk/RNPlaidLinkSdkVersion.kt +1 -1
- package/build/ReactNativePlaidLinkSdkModule.js.map +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +49 -101
- package/build/index.js.map +1 -1
- package/ios/Frameworks/LinkKit.xcframework/Info.plist +0 -17
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Info.plist +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/LinkKit +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.abi.json +14 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/_CodeSignature/CodeResources +9 -13
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Info.plist +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/LinkKit +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.abi.json +14 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +14 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/_CodeSignature/CodeResources +17 -17
- package/ios/ReactNativePlaidLinkSdk.podspec +0 -2
- package/ios/src/RNPlaidLinkSdkVersion.swift +1 -1
- package/package.json +40 -3
- package/src/ReactNativePlaidLinkSdkModule.ts +3 -3
- package/src/index.ts +93 -134
- package/.eslintrc.js +0 -5
- package/.gitattributes +0 -3
- package/.nvmrc +0 -1
- package/eslint.config.js +0 -3
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Headers/LinkKit-Swift.h +0 -650
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Headers/LinkKit.h +0 -22
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/LinkKit +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.abi.json +0 -52299
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.private.swiftinterface +0 -751
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface +0 -751
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.abi.json +0 -52299
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.private.swiftinterface +0 -751
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface +0 -751
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.swiftmodule +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/module.modulemap +0 -11
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Resources/Info.plist +0 -59
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +0 -32
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/_CodeSignature/CodeResources +0 -230
- package/jest.config.js +0 -21
- package/jest.setup.js +0 -7
- package/scripts/check-package-entrypoints.js +0 -146
- package/scripts/extract-rn-enums.js +0 -49
- package/tsconfig.json +0 -9
|
Binary file
|
|
@@ -1,59 +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>BuildMachineOSBuild</key>
|
|
6
|
-
<string>23H311</string>
|
|
7
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
8
|
-
<string>en</string>
|
|
9
|
-
<key>CFBundleExecutable</key>
|
|
10
|
-
<string>LinkKit</string>
|
|
11
|
-
<key>CFBundleIdentifier</key>
|
|
12
|
-
<string>com.plaid.LinkKit</string>
|
|
13
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
-
<string>6.0</string>
|
|
15
|
-
<key>CFBundleName</key>
|
|
16
|
-
<string>LinkKit</string>
|
|
17
|
-
<key>CFBundlePackageType</key>
|
|
18
|
-
<string>FMWK</string>
|
|
19
|
-
<key>CFBundleShortVersionString</key>
|
|
20
|
-
<string>7.0.0</string>
|
|
21
|
-
<key>CFBundleSupportedPlatforms</key>
|
|
22
|
-
<array>
|
|
23
|
-
<string>MacOSX</string>
|
|
24
|
-
</array>
|
|
25
|
-
<key>CFBundleVersion</key>
|
|
26
|
-
<string>3935.1774039814</string>
|
|
27
|
-
<key>DTCompiler</key>
|
|
28
|
-
<string>com.apple.compilers.llvm.clang.1_0</string>
|
|
29
|
-
<key>DTPlatformBuild</key>
|
|
30
|
-
<string>24B75</string>
|
|
31
|
-
<key>DTPlatformName</key>
|
|
32
|
-
<string>macosx</string>
|
|
33
|
-
<key>DTPlatformVersion</key>
|
|
34
|
-
<string>15.1</string>
|
|
35
|
-
<key>DTSDKBuild</key>
|
|
36
|
-
<string>24B75</string>
|
|
37
|
-
<key>DTSDKName</key>
|
|
38
|
-
<string>macosx15.1</string>
|
|
39
|
-
<key>DTXcode</key>
|
|
40
|
-
<string>1610</string>
|
|
41
|
-
<key>DTXcodeBuild</key>
|
|
42
|
-
<string>16B40</string>
|
|
43
|
-
<key>LSMinimumSystemVersion</key>
|
|
44
|
-
<string>12.0</string>
|
|
45
|
-
<key>NSHumanReadableCopyright</key>
|
|
46
|
-
<string>Copyright © 2016–2021 Plaid Inc. All rights reserved.</string>
|
|
47
|
-
<key>SCMBuildBranch</key>
|
|
48
|
-
<string>HEAD</string>
|
|
49
|
-
<key>SCMBuildNumber</key>
|
|
50
|
-
<string>1774039814</string>
|
|
51
|
-
<key>SCMBuildRevision</key>
|
|
52
|
-
<string>b96c902d2</string>
|
|
53
|
-
<key>UIDeviceFamily</key>
|
|
54
|
-
<array>
|
|
55
|
-
<integer>2</integer>
|
|
56
|
-
<integer>6</integer>
|
|
57
|
-
</array>
|
|
58
|
-
</dict>
|
|
59
|
-
</plist>
|
|
@@ -1,32 +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>NSPrivacyCollectedDataTypes</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>NSPrivacyCollectedDataType</key>
|
|
9
|
-
<string>NSPrivacyCollectedDataTypeUserID</string>
|
|
10
|
-
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
11
|
-
<true/>
|
|
12
|
-
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
13
|
-
<false/>
|
|
14
|
-
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
15
|
-
<array>
|
|
16
|
-
<string>User Identifier</string>
|
|
17
|
-
</array>
|
|
18
|
-
</dict>
|
|
19
|
-
</array>
|
|
20
|
-
<key>NSPrivacyAccessedAPITypes</key>
|
|
21
|
-
<array>
|
|
22
|
-
<dict>
|
|
23
|
-
<key>NSPrivacyAccessedAPIType</key>
|
|
24
|
-
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
25
|
-
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
26
|
-
<array>
|
|
27
|
-
<string>CA92.1</string>
|
|
28
|
-
</array>
|
|
29
|
-
</dict>
|
|
30
|
-
</array>
|
|
31
|
-
</dict>
|
|
32
|
-
</plist>
|
|
@@ -1,230 +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>files</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Resources/Info.plist</key>
|
|
8
|
-
<data>
|
|
9
|
-
WDSj83yYJFrOdkaRTlj577uQp/c=
|
|
10
|
-
</data>
|
|
11
|
-
<key>Resources/PrivacyInfo.xcprivacy</key>
|
|
12
|
-
<data>
|
|
13
|
-
ZslbibRlnYFZ3P3mPkRNxCiXM44=
|
|
14
|
-
</data>
|
|
15
|
-
</dict>
|
|
16
|
-
<key>files2</key>
|
|
17
|
-
<dict>
|
|
18
|
-
<key>Headers/LinkKit-Swift.h</key>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>hash2</key>
|
|
21
|
-
<data>
|
|
22
|
-
x6DIjTSB5LRK+RyBMKk+s+6jXebXlDDNHvXl4jcRLFs=
|
|
23
|
-
</data>
|
|
24
|
-
</dict>
|
|
25
|
-
<key>Headers/LinkKit.h</key>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>hash2</key>
|
|
28
|
-
<data>
|
|
29
|
-
z+TRzKFEvBpHMMVYSMjJPhzw29tuI88fBi1AfVS7AEI=
|
|
30
|
-
</data>
|
|
31
|
-
</dict>
|
|
32
|
-
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.abi.json</key>
|
|
33
|
-
<dict>
|
|
34
|
-
<key>hash2</key>
|
|
35
|
-
<data>
|
|
36
|
-
lS7kRwB61JKelhEvxV4sSgK8BpwrPkVJ7+pmXOfCE1M=
|
|
37
|
-
</data>
|
|
38
|
-
</dict>
|
|
39
|
-
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.private.swiftinterface</key>
|
|
40
|
-
<dict>
|
|
41
|
-
<key>hash2</key>
|
|
42
|
-
<data>
|
|
43
|
-
wryp9ChkjgYml+4QiKHqhbGr3ZoS3pAzFYH3yplOLZo=
|
|
44
|
-
</data>
|
|
45
|
-
</dict>
|
|
46
|
-
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc</key>
|
|
47
|
-
<dict>
|
|
48
|
-
<key>hash2</key>
|
|
49
|
-
<data>
|
|
50
|
-
6/U0Hf4/PT2GaesFRkBJ63TDIhgBTfeW4fylQacmTqc=
|
|
51
|
-
</data>
|
|
52
|
-
</dict>
|
|
53
|
-
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface</key>
|
|
54
|
-
<dict>
|
|
55
|
-
<key>hash2</key>
|
|
56
|
-
<data>
|
|
57
|
-
wryp9ChkjgYml+4QiKHqhbGr3ZoS3pAzFYH3yplOLZo=
|
|
58
|
-
</data>
|
|
59
|
-
</dict>
|
|
60
|
-
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.swiftmodule</key>
|
|
61
|
-
<dict>
|
|
62
|
-
<key>hash2</key>
|
|
63
|
-
<data>
|
|
64
|
-
cOyJcuoK8fvzA2JMM5o6N6NjoCuaHOhBWRA3Yu2FanU=
|
|
65
|
-
</data>
|
|
66
|
-
</dict>
|
|
67
|
-
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.abi.json</key>
|
|
68
|
-
<dict>
|
|
69
|
-
<key>hash2</key>
|
|
70
|
-
<data>
|
|
71
|
-
lS7kRwB61JKelhEvxV4sSgK8BpwrPkVJ7+pmXOfCE1M=
|
|
72
|
-
</data>
|
|
73
|
-
</dict>
|
|
74
|
-
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.private.swiftinterface</key>
|
|
75
|
-
<dict>
|
|
76
|
-
<key>hash2</key>
|
|
77
|
-
<data>
|
|
78
|
-
CrNOse23z2zIlsK7/XNw6T6YAPDej9UUfS1tUuHiJis=
|
|
79
|
-
</data>
|
|
80
|
-
</dict>
|
|
81
|
-
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc</key>
|
|
82
|
-
<dict>
|
|
83
|
-
<key>hash2</key>
|
|
84
|
-
<data>
|
|
85
|
-
q/SPIJWW5sExPw8uqUI/UhYQDMKQWjBe7/pnV6YzUTI=
|
|
86
|
-
</data>
|
|
87
|
-
</dict>
|
|
88
|
-
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface</key>
|
|
89
|
-
<dict>
|
|
90
|
-
<key>hash2</key>
|
|
91
|
-
<data>
|
|
92
|
-
CrNOse23z2zIlsK7/XNw6T6YAPDej9UUfS1tUuHiJis=
|
|
93
|
-
</data>
|
|
94
|
-
</dict>
|
|
95
|
-
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.swiftmodule</key>
|
|
96
|
-
<dict>
|
|
97
|
-
<key>hash2</key>
|
|
98
|
-
<data>
|
|
99
|
-
u1JUxz1e7StPoZPX+9jiUDx8+YaF845b3JsZ/6iwxp0=
|
|
100
|
-
</data>
|
|
101
|
-
</dict>
|
|
102
|
-
<key>Modules/module.modulemap</key>
|
|
103
|
-
<dict>
|
|
104
|
-
<key>hash2</key>
|
|
105
|
-
<data>
|
|
106
|
-
+Cw8rJc7sIJTDYNZCWunJtWuNxIwF0q/SqcPv7cKwnM=
|
|
107
|
-
</data>
|
|
108
|
-
</dict>
|
|
109
|
-
<key>Resources/Info.plist</key>
|
|
110
|
-
<dict>
|
|
111
|
-
<key>hash2</key>
|
|
112
|
-
<data>
|
|
113
|
-
AQ8sqs3uEKE0rgM9zArISykYjWCaoek2Pmjxa5hQjPc=
|
|
114
|
-
</data>
|
|
115
|
-
</dict>
|
|
116
|
-
<key>Resources/PrivacyInfo.xcprivacy</key>
|
|
117
|
-
<dict>
|
|
118
|
-
<key>hash2</key>
|
|
119
|
-
<data>
|
|
120
|
-
miWgwnkAGFMlwDVKKnSJH9MRPNSwFFxWqC4XV9/Zi4U=
|
|
121
|
-
</data>
|
|
122
|
-
</dict>
|
|
123
|
-
</dict>
|
|
124
|
-
<key>rules</key>
|
|
125
|
-
<dict>
|
|
126
|
-
<key>^Resources/</key>
|
|
127
|
-
<true/>
|
|
128
|
-
<key>^Resources/.*\.lproj/</key>
|
|
129
|
-
<dict>
|
|
130
|
-
<key>optional</key>
|
|
131
|
-
<true/>
|
|
132
|
-
<key>weight</key>
|
|
133
|
-
<real>1000</real>
|
|
134
|
-
</dict>
|
|
135
|
-
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
136
|
-
<dict>
|
|
137
|
-
<key>omit</key>
|
|
138
|
-
<true/>
|
|
139
|
-
<key>weight</key>
|
|
140
|
-
<real>1100</real>
|
|
141
|
-
</dict>
|
|
142
|
-
<key>^Resources/Base\.lproj/</key>
|
|
143
|
-
<dict>
|
|
144
|
-
<key>weight</key>
|
|
145
|
-
<real>1010</real>
|
|
146
|
-
</dict>
|
|
147
|
-
<key>^version.plist$</key>
|
|
148
|
-
<true/>
|
|
149
|
-
</dict>
|
|
150
|
-
<key>rules2</key>
|
|
151
|
-
<dict>
|
|
152
|
-
<key>.*\.dSYM($|/)</key>
|
|
153
|
-
<dict>
|
|
154
|
-
<key>weight</key>
|
|
155
|
-
<real>11</real>
|
|
156
|
-
</dict>
|
|
157
|
-
<key>^(.*/)?\.DS_Store$</key>
|
|
158
|
-
<dict>
|
|
159
|
-
<key>omit</key>
|
|
160
|
-
<true/>
|
|
161
|
-
<key>weight</key>
|
|
162
|
-
<real>2000</real>
|
|
163
|
-
</dict>
|
|
164
|
-
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
|
165
|
-
<dict>
|
|
166
|
-
<key>nested</key>
|
|
167
|
-
<true/>
|
|
168
|
-
<key>weight</key>
|
|
169
|
-
<real>10</real>
|
|
170
|
-
</dict>
|
|
171
|
-
<key>^.*</key>
|
|
172
|
-
<true/>
|
|
173
|
-
<key>^Info\.plist$</key>
|
|
174
|
-
<dict>
|
|
175
|
-
<key>omit</key>
|
|
176
|
-
<true/>
|
|
177
|
-
<key>weight</key>
|
|
178
|
-
<real>20</real>
|
|
179
|
-
</dict>
|
|
180
|
-
<key>^PkgInfo$</key>
|
|
181
|
-
<dict>
|
|
182
|
-
<key>omit</key>
|
|
183
|
-
<true/>
|
|
184
|
-
<key>weight</key>
|
|
185
|
-
<real>20</real>
|
|
186
|
-
</dict>
|
|
187
|
-
<key>^Resources/</key>
|
|
188
|
-
<dict>
|
|
189
|
-
<key>weight</key>
|
|
190
|
-
<real>20</real>
|
|
191
|
-
</dict>
|
|
192
|
-
<key>^Resources/.*\.lproj/</key>
|
|
193
|
-
<dict>
|
|
194
|
-
<key>optional</key>
|
|
195
|
-
<true/>
|
|
196
|
-
<key>weight</key>
|
|
197
|
-
<real>1000</real>
|
|
198
|
-
</dict>
|
|
199
|
-
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
200
|
-
<dict>
|
|
201
|
-
<key>omit</key>
|
|
202
|
-
<true/>
|
|
203
|
-
<key>weight</key>
|
|
204
|
-
<real>1100</real>
|
|
205
|
-
</dict>
|
|
206
|
-
<key>^Resources/Base\.lproj/</key>
|
|
207
|
-
<dict>
|
|
208
|
-
<key>weight</key>
|
|
209
|
-
<real>1010</real>
|
|
210
|
-
</dict>
|
|
211
|
-
<key>^[^/]+$</key>
|
|
212
|
-
<dict>
|
|
213
|
-
<key>nested</key>
|
|
214
|
-
<true/>
|
|
215
|
-
<key>weight</key>
|
|
216
|
-
<real>10</real>
|
|
217
|
-
</dict>
|
|
218
|
-
<key>^embedded\.provisionprofile$</key>
|
|
219
|
-
<dict>
|
|
220
|
-
<key>weight</key>
|
|
221
|
-
<real>20</real>
|
|
222
|
-
</dict>
|
|
223
|
-
<key>^version\.plist$</key>
|
|
224
|
-
<dict>
|
|
225
|
-
<key>weight</key>
|
|
226
|
-
<real>20</real>
|
|
227
|
-
</dict>
|
|
228
|
-
</dict>
|
|
229
|
-
</dict>
|
|
230
|
-
</plist>
|
package/jest.config.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
preset: 'jest-expo',
|
|
3
|
-
transformIgnorePatterns: [
|
|
4
|
-
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*)'
|
|
5
|
-
],
|
|
6
|
-
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
7
|
-
testMatch: ['**/__tests__/**/*.test.ts'],
|
|
8
|
-
collectCoverageFrom: [
|
|
9
|
-
'src/**/*.ts',
|
|
10
|
-
'!src/**/*.types.ts',
|
|
11
|
-
'!src/**/*.d.ts'
|
|
12
|
-
],
|
|
13
|
-
coverageThreshold: {
|
|
14
|
-
global: {
|
|
15
|
-
statements: 80,
|
|
16
|
-
branches: 75,
|
|
17
|
-
functions: 80,
|
|
18
|
-
lines: 80
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
package/jest.setup.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
const { execFileSync } = require("child_process");
|
|
2
|
-
const fs = require("fs");
|
|
3
|
-
const os = require("os");
|
|
4
|
-
const path = require("path");
|
|
5
|
-
|
|
6
|
-
const root = path.resolve(__dirname, "..");
|
|
7
|
-
const packageJsonPath = path.join(root, "package.json");
|
|
8
|
-
const packageJson = require(packageJsonPath);
|
|
9
|
-
|
|
10
|
-
function fail(message) {
|
|
11
|
-
console.error(`Package entrypoint check failed: ${message}`);
|
|
12
|
-
process.exit(1);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function assertPackageFieldExists(fieldName) {
|
|
16
|
-
const fieldValue = packageJson[fieldName];
|
|
17
|
-
|
|
18
|
-
if (typeof fieldValue !== "string" || fieldValue.length === 0) {
|
|
19
|
-
fail(`package.json field "${fieldName}" must be a non-empty string.`);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const absolutePath = path.join(root, fieldValue);
|
|
23
|
-
|
|
24
|
-
if (!fs.existsSync(absolutePath)) {
|
|
25
|
-
fail(
|
|
26
|
-
`package.json field "${fieldName}" points to a missing file: ${fieldValue}`,
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return fieldValue;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function parsePackJson(output) {
|
|
34
|
-
for (let start = 0; start < output.length; start += 1) {
|
|
35
|
-
if (output[start] !== "[") {
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
let depth = 0;
|
|
40
|
-
let inString = false;
|
|
41
|
-
let isEscaped = false;
|
|
42
|
-
|
|
43
|
-
for (let end = start; end < output.length; end += 1) {
|
|
44
|
-
const char = output[end];
|
|
45
|
-
|
|
46
|
-
if (isEscaped) {
|
|
47
|
-
isEscaped = false;
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (char === "\\") {
|
|
52
|
-
isEscaped = true;
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (char === '"') {
|
|
57
|
-
inString = !inString;
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (inString) {
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (char === "[") {
|
|
66
|
-
depth += 1;
|
|
67
|
-
} else if (char === "]") {
|
|
68
|
-
depth -= 1;
|
|
69
|
-
|
|
70
|
-
if (depth === 0) {
|
|
71
|
-
const candidate = output.slice(start, end + 1);
|
|
72
|
-
try {
|
|
73
|
-
const parsed = JSON.parse(candidate);
|
|
74
|
-
if (Array.isArray(parsed)) {
|
|
75
|
-
return parsed;
|
|
76
|
-
}
|
|
77
|
-
} catch (_error) {
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
fail("npm pack did not return a JSON array in its output.");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const main = assertPackageFieldExists("main");
|
|
89
|
-
const types = assertPackageFieldExists("types");
|
|
90
|
-
|
|
91
|
-
try {
|
|
92
|
-
const resolved = require.resolve(root);
|
|
93
|
-
const expected = path.join(root, main);
|
|
94
|
-
|
|
95
|
-
if (resolved !== expected) {
|
|
96
|
-
fail(
|
|
97
|
-
`require.resolve('.') resolved to ${path.relative(
|
|
98
|
-
root,
|
|
99
|
-
resolved,
|
|
100
|
-
)}, expected ${main}`,
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
} catch (error) {
|
|
104
|
-
fail(`require.resolve('.') failed: ${error.message}`);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
let packOutput;
|
|
108
|
-
|
|
109
|
-
try {
|
|
110
|
-
packOutput = execFileSync("npm", ["pack", "--dry-run", "--json"], {
|
|
111
|
-
cwd: root,
|
|
112
|
-
encoding: "utf8",
|
|
113
|
-
env: {
|
|
114
|
-
...process.env,
|
|
115
|
-
npm_config_cache: path.join(
|
|
116
|
-
os.tmpdir(),
|
|
117
|
-
"react-native-plaid-link-sdk-npm-cache",
|
|
118
|
-
),
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
} catch (error) {
|
|
122
|
-
fail(`npm pack --dry-run --json failed:\n${error.stderr || error.message}`);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const packResult = parsePackJson(packOutput);
|
|
126
|
-
|
|
127
|
-
const packedFiles = (packResult[0] && packResult[0].files) || [];
|
|
128
|
-
const files = new Set(packedFiles.map((file) => file.path));
|
|
129
|
-
|
|
130
|
-
for (const entrypoint of [main, types]) {
|
|
131
|
-
if (!files.has(entrypoint)) {
|
|
132
|
-
fail(`packed package does not include ${entrypoint}`);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
for (const forbiddenPrefix of ["coverage/", "dist/", "example/"]) {
|
|
137
|
-
const forbiddenFile = packedFiles.find((file) =>
|
|
138
|
-
file.path.startsWith(forbiddenPrefix),
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
if (forbiddenFile) {
|
|
142
|
-
fail(`packed package must not include ${forbiddenFile.path}`);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
console.log(`Package entrypoints are valid: ${main}, ${types}`);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
function extractEnumValues(source, enumName) {
|
|
5
|
-
const enumMatch = source.match(
|
|
6
|
-
new RegExp(`export\\s+enum\\s+${enumName}\\s*\\{([\\s\\S]*?)\\n\\}`),
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
if (!enumMatch) {
|
|
10
|
-
throw new Error(`Could not find ${enumName}`);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return [...enumMatch[1].matchAll(/=\s*"([^"]+)"/g)].map((match) => match[1]);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function getReactNativeEnumValues(repoRoot = path.resolve(__dirname, "..")) {
|
|
17
|
-
const source = fs.readFileSync(
|
|
18
|
-
path.join(repoRoot, "src", "ReactNativePlaidLinkSdk.types.ts"),
|
|
19
|
-
"utf8",
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
eventNames: extractEnumValues(source, "LinkEventName"),
|
|
24
|
-
viewNames: extractEnumValues(source, "LinkEventViewName"),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (require.main === module) {
|
|
29
|
-
const values = getReactNativeEnumValues();
|
|
30
|
-
if (process.argv.includes("--json")) {
|
|
31
|
-
process.stdout.write(`${JSON.stringify(values)}\n`);
|
|
32
|
-
} else {
|
|
33
|
-
process.stdout.write(
|
|
34
|
-
[
|
|
35
|
-
"LinkEventName",
|
|
36
|
-
...values.eventNames.map((value) => ` ${value}`),
|
|
37
|
-
"",
|
|
38
|
-
"LinkEventViewName",
|
|
39
|
-
...values.viewNames.map((value) => ` ${value}`),
|
|
40
|
-
"",
|
|
41
|
-
].join("\n"),
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
module.exports = {
|
|
47
|
-
extractEnumValues,
|
|
48
|
-
getReactNativeEnumValues,
|
|
49
|
-
};
|
package/tsconfig.json
DELETED