feat(adjust): update wrapper for Adjust Cordova SDK v4.30.0 (#4277)

This commit is contained in:
Uglješa Erceg 2022-09-05 19:04:48 +02:00 committed by GitHub
parent aef160e418
commit 82377f0633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,8 @@ export class AdjustConfig {
private allowiAdInfoReading: boolean = null; // iOS only
private allowIdfaReading: boolean = null; // iOS only
private allowAdServicesInfoReading: boolean = null; // iOS only
private coppaCompliantEnabled: boolean = null;
private playStoreKidsAppEnabled: boolean = null; // Android only
private attributionCallback: (attribution: AdjustAttribution) => void = null;
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
@ -119,6 +121,14 @@ export class AdjustConfig {
this.eventBufferingEnabled = eventBufferingEnabled;
}
setCoppaCompliantEnabled(coppaCompliantEnabled: boolean) {
this.coppaCompliantEnabled = coppaCompliantEnabled;
}
setPlayStoreKidsAppEnabled(playStoreKidsAppEnabled: boolean) {
this.playStoreKidsAppEnabled = playStoreKidsAppEnabled;
}
setUserAgent(userAgent: string) {
this.userAgent = userAgent;
}
@ -454,7 +464,11 @@ export enum AdjustAdRevenueSource {
AdRevenueSourceAppLovinMAX = 'applovin_max_sdk',
AdRevenueSourceMopub = 'mopub',
AdRevenueSourceAdMob = 'admob_sdk',
AdRevenueSourceIronsource = 'ironsource_sdk',
AdRevenueSourceIronSource = 'ironsource_sdk',
AdRevenueSourceAdMost = "admost_sdk",
AdRevenueSourceUnity = "unity_sdk",
AdRevenueSourceHeliumChartboost = "helium_chartboost_sdk",
AdRevenueSourcePublisher = "publisher_sdk",
}
/**
@ -463,6 +477,7 @@ export enum AdjustAdRevenueSource {
* This is the Ionic Cordova SDK of Adjust. You can read more about Adjust at adjust.com.
*
* Requires Cordova plugin: `com.adjust.sdk`. For more info, please see the [Adjust Cordova SDK](https://github.com/adjust/cordova_sdk)
*
* @usage
* ```typescript
* import { Adjust, AdjustConfig, AdjustEnvironment } from '@awesome-cordova-plugins/adjust/ngx';
@ -505,6 +520,7 @@ export enum AdjustAdRevenueSource {
})
@Injectable()
export class Adjust extends AwesomeCordovaNativePlugin {
/**
* This method initializes Adjust SDK
*
@ -623,7 +639,7 @@ export class Adjust extends AwesomeCordovaNativePlugin {
gdprForgetMe(): void {}
/**
* You can now notify Adjust when a user has exercised their right to stop sharing their data with partners for marketing purposes, but has allowed it to be shared for statistics purposes.
* You can now notify Adjust when a user has exercised their right to stop sharing their data with partners for marketing purposes, but has allowed it to be shared for statistics purposes.
* Calling the following method will instruct the Adjust SDK to communicate the user's choice to disable data sharing to the Adjust backend
*/
@Cordova({ sync: true })
@ -670,6 +686,12 @@ export class Adjust extends AwesomeCordovaNativePlugin {
return;
}
/**
* Instruct to Adjust SDK to check current state of att_status
*/
@Cordova({ sync: true })
checkForNewAttStatus(): void {}
/**
* If you want to access information about a user's current attribution whenever you need it, you can make a call to this function
*