diff --git a/ios/RNLinksdk.m b/ios/RNLinksdk.m index 545c2f04..fdfdfca5 100644 --- a/ios/RNLinksdk.m +++ b/ios/RNLinksdk.m @@ -117,7 +117,7 @@ @implementation RNLinksdk RCT_EXPORT_MODULE(); + (NSString*)sdkVersion { - return @"7.3.0"; // SDK_VERSION +return @"7.2.1"; // SDK_VERSION } + (NSString*)objCBridgeVersion { diff --git a/ios/RNLinksdk.m-e b/ios/RNLinksdk.m-e index 06a3cea7..545c2f04 100644 --- a/ios/RNLinksdk.m-e +++ b/ios/RNLinksdk.m-e @@ -390,7 +390,7 @@ RCT_EXPORT_METHOD(dismiss) { + (NSArray> *)accountSubtypesArrayFromAccountSubtypeDictionaries:(NSArray *> *)accountSubtypeDictionaries { __block NSMutableArray> *results = [NSMutableArray array]; - + for (NSDictionary *accountSubtypeDictionary in accountSubtypeDictionaries) { NSString *type = accountSubtypeDictionary[@"type"]; NSString *subtype = accountSubtypeDictionary[@"subtype"]; @@ -399,7 +399,7 @@ RCT_EXPORT_METHOD(dismiss) { [results addObject:result]; } } - + return [results copy]; } @@ -593,7 +593,7 @@ RCT_EXPORT_METHOD(dismiss) { + (NSArray *)accountsDictionariesFromAccounts:(NSArray *)accounts { NSMutableArray *results = [NSMutableArray arrayWithCapacity:accounts.count]; - + for (PLKAccount *account in accounts) { NSDictionary *accountDictionary = [self dictionaryFromAccount:account]; [results addObject:accountDictionary]; @@ -680,7 +680,7 @@ RCT_EXPORT_METHOD(dismiss) { + (NSDictionary *)dictionaryFromEvent:(PLKLinkEvent *)event { PLKEventMetadata *metadata = event.eventMetadata; - + return @{ @"eventName": [self stringForEventName:event.eventName] ?: @"", @"metadata": @{ @@ -710,9 +710,9 @@ RCT_EXPORT_METHOD(dismiss) { if (!error || !errorDomain) { return @""; } - + NSString *normalizedErrorDomain = errorDomain; - + return @{ kPLKExitErrorInvalidRequestDomain: @"INVALID_REQUEST", kPLKExitErrorInvalidInputDomain: @"INVALID_INPUT", @@ -744,7 +744,7 @@ RCT_EXPORT_METHOD(dismiss) { if (!eventName) { return @""; } - + if (eventName.unknownStringValue) { return eventName.unknownStringValue; } diff --git a/package.json b/package.json index d3c66f48..a591a2ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-plaid-link-sdk", - "version": "7.2.1", + "version": "7.3.0", "description": "React Native Plaid Link SDK", "main": "dist/index.js", "types": "dist/index.d.ts",