diff --git a/src/@awesome-cordova-plugins/plugins/adjust/index.ts b/src/@awesome-cordova-plugins/plugins/adjust/index.ts index 1d03fce8a4..a10f2bb4a4 100644 --- a/src/@awesome-cordova-plugins/plugins/adjust/index.ts +++ b/src/@awesome-cordova-plugins/plugins/adjust/index.ts @@ -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 { return; } + + /** + * To obtain the last deep link which has opened your iOS app, call this function + * + * @returns {Promise} Returns a promise with iOS deep link string value + */ + @Cordova() + getLastDeeplink(): Promise { + return; + } } \ No newline at end of file