From 9ffc168ce082fdf458349435d01e2db1afcafed7 Mon Sep 17 00:00:00 2001 From: Gopi Kolusu Date: Mon, 5 Feb 2024 06:58:24 -0700 Subject: [PATCH] Release 2.0.0: Added support for App2App for react native sdk --- .npmignore | 1 + .npmrc | 1 - CHANGELOG.md | 59 ++++++++++++++----------- README.md | 8 ++-- android/src/main/AndroidManifestNew.xml | 16 ++++++- package.json | 4 +- src/index.tsx | 1 + 7 files changed, 54 insertions(+), 36 deletions(-) delete mode 100644 .npmrc diff --git a/.npmignore b/.npmignore index 5aa1da7..06821b4 100644 --- a/.npmignore +++ b/.npmignore @@ -17,4 +17,5 @@ Thumbs.db #pipeline .gitlab-ci.yml +Dockerfile sonar-project.properties \ No newline at end of file diff --git a/.npmrc b/.npmrc deleted file mode 100644 index f673a35..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@finicity:registry=https://nexus.fini.city/repository/npm-group/ diff --git a/CHANGELOG.md b/CHANGELOG.md index f5e2ca5..424b87d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,52 +1,57 @@ # Changelog -### 1.0.0-rc.0 (April 3, 2021) +### 2.0.0 (February 8, 2024) -- Initial version +- Enhanced the App to App OAuth Flow with the newly added `redirectUrl` parameter in the Connect React Native SDK. This enhancement supports universal links for iOS, app links for Android, and deep links for navigation between mobile apps. For more details on App to App, refer to the [documentation](https://developer.mastercard.com/open-banking-us/documentation/connect/mobile-sdks/). +- The support for the `linkingUri` property in the Connect React Native SDK has been deprecated. -### 1.0.0-rc.1 (April 8, 2021) +### 1.0.0-rc10 (September 6, 2023) -- Include /dist for GitHub repo +- Fixed issue in iOS when OAuth popup is closed, dismissing Connect and making the application unresponsive -### 1.0.0-rc.2 (April 8, 2021) +### 1.0.0-rc9 (August 1, 2023) -- Send data object in user and route events -- Added event interfaces +- Fixed issue in Android with OAuth popup being dismissed on Android when navigating away from app -### 1.0.0-rc3 (April 15, 2021) +### 1.0.0-rc8 (December 8, 2022) -- Added MIT license -- Fixed README example -- Fixed payload in `onDone`, `onCancel` and `onExit` events +- Fixed dependencies version mismatch +- Remove any references to External sources -### 1.0.0-rc4 (April 21, 2021) +### 1.0.0-rc7 (August 3, 2022) -- Fixed dependencies -- Ignore /dist -- Remove app.json +- Mastercard rebranding +- Updated dependencies + +### 1.0.0-rc6 (March 22, 2022) + +- Updated dependencies and README ### 1.0.0-rc5 (May 11, 2021) - Moved `react` and `react-native` to `devDependencies` and `peerDependencies` -### 1.0.0-rc6 (March 22, 2022) +### 1.0.0-rc4 (April 21, 2021) -- Updated dependencies and README +- Fixed dependencies +- Ignore /dist +- Remove app.json -### 1.0.0-rc7 (August 3, 2022) +### 1.0.0-rc3 (April 15, 2021) -- Mastercard rebranding -- Updated dependencies +- Added MIT license +- Fixed README example +- Fixed payload in `onDone`, `onCancel` and `onExit` events -### 1.0.0-rc8 (December 8, 2022) +### 1.0.0-rc.2 (April 8, 2021) -- Fixed dependencies version mismatch -- Remove any references to Finicity +- Send data object in user and route events +- Added event interfaces -### 1.0.0-rc9 (August 1, 2023) +### 1.0.0-rc.1 (April 8, 2021) -- Fixed issue in Android with OAuth popup being dismissed on Android when navigating away from app +- Include /dist for GitHub repo -### 1.0.0-rc10 (September 6, 2023) +### 1.0.0-rc.0 (April 3, 2021) -- Fixed issue in iOS when OAuth popup is closed, dismissing Connect and making the application unresponsive +- Initial version \ No newline at end of file diff --git a/README.md b/README.md index 20ae1c0..cd22c51 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The Connect React Native SDK supports following android and iOS version. * Android : Android 5.0 (Lollipop) or later & minSdkVersion 21 or later * The Connect React Native SDK supports iOS 11 or later. -WARNING:Support for deepLinkUrl parameters is deprecated from Connect React Native SDK version 2.0.0, going forward please use the redirectUrl parameter which supports both universal and deep links. For more information see [Github documentation](https://github.com/Finicity/connect-react-native-sdk/blob/master/README.md) +WARNING: The redirectUrl property, supporting universal links on android, app links on iOS, and deeplinks, is available from Connect React Native SDK version 2.0.0 onward. ## Installation @@ -71,7 +71,7 @@ The Connect React Native SDK requires internet access to connect with our server | Props | Description | | ------ | ------ | | `connectUrl` (required) | The SDK loads the Connect URL. | -| `eventHandlers` (required) | A Object implementing the ConnectEventHandlers methods. | +| `eventHandlers` (required) | An Object implementing the ConnectEventHandlers methods. | | `redirectUrl` (optional) | App link URL/ Deep link URL to redirect back to your mobile app after completing FI’s OAuth flow. This parameter is only required for App to App. | See [Generate 2.0 Connect URL APIs](https://developer.mastercard.com/open-banking-us/documentation/connect/generate-2-connect-url-apis/) for `connectUrl` generation @@ -190,5 +190,5 @@ For information on how to configure your server see [supporting associated doma | Version | Compatibility | | ------- | ------------- | -| 1.x | React 16+ | -| 2.x | React 16+ | \ No newline at end of file +| 1.x | React 16+, React Native >=0.63 | +| 2.x | React 16+, React Native >=0.63 | \ No newline at end of file diff --git a/android/src/main/AndroidManifestNew.xml b/android/src/main/AndroidManifestNew.xml index a2f47b6..f8adcda 100644 --- a/android/src/main/AndroidManifestNew.xml +++ b/android/src/main/AndroidManifestNew.xml @@ -1,2 +1,14 @@ - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/package.json b/package.json index ad31122..927df0b 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "connect-react-native-sdk", - "version": "2.0.6-rc.1", + "version": "2.0.0", "description": "React Native SDK for Mastercard Open Banking Connect", "main": "lib/commonjs/index", "module": "lib/module/index", "types": "lib/typescript/src/index.d.ts", "license": "MIT", "author": "connect-react-native-sdk", - "homepage": "https://github.com/Finicity/connect-react-native-sdk", + "homepage": "https://github.com/Mastercard/connect-react-native-sdk", "react-native": "src/index", "source": "src/index", "files": [ diff --git a/src/index.tsx b/src/index.tsx index d0d5988..e8bf213 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -110,6 +110,7 @@ export class Connect extends Component { if (Platform.OS === 'android') { const { type } = await ConnectReactNativeSdk.open({ url, + ...(browserOptions || {}), }); this.dismissBrowser(type);