From a9a03adc8ca68312b7cf9278f65db758912df0b2 Mon Sep 17 00:00:00 2001 From: ansh Date: Mon, 31 Oct 2022 18:27:41 +0530 Subject: [PATCH 1/2] [SDK-2375] support ct core 4.6.6 --- CHANGELOG.md | 5 +++++ Example/android/app/build.gradle | 2 +- Example/package.json | 5 +++-- android/build.gradle | 6 +++--- docs/install.md | 2 +- package.json | 2 +- 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b345dc6..ba1a25db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Change Log ========== +Version 0.9.3 *(1 November 2022)* +------------------------------------------- +- Supports CleverTap Android Core SDK [v4.6.6](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTCORECHANGELOG.md) and associated enhancements + + Version 0.9.2 *(7 October 2022)* ------------------------------------------- - Supports [CleverTap iOS SDK v4.1.2](https://github.com/CleverTap/clevertap-ios-sdk/blob/master/CHANGELOG.md#version-412-september-16-2022) and associated enhancements diff --git a/Example/android/app/build.gradle b/Example/android/app/build.gradle index 6afd14ab..3dabcd50 100644 --- a/Example/android/app/build.gradle +++ b/Example/android/app/build.gradle @@ -216,7 +216,7 @@ dependencies { //clevertap - implementation 'com.clevertap.android:clevertap-android-sdk:4.6.3' + implementation 'com.clevertap.android:clevertap-android-sdk:4.6.6' implementation "com.clevertap.android:push-templates:1.0.5" implementation project(':clevertap-react-native') diff --git a/Example/package.json b/Example/package.json index 2a575c00..eacf2e8c 100644 --- a/Example/package.json +++ b/Example/package.json @@ -7,13 +7,14 @@ "ios": "react-native run-ios", "start": "react-native start", "test": "jest", - "lint": "eslint ." + "lint": "eslint .", + "install": "npm install --f" }, "dependencies": { "@react-navigation/drawer": "^5.12.5", "@react-navigation/native": "^6.0.6", "@react-navigation/native-stack": "^6.2.5", - "clevertap-react-native": "git+https://github.com/CleverTap/clevertap-react-native#task/SDK-2207-ios-4.1.2", + "clevertap-react-native": "0.9.2", "react": "17.0.1", "react-native": "0.64.1", "react-native-drawer": "^2.5.1", diff --git a/android/build.gradle b/android/build.gradle index 14d579c7..8d68668c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,8 +21,8 @@ android { defaultConfig { minSdkVersion 16 targetSdkVersion 31 - versionCode 92 - versionName "0.9.2" + versionCode 93 + versionName "0.9.3" } buildTypes { release { @@ -39,7 +39,7 @@ dependencies { maven { url "$rootDir/../node_modules/react-native/android" } } - api 'com.clevertap.android:clevertap-android-sdk:4.6.3' + api 'com.clevertap.android:clevertap-android-sdk:4.6.6' implementation 'com.android.installreferrer:installreferrer:2.2' //compile 'com.android.support:appcompat-v7:28.0.0' implementation 'com.facebook.react:react-native:+' diff --git a/docs/install.md b/docs/install.md index 3c378f15..64ea7a5e 100644 --- a/docs/install.md +++ b/docs/install.md @@ -86,7 +86,7 @@ dependencies { //clevertap - implementation 'com.clevertap.android:clevertap-android-sdk:4.6.3' + implementation 'com.clevertap.android:clevertap-android-sdk:4.6.6' // other libs diff --git a/package.json b/package.json index 657ca78c..f217c976 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clevertap-react-native", - "version": "0.9.2", + "version": "0.9.3", "description": "CleverTap React Native SDK.", "main": "index.js", "types": "index.d.ts", From 2fd1c70f22ec9543aa2c7cc4f1feacf116ed3609 Mon Sep 17 00:00:00 2001 From: Piyush Kukadiya Date: Tue, 1 Nov 2022 14:42:49 +0530 Subject: [PATCH 2/2] fix(SDK-2375): fix #273 --- index.d.ts | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/index.d.ts b/index.d.ts index e5951ccc..f87b700b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -276,25 +276,29 @@ export function profileGetProperty(propertyName: string, callback: Callback): void; /** - * Deprecated - Since version 0.6.0. Use getCleverTapID(callback) instead + * @deprecated + * Since version 0.6.0. Use `getCleverTapID(callback)` instead. + * * Get a unique CleverTap identifier suitable for use with install attribution providers. - * calls back with unique CleverTap attribution identifier + * @param {function(err, res)} callback that returns a string res */ - export function profileGetCleverTapAttributionIdentifier(callback: Callback): void; + export function profileGetCleverTapAttributionIdentifier(callback: CallbackString): void; /** - * Deprecated - Since version 0.6.0. Use getCleverTapID(callback) instead + * @deprecated + * Since version 0.6.0. Use `getCleverTapID(callback)` instead. + * * Get User Profile CleverTapID - * calls back with CleverTapID or false + * @param {function(err, res)} callback that returns a string res */ - export function profileGetCleverTapID(callback: Callback): void; + export function profileGetCleverTapID(callback: CallbackString): void; /** * Returns a unique identifier through callback by which CleverTap identifies this user * * @param {function(err, res)} non-null callback to retrieve identifier */ - export function getCleverTapID(callback: Callback): void; + export function getCleverTapID(callback: CallbackString): void; /** * Remove the property specified by key from the user profile. Alternatively this method @@ -616,3 +620,9 @@ export function setDebugLevel(level: number): void; type Callback = (err: object, res: object) => void; + type CallbackString = (err: object, res: string) => void; + + export const FCM : string; + export const XPS : string; + export const BPS : string; + export const HPS : string;