Skip to content

Commit 82377f0

Browse files
authored
feat(adjust): update wrapper for Adjust Cordova SDK v4.30.0 (#4277)
1 parent aef160e commit 82377f0

File tree

1 file changed

+24
-2
lines changed
  • src/@awesome-cordova-plugins/plugins/adjust

1 file changed

+24
-2
lines changed

src/@awesome-cordova-plugins/plugins/adjust/index.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export class AdjustConfig {
6565
private allowiAdInfoReading: boolean = null; // iOS only
6666
private allowIdfaReading: boolean = null; // iOS only
6767
private allowAdServicesInfoReading: boolean = null; // iOS only
68+
private coppaCompliantEnabled: boolean = null;
69+
private playStoreKidsAppEnabled: boolean = null; // Android only
6870

6971
private attributionCallback: (attribution: AdjustAttribution) => void = null;
7072
private eventTrackingSucceededCallback: (event: AdjustEventSuccess) => void = null;
@@ -119,6 +121,14 @@ export class AdjustConfig {
119121
this.eventBufferingEnabled = eventBufferingEnabled;
120122
}
121123

124+
setCoppaCompliantEnabled(coppaCompliantEnabled: boolean) {
125+
this.coppaCompliantEnabled = coppaCompliantEnabled;
126+
}
127+
128+
setPlayStoreKidsAppEnabled(playStoreKidsAppEnabled: boolean) {
129+
this.playStoreKidsAppEnabled = playStoreKidsAppEnabled;
130+
}
131+
122132
setUserAgent(userAgent: string) {
123133
this.userAgent = userAgent;
124134
}
@@ -454,7 +464,11 @@ export enum AdjustAdRevenueSource {
454464
AdRevenueSourceAppLovinMAX = 'applovin_max_sdk',
455465
AdRevenueSourceMopub = 'mopub',
456466
AdRevenueSourceAdMob = 'admob_sdk',
457-
AdRevenueSourceIronsource = 'ironsource_sdk',
467+
AdRevenueSourceIronSource = 'ironsource_sdk',
468+
AdRevenueSourceAdMost = "admost_sdk",
469+
AdRevenueSourceUnity = "unity_sdk",
470+
AdRevenueSourceHeliumChartboost = "helium_chartboost_sdk",
471+
AdRevenueSourcePublisher = "publisher_sdk",
458472
}
459473

460474
/**
@@ -463,6 +477,7 @@ export enum AdjustAdRevenueSource {
463477
* This is the Ionic Cordova SDK of Adjust™. You can read more about Adjust™ at adjust.com.
464478
*
465479
* Requires Cordova plugin: `com.adjust.sdk`. For more info, please see the [Adjust Cordova SDK](https://github.com/adjust/cordova_sdk)
480+
*
466481
* @usage
467482
* ```typescript
468483
* import { Adjust, AdjustConfig, AdjustEnvironment } from '@awesome-cordova-plugins/adjust/ngx';
@@ -505,6 +520,7 @@ export enum AdjustAdRevenueSource {
505520
})
506521
@Injectable()
507522
export class Adjust extends AwesomeCordovaNativePlugin {
523+
508524
/**
509525
* This method initializes Adjust SDK
510526
*
@@ -623,7 +639,7 @@ export class Adjust extends AwesomeCordovaNativePlugin {
623639
gdprForgetMe(): void {}
624640

625641
/**
626-
* 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.
642+
* 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.
627643
* Calling the following method will instruct the Adjust SDK to communicate the user's choice to disable data sharing to the Adjust backend
628644
*/
629645
@Cordova({ sync: true })
@@ -670,6 +686,12 @@ export class Adjust extends AwesomeCordovaNativePlugin {
670686
return;
671687
}
672688

689+
/**
690+
* Instruct to Adjust SDK to check current state of att_status
691+
*/
692+
@Cordova({ sync: true })
693+
checkForNewAttStatus(): void {}
694+
673695
/**
674696
* If you want to access information about a user's current attribution whenever you need it, you can make a call to this function
675697
*

0 commit comments

Comments
 (0)