Skip to content

Commit

Permalink
Merge pull request #235 from CleverTap/develop
Browse files Browse the repository at this point in the history
Release v3.0.0
  • Loading branch information
Anush-Shand authored Apr 17, 2024
2 parents 74a219f + ea37726 commit 8bf23df
Show file tree
Hide file tree
Showing 24 changed files with 329 additions and 2,722 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.xcuserstate
Samples/Cordova/ExampleProject/package-lock.json
Samples/Cordova/ExampleProject/platforms/android/.idea/
Samples/Cordova/ExampleProject/plugins/
Samples/Cordova/ExampleProject/platforms/android/.gradle/
Expand All @@ -14,11 +15,13 @@ Samples/Cordova/ExampleProject/plugins/clevertap-cordova/ExampleProject/platform
Samples/Cordova/ExampleProject/plugins/clevertap-cordova/ExampleProject/platforms/ios/Pods
Samples/Cordova/ExampleProject/plugins/clevertap-cordova/ExampleProject/platforms/ios/Podfile.lock

Samples/IonicCapacitor/IonicCapReactProject/.project
Samples/IonicCapacitor/IonicCapReactProject/.idea
Samples/IonicCapacitor/IonicCapReactProject/.gradle
Samples/IonicCapacitor/IonicCapReactProject/android/app/build
Samples/IonicCapacitor/IonicCapReactProject/android/.gradle
Samples/IonicCapacitor/IonicCapReactProject/android/.idea
Samples/IonicCapacitor/IonicCapReactProject/android/.settings
Samples/IonicCapacitor/IonicCapReactProject/android/capacitor-cordova-android-plugins/.gradle
Samples/IonicCapacitor/IonicCapReactProject/android/capacitor-cordova-android-plugins/build
Samples/IonicCapacitor/IonicCapReactProject/node_modules
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
Change Log
==========
Version 3.0.0 *(April 17, 2024)*
-------------------------------------------
#### New Features
**Android specific**
* Supports [CleverTap Android SDK v6.0.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.0.0_ptv1.2.2).
* Adds support for exoplayer `v2.19.1`.

**iOS specific**
* Supports [CleverTap iOS SDK v6.0.0](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/6.0.0).

**Common for both android and iOS**
* Adds new public APIs, `fetchInApps` and `clearInAppResources` to support client-side in-apps.

#### Bug Fixes
**Android specific**
* Fixes no empty message for app inbox without tabs
* Removes onClickListener for Image of Cover InApp

**iOS specific**
* Fixes a bug where some in-apps were not being dismissed

