Skip to content

Commit

Permalink
Merge pull request #273 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release v3.3.0
  • Loading branch information
Anush-Shand authored Dec 3, 2024
2 parents d38907d + a59fc56 commit 2173865
Show file tree
Hide file tree
Showing 50 changed files with 2,768 additions and 7,367 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ Samples/Cordova/ExampleProject/plugins/clevertap-cordova/ExampleProject/platform
Samples/Cordova/ExampleProject/plugins/clevertap-cordova/ExampleProject/platforms/ios/Podfile.lock
src/android/google-services.json
Samples/Cordova/ExampleProject/platforms/android/app/src/main/google-services.json

Samples/Cordova/ExampleProject/platforms/android/app/google-services.json
Samples/Cordova/ExampleProject/platforms/android/app/src/main/assets/
Samples/Cordova/ExampleProject/platforms/android/app/src/main/java/com/clevertap/cordova
Samples/Cordova/ExampleProject/platforms/android/platform_www/cordova_plugins.js
Samples/Cordova/ExampleProject/platforms/android/platform_www/plugins/clevertap-cordova/www
Samples/IonicCapacitor/IonicCapReactProject/.project
Samples/IonicCapacitor/IonicCapReactProject/.idea
Samples/IonicCapacitor/IonicCapReactProject/.gradle
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
Change Log
==========

