From 88f0f76ff7eed0fee20b271572ae8b07b182acf2 Mon Sep 17 00:00:00 2001 From: Hugo EXTRAT Date: Mon, 9 Sep 2024 08:49:40 +0200 Subject: [PATCH 1/4] fix(typescript): AdjustDeeplink class --- index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.d.ts b/index.d.ts index e77ecc5d..2bd73e81 100644 --- a/index.d.ts +++ b/index.d.ts @@ -189,6 +189,10 @@ declare module 'react-native-adjust' { constructor(productId: string, purchaseToken: string) } + export class AdjustDeeplink { + constructor(deeplink: string) + } + export const Adjust: { componentWillUnmount: () => void initSdk: (adjustConfig: AdjustConfig) => void From 655097afaef46ad4ab1878bca8ae52885cba9dd9 Mon Sep 17 00:00:00 2001 From: uerceg Date: Tue, 10 Sep 2024 15:00:40 +0200 Subject: [PATCH 2/4] fix: rename deferred deep link ts interface to avoid naming collision --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2bd73e81..fa330a29 100644 --- a/index.d.ts +++ b/index.d.ts @@ -50,7 +50,7 @@ declare module 'react-native-adjust' { jsonResponse: string } - interface AdjustDeeplink { + interface AdjustDeferredDeeplink { deeplink: string } @@ -113,7 +113,7 @@ declare module 'react-native-adjust' { ): void public setDeferredDeeplinkCallback( - callback: (deeplink: AdjustDeeplink) => void + callback: (deeplink: AdjustDeferredDeeplink) => void ): void public setSkanUpdatedCallback( From a66d9fd990a6b8b915d873705463866b682c360b Mon Sep 17 00:00:00 2001 From: uerceg Date: Tue, 10 Sep 2024 15:02:41 +0200 Subject: [PATCH 3/4] feat: update version number to 5.0.1 --- VERSION | 2 +- index.js | 4 ++-- package.json | 2 +- plugins/oaid/package.json | 2 +- test/lib/package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 28cbf7c0..6b244dcd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.0.0 \ No newline at end of file +5.0.1 diff --git a/index.js b/index.js index 2d479a91..4d734c60 100644 --- a/index.js +++ b/index.js @@ -152,7 +152,7 @@ Adjust.getAmazonAdId = function(callback) { }; Adjust.getSdkVersion = function(callback) { - module_adjust.getSdkVersion("react-native5.0.0", callback); + module_adjust.getSdkVersion("react-native5.0.1", callback); }; Adjust.requestAppTrackingAuthorization = function(callback) { @@ -294,7 +294,7 @@ Adjust.onPause = function(testParam) { // AdjustConfig var AdjustConfig = function(appToken, environment) { - this.sdkPrefix = "react-native5.0.0"; + this.sdkPrefix = "react-native5.0.1"; this.appToken = appToken; this.environment = environment; this.logLevel = null; diff --git a/package.json b/package.json index 8ba5b532..b0cfd447 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-adjust", "description": "Adjust React Native SDK", - "version": "5.0.0", + "version": "5.0.1", "main": "index.js", "author": "Adjust", "license": "MIT", diff --git a/plugins/oaid/package.json b/plugins/oaid/package.json index c3e186d2..63d680a7 100644 --- a/plugins/oaid/package.json +++ b/plugins/oaid/package.json @@ -1,7 +1,7 @@ { "name": "react-native-adjust-oaid", "description": "Adjust React Native OAID plugin", - "version": "5.0.0", + "version": "5.0.1", "main": "index.js", "author": "Adjust", "license": "MIT", diff --git a/test/lib/package.json b/test/lib/package.json index 31b7d8ad..306987a4 100644 --- a/test/lib/package.json +++ b/test/lib/package.json @@ -1,7 +1,7 @@ { "name": "react-native-adjust-test", "description": "Adjust Test Plugin For React Native SDK", - "version": "5.0.0", + "version": "5.0.1", "author": "Adjust", "license": "MIT", "keywords": [ From 9362ec33cf4214ad7efc68a098dabff5712352b1 Mon Sep 17 00:00:00 2001 From: uerceg Date: Tue, 10 Sep 2024 15:05:13 +0200 Subject: [PATCH 4/4] docs: update changelog --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2c9d34d..2076d2f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +### Version 5.0.1 (10th September 2024) +#### Fixed +- Added missing `AdjustDeeplink` class export to `index.d.ts` (https://github.com/adjust/react_native_sdk/pull/246). +- Renamed `AdjustDeeplink` interface to `AdjustDeferredDeeplink` to avoid naming collision with as of now the class named `AdjustDeeplink`. + +#### Native SDKs +- [iOS@v5.0.0][ios_sdk_v5.0.0] +- [Android@v5.0.0][android_sdk_v5.0.0] + +--- + ### Version 5.0.0 (6th September 2024) We're excited to release our major new SDK version (v5). Among many internal improvements, our spoofing protection solution is now included out of the box, reinforcing our commitment to accurate, actionable, and fraud-free data.