Skip to content

Commit

Permalink
Merge pull request #3 from CleverTap/task/SDK-3757/support_corodva_3.0.0
Browse files Browse the repository at this point in the history
task(SDK-3757) - Add support for cordova v3.0.0
  • Loading branch information
Anush-Shand authored Apr 17, 2024
2 parents dedcb57 + b30068b commit 04b411c
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions src/@awesome-cordova-plugins/plugins/clevertap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
* Call this method to set a custom locale for the clevertap instance.
* @param locale {string}
* @returns {Promise<any>}
*/
*/
@Cordova()
setLocale(locale: string): Promise<any> {
return;
Expand Down Expand Up @@ -663,6 +663,28 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
return;
}

/**
* Deletes all images and gifs which are preloaded for inapps in cs mode.
*
* @param expiredOnly {boolean} - to clear only assets which will not be needed further for inapps
* @returns {Promise<any>}
*/
@Cordova()
clearInAppResources(expiredOnly: boolean): Promise<any> {
return;
}

/**
* Fetches In Apps from server.
*
* @returns {Promise<any>}
*/
@Cordova()
fetchInApps(): Promise<any> {
return;
}


/*******************
* Session
******************/
Expand Down Expand Up @@ -836,7 +858,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
markReadInboxMessageForId(messageId: string): Promise<any> {
return;
}

/**
* Call this to Mark Read Inbox Messages For Ids in bulk
*
Expand All @@ -857,7 +879,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
dismissInbox(): Promise<any> {
return;
}

/**
* Call this to Mark Push Inbox Notification Viewed Event for Id
*
Expand Down Expand Up @@ -1079,7 +1101,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
/****************************
* Product Experiences methods
****************************/

/**
*
* Uploads variables to the server. Requires Development/Debug build/configuration.
Expand Down Expand Up @@ -1113,7 +1135,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* Create variables.
* Create variables.
* @returns {Promise<any>}
* @param {object} variables The JSON Object specifying the varibles to be created.
*/
Expand All @@ -1131,7 +1153,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
getVariable(name: string): Promise<any> {
return;
}

/**
* Get all variables via a JSON object.
* @returns {Promise<any>}
Expand Down Expand Up @@ -1194,7 +1216,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
return;
}


/*******************
* Developer Options
******************/
Expand Down

0 comments on commit 04b411c

Please sign in to comment.