Skip to content

Commit

Permalink
Merge pull request #78 from CleverTap/develop
Browse files Browse the repository at this point in the history
SDK 3.1.0 release
  • Loading branch information
AlokKumar-CT authored Apr 24, 2024
2 parents 6a4a30e + 18cd1a2 commit 4b875e9
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 98 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Change Log
==========

Version 3.1.0 *(24 April, 2024)*
-------------------------------------------
- Updated to [CleverTap Android SDK v6.2.1](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.2.1)
- Updated to [CleverTap iOS SDK v6.2.1](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/6.2.1)
- Added privacy manifests support for iOS.
- Supports Android 14, made it compliant with Android 14 requirements. Details [here](https://developer.android.com/about/versions/14/summary)
- Upgrades AGP to 8.2.2 for building the SDK and adds related consumer proguard rules
- Deprecates Xiaomi public methods as we are sunsetting SDK. Details [here](https://dev.mi.com/distribute/doc/details?pId=1555).

Version 3.0.0 *(15 Jan, 2024)*
-------------------------------------------
- Updated to [CleverTap Android SDK v6.0.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.0.0)
Expand Down
2 changes: 1 addition & 1 deletion CTExporter/ProjectSettings/AndroidResolverDependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<packages>
<package>androidx.core:core:1.9.0</package>
<package>com.android.installreferrer:installreferrer:2.2</package>
<package>com.clevertap.android:clevertap-android-sdk:6.0.0</package>
<package>com.clevertap.android:clevertap-android-sdk:6.2.1</package>
<package>com.google.firebase:firebase-messaging:23.0.6</package>
</packages>
<files />
Expand Down
51 changes: 0 additions & 51 deletions CleverTap/Editor/IOSConfigSettings.cs

This file was deleted.

11 changes: 0 additions & 11 deletions CleverTap/Editor/IOSConfigSettings.cs.meta

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ext {
libraryDescription = 'The CleverTap Android Wrapper for Unity SDK'

mindSdkVersionVal = 19
compileSdkVersionVal = 33
compileSdkVersionVal = 34
targetSdkVersionVal = compileSdkVersionVal
buildToolsVersionVal = "33.0.0"
buildToolsVersionVal = "34.0.0"

libraryVersion = "2.4.2"
libraryVersion = "3.1.0"
}

android {
Expand All @@ -33,14 +33,10 @@ android {
}
}

repositories {
mavenCentral()
}

dependencies {
compileOnly fileTree('libs')

implementation 'com.clevertap.android:clevertap-android-sdk:6.0.0'
implementation 'com.clevertap.android:clevertap-android-sdk:6.2.1'
implementation 'com.google.firebase:firebase-messaging:23.0.6'
implementation 'androidx.core:core:1.9.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public class CleverTapUnityPlugin implements SyncListener, InAppNotificationList
private static final String CLEVERTAP_VARIABLE_VALUE_CHANGED = "CleverTapVariableValueChanged";

private static final String CLEVERTAP_VARIABLES_FETCHED = "CleverTapVariablesFetched";
private static final String CLEVERTAP_INAPPS_FETCHED = "CleverTapInAppsFetched";
private static final String CLEVERTAP_INAPPS_FETCHED = "CleverTapInAppsFetched";

private static CleverTapUnityPlugin instance = null;

Expand Down Expand Up @@ -300,8 +300,6 @@ public static void deleteNotificationChannelGroup(Context context, String groupI
public void setPushToken(String token, String region, String type) {
if (PushConstants.PushType.valueOf(type.toLowerCase()).equals(PushConstants.PushType.FCM)) {
clevertap.pushFcmRegistrationId(token, true);
} else if (PushConstants.PushType.valueOf(type.toLowerCase()).equals(PushConstants.PushType.XPS)) {
clevertap.pushXiaomiRegistrationId(token, region,true);
} else if (PushConstants.PushType.valueOf(type.toLowerCase()).equals(PushConstants.PushType.BPS)) {
clevertap.pushBaiduRegistrationId(token, true);
} else if (PushConstants.PushType.valueOf(type.toLowerCase()).equals(PushConstants.PushType.HPS)) {
Expand Down Expand Up @@ -757,11 +755,11 @@ public void onValueChanged(Var variable) {

public String getVariableValue(String variableName) {
Object value = clevertap.getVariableValue(variableName);
if (value == null) {
return null;
}
return (value instanceof Map) ? new JSONObject((Map<?, ?>) value).toString() : value.toString();
if (value == null) {
return null;
}
return (value instanceof Map) ? new JSONObject((Map<?, ?>) value).toString() : value.toString();
}

public void syncVariables() {
Expand All @@ -784,10 +782,10 @@ public void onVariablesFetched(boolean isSuccess) {
}
});
}
// InApps
public void fetchInApps(final int callbackId) {
clevertap.fetchInApps(new FetchInAppsCallback() {
// InApps
public void fetchInApps(final int callbackId) {
clevertap.fetchInApps(new FetchInAppsCallback() {
@Override
public void onInAppsFetched(boolean isSuccess) {
JSONObject json = new JSONObject();
Expand All @@ -801,16 +799,16 @@ public void onInAppsFetched(boolean isSuccess) {
messageUnity(CLEVERTAP_GAME_OBJECT_NAME, CLEVERTAP_INAPPS_FETCHED, json.toString());
}
});
}
}

/**
* Deletes all images and gifs which are preloaded for inapps in cs mode
*
* @param expiredOnly to clear only assets which will not be needed further for inapps
*/
public void clearInAppResources(boolean expiredOnly) {
clevertap.clearInAppResources(expiredOnly);
}
clevertap.clearInAppResources(expiredOnly);
}

//Native Display Units
public String getAllDisplayUnits() {
Expand Down
2 changes: 1 addition & 1 deletion CleverTap/Plugins/Editor/CleverTapDependencies.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<iosPods>
<iosPod name="CleverTap-iOS-SDK" version="6.0.0" minTargetSdk="9.0" />
<iosPod name="CleverTap-iOS-SDK" version="6.2.1" minTargetSdk="9.0" />
</iosPods>
</dependencies>
2 changes: 1 addition & 1 deletion CleverTap/Plugins/iOS/CleverTapUnityManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@
- (void)fetchInApps:(int)callbackId;
- (void)clearInAppResources:(BOOL)expiredOnly;

@end
@end
7 changes: 4 additions & 3 deletions CleverTap/Plugins/iOS/CleverTapUnityManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ - (void)recordEvent:(NSString *)event {
}

- (void)recordEvent:(NSString *)event withProps:(NSDictionary *)properties {
NSDictionary *attributes = cleverTap_convertDateValues(properties);
NSDictionary *attributes = cleverTap_convertDateValues(properties);
[clevertap recordEvent:event withProps:attributes];
}

- (void)recordChargedEventWithDetails:(NSDictionary *)chargeDetails andItems:(NSArray *)items {
NSDictionary *details = cleverTap_convertDateValues(chargeDetails);
NSDictionary *details = cleverTap_convertDateValues(chargeDetails);
[clevertap recordChargedEventWithDetails:details andItems:items];
}

Expand Down Expand Up @@ -895,7 +895,8 @@ - (void)syncVariables
[clevertap syncVariables];
}

- (void)syncVariables:(BOOL)isProduction {
- (void)syncVariables:(BOOL)isProduction
{
[clevertap syncVariables:isProduction];
}

Expand Down
2 changes: 1 addition & 1 deletion CleverTap/Runtime/CleverTap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -450,4 +450,4 @@ public static void ClearInAppResources(bool expiredOnly) =>

#endregion
}
}
}
2 changes: 1 addition & 1 deletion CleverTap/Runtime/Common/Var.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using CleverTapSDK.Constants;
using CleverTapSDK.Constants;
using CleverTapSDK.Utilities;

namespace CleverTapSDK.Common {
Expand Down
2 changes: 1 addition & 1 deletion CleverTap/Runtime/Constants/CleverTapVersion.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace CleverTapSDK.Constants {
internal static class CleverTapVersion {
internal const string CLEVERTAP_SDK_VERSION = "3.0.0";
internal const string CLEVERTAP_SDK_VERSION = "3.1.0";
}
}
2 changes: 1 addition & 1 deletion CleverTap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.clevertap.clevertap-sdk-unity",
"version": "3.0.0",
"version": "3.1.0",
"displayName": "CleverTap",
"description": "The CleverTap Unity SDK for App Analytics and Engagement.",
"documentationUrl": "https://www.clevertap.com/docs",
Expand Down
Binary file modified CleverTapSDK.unitypackage
Binary file not shown.

0 comments on commit 4b875e9

Please sign in to comment.