Version 2.7.2 *(December 5, 2023)*
-------------------------------------------
#### 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 5.2.1](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev5.2.1_xpsv1.5.4)
- [CleverTap iOS SDK version 5.2.2](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/5.2.2)
- [CleverTap Android SDK version 6.0.0](https://github.com/CleverTap/clevertap-android-sdk/releases/tag/corev6.0.0_ptv1.2.2)
- [CleverTap iOS SDK version 6.0.0](https://github.com/CleverTap/clevertap-ios-sdk/releases/tag/6.0.0)

## 🚀 Installation and Quick Start

Expand Down
4 changes: 2 additions & 2 deletions Samples/Cordova/ExampleProject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "CleverTap",
"license": "Apache-2.0",
"devDependencies": {
"clevertap-cordova": "git+https://github.com/CleverTap/clevertap-cordova.git#SDK-3108-Support_iOS_SDK_5.1.1",
"cordova-android": "^11.0.0",
"clevertap-cordova": "file:../../..",
"cordova-android": "^12.0.1",
"cordova-android-support-gradle-release": "^3.0.1",
"cordova-ios": "^7.0.0",
"ios": "0.0.1"
Expand Down
12 changes: 6 additions & 6 deletions Samples/Cordova/ExampleProject/platforms/android/android.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
"count": 1
},
{
"xml": "<meta-data android:name=\"CLEVERTAP_ACCOUNT_ID\" android:value=\"TEST-R78-ZZK-955Z\" />",
"xml": "<meta-data android:name=\"CLEVERTAP_ACCOUNT_ID\" android:value=\"67Z-RRK-696Z\" />",
"count": 1
},
{
"xml": "<meta-data android:name=\"CLEVERTAP_TOKEN\" android:value=\"TEST-311-ba2\" />",
"xml": "<meta-data android:name=\"CLEVERTAP_TOKEN\" android:value=\"322-1a6\" />",
"count": 1
},
{
Expand All @@ -67,10 +67,10 @@
"PACKAGE_NAME": "com.clevertap.example"
},
"clevertap-cordova": {
"CLEVERTAP_ACCOUNT_ID": "TEST-R78-ZZK-955Z",
"CLEVERTAP_TOKEN": "TEST-311-ba2",
"CLEVERTAP_ACCOUNT_ID": "67Z-RRK-696Z",
"CLEVERTAP_TOKEN": "322-1a6",
"CLEVERTAP_REGION": " ",
"FIREBASE_MESSAGING_VERSION": "22.0.0",
"FIREBASE_MESSAGING_VERSION": "23.0.6",
"PACKAGE_NAME": "com.clevertap.example"
}
},
Expand All @@ -87,6 +87,6 @@
],
"plugin_metadata": {
"cordova-android-support-gradle-release": "3.0.1",
"clevertap-cordova": "2.5.1"
"clevertap-cordova": "3.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,19 @@ dependencies {

// SUB-PROJECT DEPENDENCIES START
implementation(project(path: ":CordovaLib"))
implementation "com.google.firebase:firebase-messaging:22.0.0"
implementation "com.clevertap.android:clevertap-android-sdk:4.6.6"
implementation "com.google.firebase:firebase-messaging:23.0.6"
implementation "com.clevertap.android:clevertap-android-sdk:6.0.0"
implementation "com.github.bumptech.glide:glide:4.12.0"
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.core:core:1.3.0"
implementation "androidx.appcompat:appcompat:1.6.0-rc01"
implementation "androidx.core:core:1.9.0"
implementation "androidx.fragment:fragment:1.3.6"
implementation "androidx.recyclerview:recyclerview:1.2.1"
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.17.1"
implementation "com.google.android.exoplayer:exoplayer-hls:2.17.1"
implementation "com.google.android.exoplayer:exoplayer-ui:2.17.1"
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"
// SUB-PROJECT DEPENDENCIES END
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
{
"project_info": {
"project_number": "729062631412",
"project_id": "sampledogimagesapp",
"storage_bucket": "sampledogimagesapp.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:729062631412:android:1c217b1c17db782127fba1",
"android_client_info": {
"package_name": "com.clevertap.demo"
}
},
"oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCO9fzRfw-it06OAhE5k5buTSzqLJIe5eQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:729062631412:android:67233198bc946f3827fba1",
"android_client_info": {
"package_name": "com.clevertap.example"
}
},
"oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCO9fzRfw-it06OAhE5k5buTSzqLJIe5eQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:729062631412:android:5ad81c1d364ac42127fba1",
"android_client_info": {
"package_name": "com.clevertap.xamarindemo"
}
},
"oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCO9fzRfw-it06OAhE5k5buTSzqLJIe5eQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:729062631412:android:64c80512617fc57c27fba1",
"android_client_info": {
"package_name": "com.example.clevertap_plugin_example"
}
},
"oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCO9fzRfw-it06OAhE5k5buTSzqLJIe5eQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:729062631412:android:19a47ef52604efdf27fba1",
"android_client_info": {
"package_name": "com.example.quizapp"
}
},
"oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCO9fzRfw-it06OAhE5k5buTSzqLJIe5eQ"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "729062631412-p6f9t5ci4200veao5e6mdn95in8qhipa.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="CLEVERTAP_REGION" android:value="sk1-staging-30" />
<service android:exported="true" android:name="com.clevertap.android.sdk.pushnotification.fcm.FcmMessageListenerService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
Expand All @@ -18,12 +19,9 @@
<action android:name="com.clevertap.PUSH_EVENT" />
</intent-filter>
</service>
<meta-data android:name="CLEVERTAP_ACCOUNT_ID" android:value="YOUR_ACCT_ID" />
<meta-data android:name="CLEVERTAP_TOKEN" android:value="YOUR_ACCT_TOKEN" />
<meta-data android:name="CLEVERTAP_REGION" android:value=" " />
<meta-data android:name="CLEVERTAP_ACCOUNT_ID" android:value="67Z-RRK-696Z" />
<meta-data android:name="CLEVERTAP_TOKEN" android:value="322-1a6" />
<receiver android:enabled="true" android:exported="false" android:name="com.clevertap.android.sdk.pushnotification.CTPushNotificationReceiver" />
<meta-data android:name="CLEVERTAP_ACCOUNT_ID" android:value="TEST-R78-ZZK-955Z" />
<meta-data android:name="CLEVERTAP_TOKEN" android:value="TEST-311-ba2" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ cordova.define('cordova/plugin_list', function(require, exports, module) {
];
module.exports.metadata = {
"cordova-android-support-gradle-release": "3.0.1",
"clevertap-cordova": "2.5.1"
"clevertap-cordova": "3.0.0"
};
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ function setupButtons() {

let eventsMap = [

["title","ClientSide InApps"],
["Fetch InApps", () => CleverTap.fetchInApps(success => log("fetchInApps success = " + success))],
["Clear InApp Resources", () => CleverTap.clearInAppResources(false)],
["Clear Expired Only InApp Resources", () => CleverTap.clearInAppResources(true)],

["title","Android 13 Push Primer"],
["promptPushPrimer",()=> CleverTap.promptPushPrimer({
inAppType: 'alert',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cordova.define("clevertap-cordova.CleverTap", function(require, exports, module)

var CleverTap = function () {
const libName = 'Cordova';
const libVersion = 20702;
const libVersion = 30000;
cordova.exec(null, null, "CleverTapPlugin", "setLibrary", [libName, libVersion]);
}

Expand Down Expand Up @@ -707,6 +707,23 @@ CleverTap.prototype.setLocale = function (locale) {
cordova.exec(null, null, "CleverTapPlugin", "setLocale", [locale]);
}

/**
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
*/
CleverTap.prototype.clearInAppResources = function (expiredOnly) {
cordova.exec(null, null, "CleverTapPlugin", "clearInAppResources", [expiredOnly]);
}

/**
Fetches In Apps from server.
@param {successCallback} Callback to be invoked when fetching is done.
*/
CleverTap.prototype.fetchInApps = function(successCallback){
cordova.exec(successCallback, null, "CleverTapPlugin", "fetchInApps", []);
}


function convertDateToEpochInProperties(items){
//Conversion of date object in suitable CleverTap format

Expand Down
Empty file.
Loading

0 comments on commit 8bf23df

Please sign in to comment.