react-native-plaid-link-sdk 12.8.2 → 13.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.
- package/.eslintrc.js +5 -0
- package/.gitattributes +3 -0
- package/.nvmrc +1 -0
- package/CHANGELOG.md +1458 -0
- package/README.md +17 -277
- package/V13_MIGRATION_GUIDE.md +470 -0
- package/android/build.gradle +30 -98
- package/android/src/main/AndroidManifest.xml +1 -8
- package/android/src/main/java/expo/modules/plaidlinksdk/PlaidEmbeddedResultDispatcher.kt +19 -0
- package/android/src/main/java/expo/modules/plaidlinksdk/PlaidResultMappers.kt +217 -0
- package/android/src/main/java/expo/modules/plaidlinksdk/RNPlaidLinkSdkVersion.kt +5 -0
- package/android/src/main/java/expo/modules/plaidlinksdk/ReactNativePlaidLinkSdkModule.kt +183 -0
- package/android/src/main/java/expo/modules/plaidlinksdk/ReactNativePlaidLinkSdkView.kt +69 -0
- package/build/PlaidEmbeddedSearchView.d.ts +12 -0
- package/build/PlaidEmbeddedSearchView.d.ts.map +1 -0
- package/build/PlaidEmbeddedSearchView.js +8 -0
- package/build/PlaidEmbeddedSearchView.js.map +1 -0
- package/{dist/src/Types.d.ts → build/ReactNativePlaidLinkSdk.types.d.ts} +78 -47
- package/build/ReactNativePlaidLinkSdk.types.d.ts.map +1 -0
- package/{dist/build → build}/ReactNativePlaidLinkSdk.types.js +82 -71
- package/build/ReactNativePlaidLinkSdk.types.js.map +1 -0
- package/build/ReactNativePlaidLinkSdkModule.d.ts +16 -0
- package/build/ReactNativePlaidLinkSdkModule.d.ts.map +1 -0
- package/{dist/build → build}/ReactNativePlaidLinkSdkModule.js +1 -1
- package/build/ReactNativePlaidLinkSdkModule.js.map +1 -0
- package/build/index.d.ts +13 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +134 -0
- package/build/index.js.map +1 -0
- package/eslint.config.js +3 -0
- package/expo-module.config.json +9 -0
- package/ios/Frameworks/LinkKit.xcframework/Info.plist +61 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit-Swift.h +327 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit.h +22 -0
- 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 +53681 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.private.swiftinterface +756 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftinterface +756 -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/Modules/module.modulemap +11 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/_CodeSignature/CodeResources +205 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Headers/LinkKit-Swift.h +650 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Headers/LinkKit.h +22 -0
- 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 +52299 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/arm64-apple-ios-macabi.private.swiftinterface +751 -0
- 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 +751 -0
- 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 +52299 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Modules/LinkKit.swiftmodule/x86_64-apple-ios-macabi.private.swiftinterface +751 -0
- 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 +751 -0
- 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 +11 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Resources/Info.plist +59 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +32 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-maccatalyst/LinkKit.framework/Versions/A/_CodeSignature/CodeResources +230 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit-Swift.h +650 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit.h +22 -0
- 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 +53681 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +756 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +756 -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 +53681 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +756 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +756 -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/Modules/module.modulemap +11 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
- package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/_CodeSignature/CodeResources +256 -0
- package/ios/ReactNativePlaidLinkSdk.podspec +31 -0
- package/ios/src/PlaidEmbeddedSearchView.swift +101 -0
- package/ios/src/RNPlaidLinkSdkVersion.swift +19 -0
- package/ios/src/ReactNativePlaidLinkSdkModule.swift +555 -0
- package/jest.config.js +21 -0
- package/jest.setup.js +7 -0
- package/package.json +32 -72
- package/scripts/check-package-entrypoints.js +146 -0
- package/scripts/extract-rn-enums.js +49 -0
- package/src/PlaidEmbeddedSearchView.tsx +35 -0
- package/src/ReactNativePlaidLinkSdk.types.ts +894 -0
- package/src/ReactNativePlaidLinkSdkModule.ts +31 -0
- package/src/index.ts +207 -22
- package/tsconfig.json +9 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/android/gradle.properties +0 -31
- package/android/gradlew +0 -174
- package/android/gradlew.bat +0 -89
- package/android/src/main/java/com/plaid/ActivityResultHandler.java +0 -7
- package/android/src/main/java/com/plaid/ActivityResultManager.java +0 -15
- package/android/src/main/java/com/plaid/GlobalFunctions.kt +0 -42
- package/android/src/main/java/com/plaid/PLKEmbeddedView.kt +0 -161
- package/android/src/main/java/com/plaid/PLKEmbeddedViewManager.kt +0 -50
- package/android/src/main/java/com/plaid/PlaidModule.kt +0 -291
- package/android/src/main/java/com/plaid/PlaidPackage.java +0 -117
- package/android/src/main/java/com/plaid/gson/PlaidJsonConverter.kt +0 -94
- package/android/src/main/java/com/plaid/gson/RNAccountAdapter.kt +0 -48
- package/android/src/main/java/com/plaid/gson/RNEventMetadataAdapter.kt +0 -49
- package/android/src/main/java/com/plaid/gson/RNLinkInstitutionAdapter.kt +0 -34
- package/android/src/main/res/layout/plk_embedded_view.xml +0 -5
- package/android/src/paper/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.java +0 -35
- package/android/src/paper/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.java +0 -18
- package/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +0 -64
- package/android/src/paper/java/com/plaid/NativePlaidLinkModuleiOSSpec.java +0 -59
- package/dist/build/EmbeddedLink/EmbeddedLinkView.d.ts +0 -2
- package/dist/build/EmbeddedLink/EmbeddedLinkView.js +0 -56
- package/dist/build/EmbeddedLink/EmbeddedLinkView.web.d.ts +0 -1
- package/dist/build/EmbeddedLink/EmbeddedLinkView.web.js +0 -2
- package/dist/build/EmbeddedLink/NativeEmbeddedLinkView.d.ts +0 -2
- package/dist/build/EmbeddedLink/NativeEmbeddedLinkView.js +0 -3
- package/dist/build/PlaidEmbeddedSearchView.d.ts +0 -2
- package/dist/build/PlaidEmbeddedSearchView.js +0 -25
- package/dist/build/PlaidLink.d.ts +0 -7
- package/dist/build/PlaidLink.js +0 -137
- package/dist/build/ReactNativePlaidLinkSdk.types.d.ts +0 -108
- package/dist/build/ReactNativePlaidLinkSdkModule.d.ts +0 -2
- package/dist/build/ReactNativePlaidLinkSdkView.d.ts +0 -2
- package/dist/build/ReactNativePlaidLinkSdkView.js +0 -7
- package/dist/build/Types.d.ts +0 -108
- package/dist/build/Types.js +0 -462
- package/dist/build/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -2
- package/dist/build/fabric/EmbeddedLinkViewNativeComponent.js +0 -3
- package/dist/build/fabric/NativePlaidLinkModuleAndroid.d.ts +0 -2
- package/dist/build/fabric/NativePlaidLinkModuleAndroid.js +0 -5
- package/dist/build/fabric/NativePlaidLinkModuleiOS.d.ts +0 -2
- package/dist/build/fabric/NativePlaidLinkModuleiOS.js +0 -5
- package/dist/build/fabric/fabricUtils.d.ts +0 -1
- package/dist/build/fabric/fabricUtils.js +0 -2
- package/dist/build/index.d.ts +0 -14
- package/dist/build/index.js +0 -154
- package/dist/src/EmbeddedLink/EmbeddedLinkView.d.ts +0 -13
- package/dist/src/EmbeddedLink/EmbeddedLinkView.js +0 -55
- package/dist/src/EmbeddedLink/EmbeddedLinkView.web.d.ts +0 -1
- package/dist/src/EmbeddedLink/EmbeddedLinkView.web.js +0 -1
- package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.d.ts +0 -2
- package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.js +0 -2
- package/dist/src/PlaidLink.d.ts +0 -34
- package/dist/src/PlaidLink.js +0 -136
- package/dist/src/Types.js +0 -463
- package/dist/src/__tests__/Types.tests.d.ts +0 -1
- package/dist/src/__tests__/Types.tests.js +0 -14
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -15
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.js +0 -2
- package/dist/src/fabric/NativePlaidLinkModuleAndroid.d.ts +0 -15
- package/dist/src/fabric/NativePlaidLinkModuleAndroid.js +0 -4
- package/dist/src/fabric/NativePlaidLinkModuleiOS.d.ts +0 -15
- package/dist/src/fabric/NativePlaidLinkModuleiOS.js +0 -4
- package/dist/src/fabric/fabricUtils.d.ts +0 -1
- package/dist/src/fabric/fabricUtils.js +0 -1
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +0 -5
- package/ios/PLKEmbeddedView.m +0 -7
- package/ios/PLKEmbeddedView.swift +0 -116
- package/ios/PLKEmbeddedViewComponentView.h +0 -28
- package/ios/PLKEmbeddedViewComponentView.mm +0 -91
- package/ios/PLKEmbeddedViewManager.swift +0 -14
- package/ios/PLKFabricHelpers.h +0 -116
- package/ios/RNLinksdk-Bridging-Header.h +0 -8
- package/ios/RNLinksdk.h +0 -19
- package/ios/RNLinksdk.mm +0 -732
- package/ios/RNPlaidHelper.h +0 -15
- package/ios/RNPlaidHelper.m +0 -33
- package/ios/react_native_plaid_link_sdk.h +0 -2
- package/react-native-plaid-link-sdk.podspec +0 -40
- package/src/EmbeddedLink/EmbeddedLinkView.tsx +0 -95
- package/src/EmbeddedLink/EmbeddedLinkView.web.tsx +0 -5
- package/src/EmbeddedLink/NativeEmbeddedLinkView.tsx +0 -3
- package/src/PlaidLink.tsx +0 -167
- package/src/Types.ts +0 -634
- package/src/__tests__/Types.tests.ts +0 -15
- package/src/fabric/EmbeddedLinkViewNativeComponent.ts +0 -24
- package/src/fabric/NativePlaidLinkModuleAndroid.ts +0 -32
- package/src/fabric/NativePlaidLinkModuleiOS.ts +0 -33
- package/src/fabric/fabricUtils.ts +0 -2
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
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>
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Headers/LinkKit-Swift.h</key>
|
|
8
|
+
<data>
|
|
9
|
+
T0kPYIntgQ61352a4qfCVCfTcVM=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/LinkKit.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
YuW56YuXiiNDAm7ENe8dCkv5TWQ=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
F8MnMzeXc+E79jcFrjpOInPErFg=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
20
|
+
<data>
|
|
21
|
+
dEkmc5jHFAYgiivkaqOihe7HMak=
|
|
22
|
+
</data>
|
|
23
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
24
|
+
<data>
|
|
25
|
+
FTkGol8hqBxY//gvFN4X1D/gYqI=
|
|
26
|
+
</data>
|
|
27
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
28
|
+
<data>
|
|
29
|
+
wfMFkSE8OovbcWtupmu3Vgf+K+4=
|
|
30
|
+
</data>
|
|
31
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
32
|
+
<data>
|
|
33
|
+
FTkGol8hqBxY//gvFN4X1D/gYqI=
|
|
34
|
+
</data>
|
|
35
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
36
|
+
<data>
|
|
37
|
+
lhirRYzkeJke3VZL+brBrIyt/Gs=
|
|
38
|
+
</data>
|
|
39
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
40
|
+
<data>
|
|
41
|
+
dEkmc5jHFAYgiivkaqOihe7HMak=
|
|
42
|
+
</data>
|
|
43
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
44
|
+
<data>
|
|
45
|
+
6tD7Mx3TgQ8a5ulM9FX1qAWerUQ=
|
|
46
|
+
</data>
|
|
47
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
48
|
+
<data>
|
|
49
|
+
Ch3JJ/J04f6PQt6hdKhKiTLmcpQ=
|
|
50
|
+
</data>
|
|
51
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
52
|
+
<data>
|
|
53
|
+
6tD7Mx3TgQ8a5ulM9FX1qAWerUQ=
|
|
54
|
+
</data>
|
|
55
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
56
|
+
<data>
|
|
57
|
+
oNXThUWJ8KN/S/PDSoAbnO7w9B4=
|
|
58
|
+
</data>
|
|
59
|
+
<key>Modules/module.modulemap</key>
|
|
60
|
+
<data>
|
|
61
|
+
CjYM9/d+oD9diRmCwMdBcESfnn0=
|
|
62
|
+
</data>
|
|
63
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
64
|
+
<data>
|
|
65
|
+
ZslbibRlnYFZ3P3mPkRNxCiXM44=
|
|
66
|
+
</data>
|
|
67
|
+
</dict>
|
|
68
|
+
<key>files2</key>
|
|
69
|
+
<dict>
|
|
70
|
+
<key>Headers/LinkKit-Swift.h</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>hash2</key>
|
|
73
|
+
<data>
|
|
74
|
+
x6DIjTSB5LRK+RyBMKk+s+6jXebXlDDNHvXl4jcRLFs=
|
|
75
|
+
</data>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>Headers/LinkKit.h</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>hash2</key>
|
|
80
|
+
<data>
|
|
81
|
+
z+TRzKFEvBpHMMVYSMjJPhzw29tuI88fBi1AfVS7AEI=
|
|
82
|
+
</data>
|
|
83
|
+
</dict>
|
|
84
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
85
|
+
<dict>
|
|
86
|
+
<key>hash2</key>
|
|
87
|
+
<data>
|
|
88
|
+
q4JkLXi0NotJnQSdqLhVzWKYP9aDCH8DOxkTpQzG7QM=
|
|
89
|
+
</data>
|
|
90
|
+
</dict>
|
|
91
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
92
|
+
<dict>
|
|
93
|
+
<key>hash2</key>
|
|
94
|
+
<data>
|
|
95
|
+
0uEontWk/gN/PZ/heQfyyc0zbXSBhXBKc5BVDlSwbt4=
|
|
96
|
+
</data>
|
|
97
|
+
</dict>
|
|
98
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
99
|
+
<dict>
|
|
100
|
+
<key>hash2</key>
|
|
101
|
+
<data>
|
|
102
|
+
OJa7N4js0PHN/c0yMgNH1h0bDL8C3Se+gyZ2f+fjlew=
|
|
103
|
+
</data>
|
|
104
|
+
</dict>
|
|
105
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
106
|
+
<dict>
|
|
107
|
+
<key>hash2</key>
|
|
108
|
+
<data>
|
|
109
|
+
0uEontWk/gN/PZ/heQfyyc0zbXSBhXBKc5BVDlSwbt4=
|
|
110
|
+
</data>
|
|
111
|
+
</dict>
|
|
112
|
+
<key>Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
113
|
+
<dict>
|
|
114
|
+
<key>hash2</key>
|
|
115
|
+
<data>
|
|
116
|
+
/BkGlqGaJyFIE7H7yp2xXzPJNHU6rgwMEYGj2d4+ZhQ=
|
|
117
|
+
</data>
|
|
118
|
+
</dict>
|
|
119
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
120
|
+
<dict>
|
|
121
|
+
<key>hash2</key>
|
|
122
|
+
<data>
|
|
123
|
+
q4JkLXi0NotJnQSdqLhVzWKYP9aDCH8DOxkTpQzG7QM=
|
|
124
|
+
</data>
|
|
125
|
+
</dict>
|
|
126
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
127
|
+
<dict>
|
|
128
|
+
<key>hash2</key>
|
|
129
|
+
<data>
|
|
130
|
+
gM6M84xNPl93tvmhkDwBV5lwOzT7+hffNDwV31dw+VM=
|
|
131
|
+
</data>
|
|
132
|
+
</dict>
|
|
133
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
134
|
+
<dict>
|
|
135
|
+
<key>hash2</key>
|
|
136
|
+
<data>
|
|
137
|
+
LRKo6EXujxti0NUt0UxorA843v0Tbi9pi6iGS6UGDro=
|
|
138
|
+
</data>
|
|
139
|
+
</dict>
|
|
140
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
141
|
+
<dict>
|
|
142
|
+
<key>hash2</key>
|
|
143
|
+
<data>
|
|
144
|
+
gM6M84xNPl93tvmhkDwBV5lwOzT7+hffNDwV31dw+VM=
|
|
145
|
+
</data>
|
|
146
|
+
</dict>
|
|
147
|
+
<key>Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
148
|
+
<dict>
|
|
149
|
+
<key>hash2</key>
|
|
150
|
+
<data>
|
|
151
|
+
0OGVOCYScxQOI85esYvAgt8+LDZ/JXQLLUmO8+669Tc=
|
|
152
|
+
</data>
|
|
153
|
+
</dict>
|
|
154
|
+
<key>Modules/module.modulemap</key>
|
|
155
|
+
<dict>
|
|
156
|
+
<key>hash2</key>
|
|
157
|
+
<data>
|
|
158
|
+
+Cw8rJc7sIJTDYNZCWunJtWuNxIwF0q/SqcPv7cKwnM=
|
|
159
|
+
</data>
|
|
160
|
+
</dict>
|
|
161
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
162
|
+
<dict>
|
|
163
|
+
<key>hash2</key>
|
|
164
|
+
<data>
|
|
165
|
+
miWgwnkAGFMlwDVKKnSJH9MRPNSwFFxWqC4XV9/Zi4U=
|
|
166
|
+
</data>
|
|
167
|
+
</dict>
|
|
168
|
+
</dict>
|
|
169
|
+
<key>rules</key>
|
|
170
|
+
<dict>
|
|
171
|
+
<key>^.*</key>
|
|
172
|
+
<true/>
|
|
173
|
+
<key>^.*\.lproj/</key>
|
|
174
|
+
<dict>
|
|
175
|
+
<key>optional</key>
|
|
176
|
+
<true/>
|
|
177
|
+
<key>weight</key>
|
|
178
|
+
<real>1000</real>
|
|
179
|
+
</dict>
|
|
180
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
181
|
+
<dict>
|
|
182
|
+
<key>omit</key>
|
|
183
|
+
<true/>
|
|
184
|
+
<key>weight</key>
|
|
185
|
+
<real>1100</real>
|
|
186
|
+
</dict>
|
|
187
|
+
<key>^Base\.lproj/</key>
|
|
188
|
+
<dict>
|
|
189
|
+
<key>weight</key>
|
|
190
|
+
<real>1010</real>
|
|
191
|
+
</dict>
|
|
192
|
+
<key>^version.plist$</key>
|
|
193
|
+
<true/>
|
|
194
|
+
</dict>
|
|
195
|
+
<key>rules2</key>
|
|
196
|
+
<dict>
|
|
197
|
+
<key>.*\.dSYM($|/)</key>
|
|
198
|
+
<dict>
|
|
199
|
+
<key>weight</key>
|
|
200
|
+
<real>11</real>
|
|
201
|
+
</dict>
|
|
202
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
203
|
+
<dict>
|
|
204
|
+
<key>omit</key>
|
|
205
|
+
<true/>
|
|
206
|
+
<key>weight</key>
|
|
207
|
+
<real>2000</real>
|
|
208
|
+
</dict>
|
|
209
|
+
<key>^.*</key>
|
|
210
|
+
<true/>
|
|
211
|
+
<key>^.*\.lproj/</key>
|
|
212
|
+
<dict>
|
|
213
|
+
<key>optional</key>
|
|
214
|
+
<true/>
|
|
215
|
+
<key>weight</key>
|
|
216
|
+
<real>1000</real>
|
|
217
|
+
</dict>
|
|
218
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
219
|
+
<dict>
|
|
220
|
+
<key>omit</key>
|
|
221
|
+
<true/>
|
|
222
|
+
<key>weight</key>
|
|
223
|
+
<real>1100</real>
|
|
224
|
+
</dict>
|
|
225
|
+
<key>^Base\.lproj/</key>
|
|
226
|
+
<dict>
|
|
227
|
+
<key>weight</key>
|
|
228
|
+
<real>1010</real>
|
|
229
|
+
</dict>
|
|
230
|
+
<key>^Info\.plist$</key>
|
|
231
|
+
<dict>
|
|
232
|
+
<key>omit</key>
|
|
233
|
+
<true/>
|
|
234
|
+
<key>weight</key>
|
|
235
|
+
<real>20</real>
|
|
236
|
+
</dict>
|
|
237
|
+
<key>^PkgInfo$</key>
|
|
238
|
+
<dict>
|
|
239
|
+
<key>omit</key>
|
|
240
|
+
<true/>
|
|
241
|
+
<key>weight</key>
|
|
242
|
+
<real>20</real>
|
|
243
|
+
</dict>
|
|
244
|
+
<key>^embedded\.provisionprofile$</key>
|
|
245
|
+
<dict>
|
|
246
|
+
<key>weight</key>
|
|
247
|
+
<real>20</real>
|
|
248
|
+
</dict>
|
|
249
|
+
<key>^version\.plist$</key>
|
|
250
|
+
<dict>
|
|
251
|
+
<key>weight</key>
|
|
252
|
+
<real>20</real>
|
|
253
|
+
</dict>
|
|
254
|
+
</dict>
|
|
255
|
+
</dict>
|
|
256
|
+
</plist>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = 'ReactNativePlaidLinkSdk'
|
|
7
|
+
s.module_name = 'ReactNativePlaidLinkSdk'
|
|
8
|
+
s.version = package['version']
|
|
9
|
+
s.summary = package['description']
|
|
10
|
+
s.description = package['description']
|
|
11
|
+
s.license = package['license']
|
|
12
|
+
s.author = package['author']
|
|
13
|
+
s.homepage = "https://github.com/plaid/react-native-plaid-link-sdk"
|
|
14
|
+
s.platforms = { :ios => '15.1' }
|
|
15
|
+
s.swift_version = '5.9'
|
|
16
|
+
s.source = { git: 'https://github.com/plaid/react-native-plaid-link-sdk' }
|
|
17
|
+
s.source_files = 'src/**/*.{h,m,mm,swift,hpp,cpp}'
|
|
18
|
+
s.dependency 'ExpoModulesCore'
|
|
19
|
+
s.vendored_frameworks = 'Frameworks/LinkKit.xcframework'
|
|
20
|
+
s.preserve_paths = 'Frameworks/LinkKit.xcframework'
|
|
21
|
+
|
|
22
|
+
s.pod_target_xcconfig = {
|
|
23
|
+
'DEFINES_MODULE' => 'YES',
|
|
24
|
+
'SWIFT_COMPILATION_MODE' => 'wholemodule'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
# Add this to ensure the folder isn't stripped during the build
|
|
28
|
+
s.preserve_paths = 'Frameworks/LinkKit.xcframework'
|
|
29
|
+
|
|
30
|
+
install_modules_dependencies(s)
|
|
31
|
+
end
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import ExpoModulesCore
|
|
2
|
+
internal import LinkKit
|
|
3
|
+
import UIKit
|
|
4
|
+
|
|
5
|
+
class PlaidEmbeddedSearchView: ExpoView {
|
|
6
|
+
private var embeddedView: EmbeddedSearchUIView?
|
|
7
|
+
|
|
8
|
+
let onSuccess = EventDispatcher()
|
|
9
|
+
let onExit = EventDispatcher()
|
|
10
|
+
let onEvent = EventDispatcher()
|
|
11
|
+
let onLoad = EventDispatcher()
|
|
12
|
+
|
|
13
|
+
required init(appContext: AppContext? = nil) {
|
|
14
|
+
super.init(appContext: appContext)
|
|
15
|
+
clipsToBounds = true
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
func setToken(_ token: String) {
|
|
19
|
+
embeddedView?.removeFromSuperview()
|
|
20
|
+
embeddedView = nil
|
|
21
|
+
|
|
22
|
+
let configuration = EmbeddedLinkTokenConfiguration(
|
|
23
|
+
token: token,
|
|
24
|
+
onSuccess: { [weak self] linkSuccess in
|
|
25
|
+
self?.onSuccess(linkSuccess.asDictionary)
|
|
26
|
+
},
|
|
27
|
+
onExit: { [weak self] linkExit in
|
|
28
|
+
self?.onExit(linkExit.asDictionary)
|
|
29
|
+
},
|
|
30
|
+
onEvent: { [weak self] linkEvent in
|
|
31
|
+
self?.onEvent(linkEvent.asDictionary)
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
guard let viewController = appContext?.utilities?.currentViewController() else {
|
|
36
|
+
let errorExit: [String: Any] = [
|
|
37
|
+
"error": [
|
|
38
|
+
"errorCode": "NO_VIEW_CONTROLLER",
|
|
39
|
+
"errorType": "INTERNAL_ERROR",
|
|
40
|
+
"errorMessage": "Could not find current view controller",
|
|
41
|
+
"displayMessage": "Could not find current view controller",
|
|
42
|
+
"errorJson": NSNull(),
|
|
43
|
+
],
|
|
44
|
+
"metadata": [
|
|
45
|
+
"linkSessionId": NSNull(),
|
|
46
|
+
"institution": NSNull(),
|
|
47
|
+
"status": NSNull(),
|
|
48
|
+
"requestId": NSNull(),
|
|
49
|
+
"metadataJson": NSNull(),
|
|
50
|
+
],
|
|
51
|
+
]
|
|
52
|
+
self.onExit(errorExit)
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
do {
|
|
57
|
+
let plaidEmbeddedView = try Plaid.createEmbeddedLinkUIView(
|
|
58
|
+
configuration: configuration,
|
|
59
|
+
presentationMethod: .viewController(viewController)
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
self.embeddedView = plaidEmbeddedView
|
|
63
|
+
|
|
64
|
+
plaidEmbeddedView.translatesAutoresizingMaskIntoConstraints = false
|
|
65
|
+
addSubview(plaidEmbeddedView)
|
|
66
|
+
|
|
67
|
+
NSLayoutConstraint.activate([
|
|
68
|
+
plaidEmbeddedView.topAnchor.constraint(equalTo: topAnchor),
|
|
69
|
+
plaidEmbeddedView.leadingAnchor.constraint(equalTo: leadingAnchor),
|
|
70
|
+
plaidEmbeddedView.trailingAnchor.constraint(equalTo: trailingAnchor),
|
|
71
|
+
plaidEmbeddedView.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
self.onLoad([:])
|
|
75
|
+
|
|
76
|
+
} catch {
|
|
77
|
+
let errorExit: [String: Any] = [
|
|
78
|
+
"error": [
|
|
79
|
+
"errorCode": "CREATE_VIEW_ERROR",
|
|
80
|
+
"errorType": "INTERNAL_ERROR",
|
|
81
|
+
"errorMessage": error.localizedDescription,
|
|
82
|
+
"displayMessage": error.localizedDescription,
|
|
83
|
+
"errorJson": NSNull(),
|
|
84
|
+
],
|
|
85
|
+
"metadata": [
|
|
86
|
+
"linkSessionId": NSNull(),
|
|
87
|
+
"institution": NSNull(),
|
|
88
|
+
"status": NSNull(),
|
|
89
|
+
"requestId": NSNull(),
|
|
90
|
+
"metadataJson": NSNull(),
|
|
91
|
+
],
|
|
92
|
+
]
|
|
93
|
+
self.onExit(errorExit)
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
override func layoutSubviews() {
|
|
98
|
+
super.layoutSubviews()
|
|
99
|
+
embeddedView?.frame = bounds
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
|
|
3
|
+
/// Objective-C-compatible shim class that exposes the React Native SDK version.
|
|
4
|
+
///
|
|
5
|
+
/// This class serves two purposes:
|
|
6
|
+
/// 1. Provides a version constant for the Expo module to expose to JavaScript
|
|
7
|
+
/// 2. Enables runtime detection from native iOS code (backward compatibility)
|
|
8
|
+
///
|
|
9
|
+
/// The version should be manually updated to match the version in package.json
|
|
10
|
+
/// when releasing new versions of the React Native SDK.
|
|
11
|
+
@objc(RNPlaidLinkSdkVersion)
|
|
12
|
+
public class RNPlaidLinkSdkVersion: NSObject {
|
|
13
|
+
|
|
14
|
+
/// The React Native Plaid Link SDK version.
|
|
15
|
+
///
|
|
16
|
+
/// This should match the version specified in package.json.
|
|
17
|
+
/// Update this value when bumping the SDK version.
|
|
18
|
+
@objc public static let sdkVersion: String = "13.0.0"
|
|
19
|
+
}
|