Skip to content

Commit

Permalink
Merge pull request #249 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release 0.9.0 SDK-2045
  • Loading branch information
piyush-kukadiya authored Aug 23, 2022
2 parents 807cefd + a68521a commit a65e32b
Show file tree
Hide file tree
Showing 10 changed files with 1,191 additions and 1,083 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Change Log
==========
Version 0.9.0 *(23rd August 2022)*
-------------------------------------------
- Supports [CleverTap Android SDK v4.6.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev4.6.0_ptv1.0.4)

Version 0.8.1 *(7th March 2022)*
-------------------------------------------
- Supports CleverTap iOS SDK `v4.0.0`
Expand Down
4 changes: 2 additions & 2 deletions Example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ dependencies {
implementation "com.facebook.react:react-native:+" // From node_modules

//added from atlasian doc
implementation 'com.clevertap.android:clevertap-android-sdk:4.4.0'
implementation "com.clevertap.android:push-templates:1.0.0"
implementation 'com.clevertap.android:clevertap-android-sdk:4.6.0'
implementation "com.clevertap.android:push-templates:1.0.4"
// implementation 'com.google.android.gms:play-services-ads:19.0.1'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.android.installreferrer:installreferrer:2.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public ReactNativeHost getReactNativeHost() {
@Override
public void onCreate() {
CleverTapAPI.setDebugLevel(LogLevel.VERBOSE);
// you can use below two xiaomi related methods from clevertap-react-native 0.9.0 onwards
//CleverTapAPI.changeXiaomiCredentials("your xiaomi app id","your xiaomi app key")
//CleverTapAPI.enableXiaomiPushOn(XIAOMI_MIUI_DEVICES)
CleverTapAPI.setNotificationHandler((NotificationHandler) new PushTemplateNotificationHandler());
CleverTapAPI.getDefaultInstance(getApplicationContext()).enableDeviceNetworkInfoReporting(true);
registerActivityLifecycleCallbacks(this);
Expand Down
2,245 changes: 1,172 additions & 1,073 deletions Example/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@react-navigation/drawer": "^5.12.5",
"@react-navigation/native": "^6.0.6",
"@react-navigation/native-stack": "^6.2.5",
"clevertap-react-native": "^0.8.0",
"clevertap-react-native": "git+https://github.com/CleverTap/clevertap-react-native.git#task/update_core_4.6.0/SDK-2045",
"react": "17.0.1",
"react-native": "0.64.1",
"react-native-drawer": "^2.5.1",
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 31
versionCode 80
versionName "0.8.0"
versionCode 90
versionName "0.9.0"
}
buildTypes {
release {
Expand All @@ -39,7 +39,7 @@ dependencies {
maven { url "$rootDir/../node_modules/react-native/android" }
}

api 'com.clevertap.android:clevertap-android-sdk:4.4.0'
api 'com.clevertap.android:clevertap-android-sdk:4.6.0'
implementation 'com.android.installreferrer:installreferrer:2.2'
//compile 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.facebook.react:react-native:+'
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ If you're on RN 0.60 or your project configuration doesn't allow to add `use_fra
```gradle
dependencies {
...
implementation 'com.clevertap.android:clevertap-android-sdk:4.4.0'
implementation 'com.clevertap.android:clevertap-android-sdk:4.6.0'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.google.firebase:firebase-messaging:21.0.0'
implementation 'com.google.android.exoplayer:exoplayer:2.15.1' //Optional for Audio/Video
Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@
export function getCleverTapID(callback: Callback): void;

/**
* Remove the property specified by key from the user profile
* Remove the property specified by key from the user profile. Alternatively this method
* can also be used to remove PII data (for eg. Email,Name,Phone), locally from database and shared prefs
* @param key {string}
*/
export function profileRemoveValueForKey(key: string): void;
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ var CleverTap = {
},

/**
* Remove a key-value from the user profile
* Remove a key-value from the user profile. Alternatively this method can also be used to remove PII data
* (for eg. Email,Name,Phone), locally from database and shared prefs
* @param {string} the key to remove
*/
profileRemoveValueForKey: function (key) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clevertap-react-native",
"version": "0.8.1",
"version": "0.9.0",
"description": "CleverTap React Native SDK.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit a65e32b

Please sign in to comment.