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 allowAdServicesInfoReading: boolean = null; // iOS only
private coppaCompliantEnabled: boolean = null; private coppaCompliantEnabled: boolean = null;
private playStoreKidsAppEnabled: boolean = null; // Android only private playStoreKidsAppEnabled: boolean = null; // Android only
private linkMeEnabled: boolean = null; // iOS only
private attributionCallback: (attribution: AdjustAttribution) => void = null; private attributionCallback: (attribution: AdjustAttribution) => void = null;
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null; private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
@ -169,6 +170,10 @@ export class AdjustConfig {
this.allowAdServicesInfoReading = allowAdServicesInfoReading; this.allowAdServicesInfoReading = allowAdServicesInfoReading;
} }
setLinkMeEnabled(linkMeEnabled: boolean) {
this.linkMeEnabled = linkMeEnabled;
}
setAttributionCallbackListener(attributionCallback: (attribution: AdjustAttribution) => void) { setAttributionCallbackListener(attributionCallback: (attribution: AdjustAttribution) => void) {
this.attributionCallback = attributionCallback; this.attributionCallback = attributionCallback;
} }
@ -330,6 +335,7 @@ export class AdjustPlayStoreSubscription {
export class AdjustThirdPartySharing { export class AdjustThirdPartySharing {
private isEnabled: boolean; private isEnabled: boolean;
private granularOptions: string[] = []; private granularOptions: string[] = [];
private partnerSharingSettings: any[] = [];
constructor(isEnabled: boolean) { constructor(isEnabled: boolean) {
this.isEnabled = isEnabled; this.isEnabled = isEnabled;
@ -340,6 +346,12 @@ export class AdjustThirdPartySharing {
this.granularOptions.push(key); this.granularOptions.push(key);
this.granularOptions.push(value); 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 { export class AdjustAdRevenue {
@ -401,6 +413,7 @@ export interface AdjustAttribution {
costType: string; costType: string;
costAmount: string; costAmount: string;
costCurrency: string; costCurrency: string;
fbInstallReferrer: string; // Android only
} }
export interface AdjustSessionSuccess { export interface AdjustSessionSuccess {
@ -792,4 +805,14 @@ export class Adjust extends AwesomeCordovaNativePlugin {
getAppTrackingAuthorizationStatus(): Promise<number> { getAppTrackingAuthorizationStatus(): Promise<number> {
return; 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;
}
} }