mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
feat(adjust): update wrapper for Adjust Cordova SDK v4.30.0 (#4277)
This commit is contained in:
parent
aef160e418
commit
82377f0633
@ -65,6 +65,8 @@ export class AdjustConfig {
|
|||||||
private allowiAdInfoReading: boolean = null; // iOS only
|
private allowiAdInfoReading: boolean = null; // iOS only
|
||||||
private allowIdfaReading: boolean = null; // iOS only
|
private allowIdfaReading: boolean = null; // iOS only
|
||||||
private allowAdServicesInfoReading: 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 attributionCallback: (attribution: AdjustAttribution) => void = null;
|
||||||
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
|
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
|
||||||
@ -119,6 +121,14 @@ export class AdjustConfig {
|
|||||||
this.eventBufferingEnabled = eventBufferingEnabled;
|
this.eventBufferingEnabled = eventBufferingEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCoppaCompliantEnabled(coppaCompliantEnabled: boolean) {
|
||||||
|
this.coppaCompliantEnabled = coppaCompliantEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
setPlayStoreKidsAppEnabled(playStoreKidsAppEnabled: boolean) {
|
||||||
|
this.playStoreKidsAppEnabled = playStoreKidsAppEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
setUserAgent(userAgent: string) {
|
setUserAgent(userAgent: string) {
|
||||||
this.userAgent = userAgent;
|
this.userAgent = userAgent;
|
||||||
}
|
}
|
||||||
@ -454,7 +464,11 @@ export enum AdjustAdRevenueSource {
|
|||||||
AdRevenueSourceAppLovinMAX = 'applovin_max_sdk',
|
AdRevenueSourceAppLovinMAX = 'applovin_max_sdk',
|
||||||
AdRevenueSourceMopub = 'mopub',
|
AdRevenueSourceMopub = 'mopub',
|
||||||
AdRevenueSourceAdMob = 'admob_sdk',
|
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.
|
* 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)
|
* Requires Cordova plugin: `com.adjust.sdk`. For more info, please see the [Adjust Cordova SDK](https://github.com/adjust/cordova_sdk)
|
||||||
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import { Adjust, AdjustConfig, AdjustEnvironment } from '@awesome-cordova-plugins/adjust/ngx';
|
* import { Adjust, AdjustConfig, AdjustEnvironment } from '@awesome-cordova-plugins/adjust/ngx';
|
||||||
@ -505,6 +520,7 @@ export enum AdjustAdRevenueSource {
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class Adjust extends AwesomeCordovaNativePlugin {
|
export class Adjust extends AwesomeCordovaNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method initializes Adjust SDK
|
* This method initializes Adjust SDK
|
||||||
*
|
*
|
||||||
@ -623,7 +639,7 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
|||||||
gdprForgetMe(): void {}
|
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
|
* 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 })
|
@Cordova({ sync: true })
|
||||||
@ -670,6 +686,12 @@ export class Adjust extends AwesomeCordovaNativePlugin {
|
|||||||
return;
|
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
|
* If you want to access information about a user's current attribution whenever you need it, you can make a call to this function
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user