Skip to content

Commit

Permalink
Merge pull request #348 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release v1.2.0
  • Loading branch information
shivamsharma2710 authored Aug 18, 2023
2 parents 9c7794b + 7cee2d8 commit 8348417
Show file tree
Hide file tree
Showing 13 changed files with 23,065 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
Change Log
==========

Version 1.2.0 *(18th August 2023)*
-------------------------------------------

**What's new**

* **[Android Platform]**
* Supports [CleverTap Android SDK v5.2.0](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTCORECHANGELOG.md#version-520-august-10-2023).
* ***Note: RenderMax Push SDK functionality is now supported directly within the CleverTap Core SDK***. Please remove the [integrated RenderMax SDK](https://developer.clevertap.com/docs/react-native-push-notification#integrate-rendermax-push-sdk-with-react-native) before you upgrade to CleverTap React Native SDK for this version.
* Adds support for developer defined default notification channel. Please refer to the [Usage.md](https://github.com/CleverTap/clevertap-react-native/blob/master/docs/usage.md#default-notification-channel) file to read more on how to setup default channel in your app. Also please note that this is only supported for CleverTap core notifications. Support for push templates will be released soon.

* **[iOS Platform]**
* Supports [CleverTap iOS SDK v5.2.0](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/5.2.0).

* **[Android and iOS Platform]**
* Adds support for encryption of PII data wiz. Email, Identity, Name and Phone. Please refer to [Usage.md](https://github.com/CleverTap/clevertap-react-native/blob/master/docs/usage.md#encryption-of-pii-data) file to read more on how to enable/disable encryption of PII data.
* Adds support for custom KV pairs common to all inbox messages in App Inbox.

**API Changes**
* **[Android Platform]**
* Adds `SCCampaignOptOut` Event to Restricted Events Name List for **internal use**.
* Adds custom sdk versions to `af` field for **internal use**.

**Breaking API Changes**
* **[Android Platform]**
* **CTFlushPushImpressionsWork breaks custom WorkerFactory implementation of an App**:
* If you are using custom `WorkFactory` implementation of `WorkManager` for Android platform then make sure that you correctly handle workers defined by CleverTap SDK and other third party dependencies.
* You must return `null` from `createWorker()` for any unknown workerClassName. Please check implementation provided in the blog [here](https://medium.com/androiddevelopers/customizing-workmanager-fundamentals-fdaa17c46dd2).

**Bug Fixes**
* **[Android Platform]**
* Fixes [#393](https://github.com/CleverTap/clevertap-android-sdk/issues/393) - push permission flow crash when context in CoreMetadata is null.
* Fixes [#428](https://github.com/CleverTap/clevertap-android-sdk/issues/428) - Race-condition when detecting if an in-app message should show.
* Fixes Push primer alert dialog freeze behavior, which became unresponsive when clicked outside the window.
* Fixes a bug where addMultiValueForKey and addMultiValuesForKey were overwriting the current values of the user properties instead of appending it.

Version 1.1.2 *(31st July 2023)*
-------------------------------------------
**New Updates**
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 @@ -218,15 +218,15 @@ dependencies {


//clevertap
implementation 'com.clevertap.android:clevertap-android-sdk:5.0.0'
implementation 'com.clevertap.android:clevertap-android-sdk:5.2.0'
implementation "com.clevertap.android:push-templates:1.0.9"
implementation project(':clevertap-react-native')


// 3rd party
implementation 'com.github.bumptech.glide:glide:4.12.0' //Mandatory for App Inbox

implementation "com.clevertap.android:clevertap-rendermax-sdk:1.0.3"
//implementation "com.clevertap.android:clevertap-rendermax-sdk:1.0.3"


debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
Expand Down
10 changes: 6 additions & 4 deletions Example/ios/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
Expand Down Expand Up @@ -376,12 +376,13 @@
"$(inherited)",
);
LIBRARY_SEARCH_PATHS = (
"$(SDKROOT)/usr/lib/swift",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
};
name = Debug;
Expand All @@ -391,7 +392,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
Expand Down Expand Up @@ -434,11 +435,12 @@
"$(inherited)",
);
LIBRARY_SEARCH_PATHS = (
"$(SDKROOT)/usr/lib/swift",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
"\"$(inherited)\"",
);
MTL_ENABLE_DEBUG_INFO = NO;
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
Expand Down
2 changes: 1 addition & 1 deletion Example/ios/Example/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
Expand Down
4 changes: 2 additions & 2 deletions Example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'
platform :ios, '13.0'

target 'Example' do

config = use_native_modules!

use_react_native!(:path => config["reactNativePath"])
use_react_native!(:path => config[:reactNativePath], :hermes_enabled => false)

pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
Expand Down
Loading

0 comments on commit 8348417

Please sign in to comment.