react-native-plaid-link-sdk 11.11.2 → 11.12.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/README.md +7 -0
- package/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
- package/ios/PLKEmbeddedViewComponentView.mm +6 -0
- package/ios/PLKFabricHelpers.h +4 -0
- package/ios/RNLinksdk.mm +1 -1
- package/package.json +4 -4
- package/react-native-plaid-link-sdk.podspec +7 -0
package/README.md
CHANGED
|
@@ -35,6 +35,10 @@ npm install --save react-native-plaid-link-sdk
|
|
|
35
35
|
|
|
36
36
|
Add `Plaid` to your project’s Podfile as follows (likely located at `ios/Podfile`). The latest version is .
|
|
37
37
|
|
|
38
|
+
```bash switcher=false
|
|
39
|
+
pod 'Plaid', '~> <insert latest version>'
|
|
40
|
+
```
|
|
41
|
+
|
|
38
42
|
Autolinking should install the CocoaPods dependencies for iOS project. If it fails you can run
|
|
39
43
|
|
|
40
44
|
```sh
|
|
@@ -49,6 +53,7 @@ cd ios && bundle install && bundle exec pod install
|
|
|
49
53
|
|
|
50
54
|
AutoLinking should handle all of the Android setup.
|
|
51
55
|
|
|
56
|
+
Remember to register your Android package name in the [Dashboard](https://dashboard.plaid.com/developers/api). This is required in order to connect to OAuth institutions (which includes most major banks).
|
|
52
57
|
|
|
53
58
|
### React Native Setup
|
|
54
59
|
|
|
@@ -179,6 +184,8 @@ While these older versions are expected to continue to work without disruption,
|
|
|
179
184
|
|
|
180
185
|
| Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
|
|
181
186
|
|-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
|
|
187
|
+
| 11.12.1 | * | [4.6.0+] | 21 | 34 | >=5.6.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
|
188
|
+
| 11.12.0 | * | [4.6.0+] | 21 | 34 | >=5.6.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
|
182
189
|
| 11.11.2 | * | [4.5.1+] | 21 | 34 | >=5.6.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
|
183
190
|
| 11.11.1 | * | [4.5.1+] | 21 | 34 | >=5.6.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
|
184
191
|
| 11.11.0 | * | [4.5.0+] | 21 | 34 | >=5.6.0 | 14.0 | Active, supports Xcode 15.0.1 |
|
package/android/build.gradle
CHANGED
|
@@ -106,7 +106,7 @@ repositories {
|
|
|
106
106
|
|
|
107
107
|
dependencies {
|
|
108
108
|
implementation "com.facebook.react:react-native:+"
|
|
109
|
-
implementation "com.plaid.link:sdk-core:4.
|
|
109
|
+
implementation "com.plaid.link:sdk-core:4.6.0"
|
|
110
110
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
111
111
|
implementation "com.jakewharton.rxrelay2:rxrelay:2.1.1"
|
|
112
112
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
|
2
|
+
/// <reference types="react-native/modules/codegen" />
|
|
1
3
|
import type { ViewProps } from 'react-native';
|
|
2
4
|
import { DirectEventHandler, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
5
|
export interface NativeProps extends ViewProps {
|
|
@@ -18,6 +18,12 @@ using namespace facebook::react;
|
|
|
18
18
|
PLKEmbeddedView *_view;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
// Needed because of this: https://github.com/facebook/react-native/pull/37274
|
|
22
|
+
+ (void)load
|
|
23
|
+
{
|
|
24
|
+
[super load];
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
22
28
|
{
|
|
23
29
|
if (self = [super initWithFrame:frame]) {
|
package/ios/PLKFabricHelpers.h
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
#if __has_include(<rnplaidlink/react_native_plaid_link_sdk-Swift.h>)
|
|
6
6
|
#import <rnplaidlink/react_native_plaid_link_sdk-Swift.h>
|
|
7
7
|
#else
|
|
8
|
+
#ifdef USE_FRAMEWORKS
|
|
9
|
+
#import <react_native_plaid_link_sdk/react_native_plaid_link_sdk-Swift.h>
|
|
10
|
+
#else
|
|
8
11
|
#import <react_native_plaid_link_sdk-Swift.h>
|
|
9
12
|
#endif
|
|
13
|
+
#endif
|
|
10
14
|
|
|
11
15
|
// copied from RCTFollyConvert
|
|
12
16
|
folly::dynamic PLKConvertIdToFollyDynamic(id json)
|
package/ios/RNLinksdk.mm
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-plaid-link-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.12.1",
|
|
4
4
|
"description": "React Native Plaid Link SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@react-native-community/eslint-plugin": "^1.1.0",
|
|
50
50
|
"@types/jest": "^26.0.14",
|
|
51
|
-
"@types/react": "^
|
|
51
|
+
"@types/react": "^18.2.6",
|
|
52
52
|
"@types/react-native": "^0.71.3",
|
|
53
53
|
"@types/react-test-renderer": "^16.9.3",
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"jest": "^29.6.1",
|
|
62
62
|
"lint-staged": "^9.4.2",
|
|
63
63
|
"prettier": "^1.18.2",
|
|
64
|
-
"react": "18.
|
|
65
|
-
"react-native": "0.
|
|
64
|
+
"react": "18.2.0",
|
|
65
|
+
"react-native": "0.74.3",
|
|
66
66
|
"typescript": "^4.9.5"
|
|
67
67
|
},
|
|
68
68
|
"codegenConfig": {
|
|
@@ -21,6 +21,13 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
# we don't want this to be seen by Swift
|
|
22
22
|
s.private_header_files = 'ios/PLKFabricHelpers.h'
|
|
23
23
|
|
|
24
|
+
if ENV['USE_FRAMEWORKS'] == '1'
|
|
25
|
+
s.pod_target_xcconfig = {
|
|
26
|
+
"OTHER_CFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
|
|
27
|
+
"OTHER_CPLUSPLUSFLAGS" => "$(inherited) -DUSE_FRAMEWORKS",
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
24
31
|
if fabric_enabled
|
|
25
32
|
install_modules_dependencies(s)
|
|
26
33
|
else
|