clevertap-react-native 3.6.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  Change Log
2
2
  ==========
3
3
 
4
+ Version 3.7.0 *(October 3 2025)*
5
+ -------------------------------------------
6
+ **What's new**
7
+ * **[Android Platform]**
8
+ * Supports [CleverTap Android SDK v7.5.2](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTCORECHANGELOG.md#version-752-september-11-2025).
9
+
10
+ * **[iOS Platform]**
11
+ * Supports [CleverTap iOS SDK v7.3.3](https://github.com/CleverTap/clevertap-ios-sdk/blob/master/CHANGELOG.md#version-733-september-11-2025).
12
+
13
+ **Bug Fixes**
14
+ * **[Android and iOS Platform]**
15
+ * Fixes [#480](https://github.com/CleverTap/clevertap-react-native/issues/480) – an issue where dates were incorrectly parsed for the case-sensitive `DOB` key.
16
+
4
17
  Version 3.6.0 *(July 17 2025)*
5
18
  -------------------------------------------
6
19
  **What's new**
@@ -1,2 +1,2 @@
1
- #Mon Jul 14 18:30:02 IST 2025
1
+ #Mon Jul 14 15:16:11 IST 2025
2
2
  gradle.version=8.5
@@ -0,0 +1,2 @@
1
+ #Mon Sep 02 11:39:00 IST 2024
2
+ java.home=/Applications/Android Studio.app/Contents/jbr/Contents/Home
@@ -0,0 +1,13 @@
1
+ arguments=--init-script /var/folders/tb/xy65j0js76dbd8tvp5tcww700000gp/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/tb/xy65j0js76dbd8tvp5tcww700000gp/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
2
+ auto.sync=false
3
+ build.scans.enabled=false
4
+ connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5
+ connection.project.dir=
6
+ eclipse.preferences.version=1
7
+ gradle.user.home=
8
+ java.home=/Users/anush/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home
9
+ jvm.arguments=
10
+ offline.mode=false
11
+ override.workspace.settings=true
12
+ show.console.view=true
13
+ show.executions.view=true
@@ -35,8 +35,8 @@ android {
35
35
  defaultConfig {
36
36
  minSdkVersion 21
37
37
  targetSdkVersion 35
38
- versionCode 360
39
- versionName "3.6.0"
38
+ versionCode 370
39
+ versionName "3.7.0"
40
40
  buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
41
41
  }
42
42
 
@@ -54,7 +54,7 @@ android {
54
54
  }
55
55
 
56
56
  dependencies {
57
- api 'com.clevertap.android:clevertap-android-sdk:7.5.0'
57
+ api 'com.clevertap.android:clevertap-android-sdk:7.5.2'
58
58
  implementation 'com.android.installreferrer:installreferrer:2.2'
59
59
  //compile 'com.android.support:appcompat-v7:28.0.0'
60
60
  implementation 'com.facebook.react:react-native:+'
@@ -0,0 +1,8 @@
1
+ ## This file must *NOT* be checked into Version Control Systems,
2
+ # as it contains information specific to your local configuration.
3
+ #
4
+ # Location of the SDK. This is only used by Gradle.
5
+ # For customization when using a Version Control System, please read the
6
+ # header note.
7
+ #Tue Mar 05 15:18:18 IST 2024
8
+ sdk.dir=/Users/anush/Library/Android/sdk
@@ -1667,7 +1667,7 @@ public class CleverTapModuleImpl {
1667
1667
  String key = iterator.nextKey();
1668
1668
  ReadableType readableType = profileMap.getType(key);
1669
1669
 
1670
- if ("DOB".equals(key) && (readableType == ReadableType.String)) {
1670
+ if ("DOB".equals(key) && (readableType == ReadableType.String) && !profileMap.getString(key).startsWith("$D_")) {
1671
1671
  String dob = profileMap.getString(key);
1672
1672
  SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH);
1673
1673
  try {
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
24
24
  s.dependency 'React-Core'
25
25
  end
26
26
 
27
- s.dependency 'CleverTap-iOS-SDK', '7.3.1'
27
+ s.dependency 'CleverTap-iOS-SDK', '7.3.3'
28
28
 
29
29
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
30
30
  s.pod_target_xcconfig = {
package/docs/usage.md CHANGED
@@ -12,6 +12,7 @@ const CleverTap = require('clevertap-react-native');
12
12
 
13
13
  ```javascript
14
14
  CleverTap.profileSet({"Identity":11102008, "Name":"React-Test Profile","Email":"r@gmail.com","Gender":"Male","DOB":"1995-10-14", "custom":1.73});
15
+ // The 'DOB' case-sensitive key can have the value either as a Date object or a string in the format 'yyyy-mm-dd'
15
16
  ```
16
17
 
17
18
  #### Set Multi Values For Key
@@ -569,8 +569,7 @@ RCT_EXPORT_METHOD(setDebugLevel:(double)level) {
569
569
 
570
570
  NSDate *dob = nil;
571
571
 
572
- if([value isKindOfClass:[NSString class]]) {
573
-
572
+ if([value isKindOfClass:[NSString class]] && ![value hasPrefix:@"$D_"]) {
574
573
  if(!dateFormatter) {
575
574
  dateFormatter = [[NSDateFormatter alloc] init];
576
575
  [dateFormatter setDateFormat:@"yyyy-MM-dd"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clevertap-react-native",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "CleverTap React Native SDK.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.js CHANGED
@@ -12,7 +12,7 @@ const EventEmitter = Platform.select({
12
12
  * @param {int} libVersion - The updated library version. If current version is 1.1.0 then pass as 10100
13
13
  */
14
14
  const libName = 'React-Native';
15
- const libVersion = 30600;
15
+ const libVersion = 30700;
16
16
  CleverTapReact.setLibrary(libName,libVersion);
17
17
 
18
18
  function defaultCallback(method, err, res) {
@@ -1,2 +0,0 @@
1
- 12:04:49.152 [AWT-EventQueue-0] INFO c.b.actions.DisableBrowserStack - Setting disable browserstack run update
2
- 12:04:49.157 [AWT-EventQueue-0] INFO c.b.actions.EnableBrowserStack - Setting enable browserstack run update