Version 3.3.0 *(December 3, 2024)*
-------------------------------------------
#### New Features
**Android Specific**
* Supports [CleverTap Android SDK v7.0.3](https://github.com/CleverTap/clevertap-android-sdk/blob/master/docs/CTCORECHANGELOG.md#version-703-november-29-2024).
* Removes character limit of maximum 3 lines from AppInbox messages
* Adds support for `AndroidX Media3` in lieu of the [deprecation](https://developer.android.com/media/media3/exoplayer/migration-guide) of `ExoPlayer`. While Clevertap continues to support `ExoPlayer`, migration is recommended. For migration refer [here](docs/Integrate-Android.md#migrating-from-exoplayer-to-androidx-media3-optional).

**iOS specific**
* Supports [CleverTap iOS SDK v7.0.3](https://github.com/CleverTap/clevertap-ios-sdk/blob/master/CHANGELOG.md#version-703-november-29-2024).

**Common for both Android and iOS**
* Adds support for triggering InApps based on user attribute changes.
* Adds support for File Type Variables in Remote Config. Please refer to the [Remote Config Variables](docs/Variables.md) doc to read more on how to integrate this in your app.
* Adds support for Custom Code Templates. Please refer to the [CustomCodeTemplates](docs/CustomCodeTemplates.md) doc to read more on how to integrate this in your app.
* Changes campaign triggering evaluation of event names, event properties, and profile properties to ignore letter case and whitespace.
* Adds support for previewing in-apps created through the new dashboard advanced builder.
* Adds support for custom handshake domain configuration.

#### Bug Fixes
**Android Specific**
* Fixes an ANR caused by extremely old InApp campaigns.
* Fixes an issue where incorrect callbacks were sent for InApps when the phone was rotated.
* Fixes an issue where an InApp was displayed even after all the campaigns were stopped.
* Fixes an issue where the InApp image was not shown when the phone was rotated to landscape.
* Fixes an issue where certain URLs loaded incorrectly in custom HTML InApp templates.


Version 3.2.0 *(August 12, 2024)*
-------------------------------------------
#### New Features
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ To get started, sign up [here](https://clevertap.com/live-product-demo/).

## ✅ Supported Versions

- [CleverTap Android SDK version 6.2.1](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.2.1)
- [CleverTap iOS SDK version 6.2.1](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/6.2.1)
- [CleverTap Android SDK version 7.0.3](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev7.0.3)
- [CleverTap iOS SDK version 7.0.3](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/7.0.3)

## 🚀 Installation and Quick Start

Expand Down
68 changes: 68 additions & 0 deletions Samples/Cordova/ExampleProject/assets/templates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"Example template": {
"type": "template",
"arguments": {
"bool": {
"type": "boolean",
"value": false
},
"string": {
"type": "string",
"value": "Default"
},
"map": {
"type": "object",
"value": {
"int": {
"type": "number",
"value": 0
},
"string": {
"type": "string",
"value": "Default"
}
}
},
"action": {
"type": "action"
},
"file": {
"type": "file"
}
}
},
"Example function": {
"type": "function",
"isVisual": false,
"arguments": {
"double": {
"type": "number",
"value": 99.98
},
"string": {
"type": "string",
"value": "Default"
},
"file": {
"type": "file"
}
}
},
"Example visual function": {
"type": "function",
"isVisual": true,
"arguments": {
"color": {
"type": "string",
"value": "transparent"
},
"enabled": {
"type": "boolean",
"value": false
},
"image": {
"type": "file"
}
}
}
}
3 changes: 3 additions & 0 deletions Samples/Cordova/ExampleProject/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<resource-file src="assets/templates.json" target="app/src/main/assets/templates.json" />
<resource-file src="assets/logo.png" target="app/src/main/assets/www/img/logo.png" />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.xml" />
</platform>
<platform name="ios">
<resource-file src="assets/templates.json" target="templates.json" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
Expand Down
4 changes: 3 additions & 1 deletion Samples/Cordova/ExampleProject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"cordova-android": "^13.0.0",
"cordova-android-support-gradle-release": "^3.0.1",
"cordova-ios": "^7.0.0",
"cordova-plugin-x-toast": "^2.7.3",
"ios": "0.0.1"
},
"cordova": {
Expand All @@ -27,7 +28,8 @@
"clevertap-cordova": {
"CLEVERTAP_ACCOUNT_ID": "TEST-R55-999-486Z",
"CLEVERTAP_TOKEN": "TEST-ccc-552"
}
},
"cordova-plugin-x-toast": {}
},
"platforms": [
"android",
Expand Down
36 changes: 29 additions & 7 deletions Samples/Cordova/ExampleProject/platforms/android/android.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"count": 1
},
{
"xml": "<meta-data android:name=\"CLEVERTAP_ACCOUNT_ID\" android:value=\"67Z-RRK-696Z\" />",
"xml": "<meta-data android:name=\"CLEVERTAP_ACCOUNT_ID\" android:value=\"ACCT ID\" />",
"count": 1
},
{
"xml": "<meta-data android:name=\"CLEVERTAP_TOKEN\" android:value=\"322-1a6\" />",
"xml": "<meta-data android:name=\"CLEVERTAP_TOKEN\" android:value=\"ACCT TOKEN\" />",
"count": 1
},
{
"xml": "<meta-data android:name=\"CLEVERTAP_REGION\" android:value=\"sk1-staging-25\" />",
"xml": "<meta-data android:name=\"CLEVERTAP_REGION\" android:value=\"Region\" />",
"count": 1
},
{
Expand All @@ -58,16 +58,29 @@
}
]
}
},
"res/xml/config.xml": {
"parents": {
"/*": [
{
"xml": "<feature name=\"Toast\"><param name=\"android-package\" value=\"nl.xservices.plugins.Toast\" /></feature>",
"count": 1
}
]
}
}
}
},
"installed_plugins": {
"clevertap-cordova": {
"CLEVERTAP_ACCOUNT_ID": "67Z-RRK-696Z",
"CLEVERTAP_TOKEN": "322-1a6",
"CLEVERTAP_REGION": "sk1-staging-25",
"CLEVERTAP_ACCOUNT_ID": "TEST-4RW-944-876Z",
"CLEVERTAP_TOKEN": "TEST-44c-024",
"CLEVERTAP_REGION": "eu1",
"FIREBASE_MESSAGING_VERSION": "23.0.6",
"PACKAGE_NAME": "com.clevertap.example"
},
"cordova-plugin-x-toast": {
"PACKAGE_NAME": "com.clevertap.example"
}
},
"dependent_plugins": {},
Expand All @@ -79,9 +92,18 @@
"clobbers": [
"CleverTap"
]
},
{
"id": "cordova-plugin-x-toast.Toast",
"file": "plugins/cordova-plugin-x-toast/www/Toast.js",
"pluginId": "cordova-plugin-x-toast",
"clobbers": [
"window.plugins.toast"
]
}
],
"plugin_metadata": {
"clevertap-cordova": "3.2.0"
"clevertap-cordova": "3.2.0",
"cordova-plugin-x-toast": "2.7.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ dependencies {
// SUB-PROJECT DEPENDENCIES START
implementation(project(path: ":CordovaLib"))
implementation "com.google.firebase:firebase-messaging:23.0.6"
implementation "com.clevertap.android:clevertap-android-sdk:6.2.1"
implementation "com.clevertap.android:clevertap-android-sdk:7.0.3"
implementation "com.clevertap.android:push-templates:1.2.4"
implementation "com.github.bumptech.glide:glide:4.12.0"
implementation "androidx.appcompat:appcompat:1.6.0-rc01"
Expand All @@ -347,9 +347,9 @@ dependencies {
implementation "androidx.viewpager:viewpager:1.0.0"
implementation "com.google.android.material:material:1.4.0"
implementation "com.android.installreferrer:installreferrer:2.2"
implementation "com.google.android.exoplayer:exoplayer:2.19.1"
implementation "com.google.android.exoplayer:exoplayer-hls:2.19.1"
implementation "com.google.android.exoplayer:exoplayer-ui:2.19.1"
implementation "androidx.media3:media3-exoplayer:1.1.1"
implementation "androidx.media3:media3-exoplayer-hls:1.1.1"
implementation "androidx.media3:media3-ui:1.1.1"
// SUB-PROJECT DEPENDENCIES END
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest android:hardwareAccelerated="true" android:versionCode="10000" android:versionName="1.0.0" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:name="com.clevertap.android.sdk.Application" android:supportsRtl="true">
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:name=".MainApplication" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:exported="true" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@style/Theme.App.SplashScreen" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
Expand All @@ -22,9 +22,9 @@
<action android:name="com.clevertap.PUSH_EVENT" />
</intent-filter>
</service>
<meta-data android:name="CLEVERTAP_ACCOUNT_ID" android:value="ACCT-ID" />
<meta-data android:name="CLEVERTAP_TOKEN" android:value="ACCT_TOKEN" />
<meta-data android:name="CLEVERTAP_REGION" android:value="REGION" />
<meta-data android:name="CLEVERTAP_ACCOUNT_ID" android:value="ACCT ID" />
<meta-data android:name="CLEVERTAP_TOKEN" android:value="ACCT TOKEN" />
<meta-data android:name="CLEVERTAP_REGION" android:value="ACCT REGION" />
<receiver android:enabled="true" android:exported="false" android:name="com.clevertap.android.sdk.pushnotification.CTPushNotificationReceiver" />
</application>
<queries>
Expand Down
Loading

0 comments on commit 2173865

Please sign in to comment.