feat(adjust): update wrapper for Adjust Cordova SDK v4.32.0 (#4327)

This commit is contained in:
Uglješa Erceg 2022-10-09 16:39:33 +02:00 committed by GitHub
parent 406ad4ec45
commit a7a10913fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ export class AdjustConfig {
private allowAdServicesInfoReading: boolean = null; // iOS only
private coppaCompliantEnabled: boolean = null;
private playStoreKidsAppEnabled: boolean = null; // Android only
private linkMeEnabled: boolean = null; // iOS only
private attributionCallback: (attribution: AdjustAttribution) => void = null;
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
@ -169,6 +170,10 @@ export class AdjustConfig {
this.allowAdServicesInfoReading = allowAdServicesInfoReading;
}
setLinkMeEnabled(linkMeEnabled: boolean) {
this.linkMeEnabled = linkMeEnabled;
}
setAttributionCallbackListener(attributionCallback: (attribution: AdjustAttribution) => void) {
this.attributionCallback = attributionCallback;
}
@ -330,6 +335,7 @@ export class AdjustPlayStoreSubscription {
export class AdjustThirdPartySharing {
private isEnabled: boolean;
private granularOptions: string[] = [];
private partnerSharingSettings: any[] = [];
constructor(isEnabled: boolean) {
this.isEnabled = isEnabled;
@ -340,6 +346,12 @@ export class AdjustThirdPartySharing {
this.granularOptions.push(key);
this.granularOptions.push(value);
}
addPartnerSharingSetting(partnerName: string, key: string, value: boolean): void {
this.partnerSharingSettings.push(partnerName);
this.partnerSharingSettings.push(key);
this.partnerSharingSettings.push(value);
}
}
export class AdjustAdRevenue {
@ -401,6 +413,7 @@ export interface AdjustAttribution {
costType: string;
costAmount: string;
costCurrency: string;
fbInstallReferrer: string; // Android only
}
export interface AdjustSessionSuccess {
@ -792,4 +805,14 @@ export class Adjust extends AwesomeCordovaNativePlugin {
getAppTrackingAuthorizationStatus(): Promise<number> {
return;
}
/**
* To obtain the last deep link which has opened your iOS app, call this function
*
* @returns {Promise<string>} Returns a promise with iOS deep link string value
*/
@Cordova()
getLastDeeplink(): Promise<string> {
return;
}
}