Skip to content

Commit

Permalink
Added Google Mobile Ads Mediation Test Suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrovic committed Apr 4, 2022
1 parent 5e23eae commit e7a383f
Show file tree
Hide file tree
Showing 196 changed files with 12,468 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ios/Classes/TiAdmobModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@

- (void)setInMobi_updateGDPRConsent:(id)updateGDPRConsent;

- (void)showMediationTestSuite:(__unused id)unused;

@end
9 changes: 9 additions & 0 deletions ios/Classes/TiAdmobModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#import <FBAudienceNetwork/FBAdSettings.h>
#import <InMobiAdapter/InMobiAdapter.h>
@import GoogleMobileAdsMediationTestSuite;

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000
#import <AppTrackingTransparency/ATTrackingManager.h>
Expand Down Expand Up @@ -316,6 +317,14 @@ - (void)setInMobi_updateGDPRConsent:(id)updateGDPRConsent
[GADMInMobiConsent updateGDPRConsent:consentObject];
}

- (void)showMediationTestSuite:(id)unused
{
TiThreadPerformOnMainThread(
^{
[GoogleMobileAdsMediationTestSuite presentOnViewController:[[[TiApp app] controller] topPresentedController] delegate:nil];
},NO);
}

#pragma mark Constants

MAKE_SYSTEM_PROP(TRACKING_AUTHORIZATION_STATUS_NOT_DETERMINED, 0);
Expand Down
Binary file not shown.
Loading

0 comments on commit e7a383f

Please sign in to comment.