Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clevertap): support clevertap-cordova 2.7.0 #4617

Merged
merged 36 commits into from
Aug 11, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0fa6b38
feat(clevertap): add CleverTap plugin
pwilkniss Jul 26, 2018
3fe6e40
style(clevertap): cleanup stray lint error
pwilkniss Jul 26, 2018
9f1e153
refactor
danielsogl Jul 29, 2018
3efacd7
Updating fork
darshanclevertap Feb 12, 2019
9e41fdf
feat(clevertap): update for latest CleverTap Cordova plugin
darshanclevertap Feb 14, 2019
a8669c8
chore: Update Repo from Ionic Native Repo
SuryaClevertap May 19, 2020
309dced
fix: Code Changes for parity SDK-155
SuryaClevertap May 23, 2020
96d4efb
Merge branch 'master' into master
SuryaClevertap May 23, 2020
02f6d93
fix: Indentation fixes for SDK-155
SuryaClevertap May 23, 2020
90dfe4c
fix: Code Repo fix while updating fork branch
SuryaClevertap May 23, 2020
ab8b859
fix: Remove unnecessary adder .scripts Folder
SuryaClevertap May 23, 2020
64ffaae
fix: Remove unwanted added folder .circleci
SuryaClevertap May 23, 2020
56fd93d
fix: Remove unwanted added File .npmrc
SuryaClevertap May 23, 2020
a8b20dd
fix: Revert .Github Folder Changes to as per Ionic-Native master
SuryaClevertap May 23, 2020
5bf0d69
fix: Update changes as per ionic-native master
SuryaClevertap May 23, 2020
840a801
fix: Code Repo fix while updating fork branch
SuryaClevertap May 23, 2020
ca1a92e
Merge branch 'master' of https://github.com/CleverTap/ionic-native
SuryaClevertap May 24, 2020
7012870
fix(CleverTap): Fix for missing methods issue #3491
darshanclevertap Aug 24, 2020
1521c59
Resolving conflicts and fetching latest ionic-native code #3491
darshanclevertap Oct 6, 2020
6ed5b81
Merge branch 'master' of https://github.com/danielsogl/awesome-cordov…
piyush-kukadiya Jan 28, 2022
1ed5abf
refactor(profile): remove setProfile methods for fb and google
piyush-kukadiya Jan 28, 2022
8d8b647
refactor(dynamic variables): remove Product A/B Testing (Dynamic Vari…
piyush-kukadiya Jan 28, 2022
0b50a25
fix(product config): add key param to product config getters
piyush-kukadiya Jan 28, 2022
91ceca2
feat(identity): add a new public method getCleverTapID and deprecate …
piyush-kukadiya Jan 28, 2022
b660f31
feat(profile): add public methods to increment/decrement values set v…
piyush-kukadiya Jan 28, 2022
2a76a73
feat(profile): add public methods to increment/decrement values set v…
piyush-kukadiya Jan 28, 2022
9c98887
feat(inapp): add public methods for suspending/discarding & resuming …
piyush-kukadiya Jan 28, 2022
0b3e86a
Merge remote-tracking branch 'origin/master'
piyush-kukadiya Jan 28, 2022
9de8204
Merge branch 'danielsogl:master' into master
piyush-kukadiya Jan 31, 2022
f3dcd95
Merge branch 'danielsogl:master' into master
piyush-kukadiya Dec 30, 2022
f8cfa7d
feat(inbox): add new api for iOS to delete bulk inbox messages for gi…
piyush-kukadiya Dec 30, 2022
057630d
refactor(xiaomi-push): add region as an extra mandatory parameter to …
piyush-kukadiya Dec 30, 2022
fc398cc
Merge branch 'danielsogl:master' into master
AishwaryaNanna Aug 2, 2023
8ccf31f
Update index.ts to support cordova 2.7.0
AishwaryaNanna Aug 2, 2023
0a97693
Update index.ts
AishwaryaNanna Aug 3, 2023
ee954f9
Merge pull request #2 from CleverTap/Support-cordova-2.7.0
AishwaryaNanna Aug 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 153 additions & 0 deletions src/@awesome-cordova-plugins/plugins/clevertap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,28 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
markReadInboxMessageForId(messageId: string): Promise<any> {
return;
}

/**
* Call this to Mark Read Inbox Messages For Ids in bulk
*
* @param messageIds {any} array of strings
* @returns {Promise<any>}
*/
@Cordova()
markReadInboxMessagesForIds(messageIds: any): Promise<any> {
return;
}

/**
* Call this to dismiss Inbox
*
* @returns {Promise<any>}
*/
@Cordova()
dismissInbox(): Promise<any> {
return;
}

/**
* Call this to Mark Push Inbox Notification Viewed Event for Id
*
Expand Down Expand Up @@ -893,6 +914,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get Feature Flag for key
*
* @param key {string}
Expand All @@ -905,6 +927,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Set Defaults for Product Config
*
* @param defaults {any}
Expand All @@ -916,6 +939,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this for Product Config Fetch
*
* @param defaults {any}
Expand All @@ -927,6 +951,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this for Product Config Fetch with Min Interval
*
* @param timeInterval {number}
Expand All @@ -938,6 +963,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this for Product Config Activate
*
* @returns {Promise<any>}
Expand All @@ -948,6 +974,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this for Product Config Fetch and Activate
*
* @returns {Promise<any>}
Expand All @@ -958,6 +985,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to set Product Config Fetch with Min Interval
*
* @param timeInterval {number}
Expand All @@ -969,6 +997,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get Last Fetch Time Interval
*
* @returns {Promise<any>}
Expand All @@ -979,6 +1008,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get String
*
* @param key {string}
Expand All @@ -990,6 +1020,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get Boolean
*
* @param key {string}
Expand All @@ -1001,6 +1032,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get Long
*
* @param key {string}
Expand All @@ -1012,6 +1044,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Get Double
*
* @param key {string}
Expand All @@ -1023,6 +1056,7 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
}

/**
* @deprecated - Since version 2.7.0 and will be removed in the future versions of this SDK.
* Call this to Reset Product Config
*
* @returns {Promise<any>}
Expand All @@ -1032,6 +1066,125 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
return;
}

/****************************
* Product Experiences methods
****************************/

/**
*
* Uploads variables to the server. Requires Development/Debug build/configuration.
* @returns {Promise<any>}
*/
@Cordova()
syncVariables(): Promise<any> {
return;
}

/**
* Uploads variables to the server.
* @param {boolean} isProduction Provide `true` if variables must be sync in Productuon build/configuration.
* @returns {Promise<any>}
*
*
* Note: This is NO-OP in Android
*/
@Cordova()
syncVariablesinProd(isProduction: boolean): Promise<any> {
return;
}

/**
* Forces variables to update from the server.
* @returns {Promise<any>}
*/
@Cordova()
fetchVariables(): Promise<any> {
return;
}

/**
* Create variables.
* @returns {Promise<any>}
* @param {object} variables The JSON Object specifying the varibles to be created.
*/
@Cordova()
defineVariables(variables: any): Promise<any> {
return;
}

/**
* Get a variable or a group for the specified name.
* @param {string} name - name.
* @returns {Promise<any>}
*/
@Cordova()
getVariable(name: string): Promise<any> {
return;
}

/**
* Get all variables via a JSON object.
* @returns {Promise<any>}
*/
@Cordova()
getVariables(): Promise<any> {
return;
}

/**
* Adds a callback to be invoked when variables are initialised with server values. Will be called each time new values are fetched.
* @returns {Promise<any>}
*/
@Cordova()
onVariablesChanged(): Promise<any> {
return;
}

/**
* Called when the value of the variable changes.
* @param {name} string the name of the variable
* @returns {Promise<any>}
*/
@Cordova()
onValueChanged(name: string): Promise<any> {
return;
}

/****************************
* Android 13 Push Primer
****************************/

/**
* Method to prompt the push primer for android 13 onwards.
* @param {object} value - key-value belongs to the localInApp properties. Refer documentation for details.
* @returns {Promise<any>}
*/
@Cordova()
promptPushPrimer(localInAppObject: any): Promise<any> {
return;
}

/**
* Method to prompt the hard permission dialog directly, if the push primer is not required.
* @param {string} showFallbackSettings - If the value is true then SDK shows an alert dialog which routes to app's notification settings page.
* @returns {Promise<any>}
*/
@Cordova()
promptForPushPermission(showFallbackSettings: boolean): Promise<any> {
return;
}

/**
* Returns true/false based on whether push permission is granted or denied.
*
* @returns {Promise<any>}
*/
@Cordova()
isPushPermissionGranted(): Promise<any> {
return;
}


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