Skip to content

Commit

Permalink
fix: warning requiresMainQueueSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancom committed Dec 12, 2024
1 parent b63f2af commit b6c2ee7
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/RNGoogleMobileAds/RNGoogleMobileAdsAppOpenModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ - (dispatch_queue_t)methodQueue {
return dispatch_get_main_queue();
}

+ (BOOL)requiresMainQueueSetup {
return YES;
}

RCT_EXPORT_METHOD(appOpenLoad
: (double)requestId adUnitId
: (NSString *)adUnitId requestOptions
Expand Down
4 changes: 4 additions & 0 deletions ios/RNGoogleMobileAds/RNGoogleMobileAdsInterstitialModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ - (dispatch_queue_t)methodQueue {
return dispatch_get_main_queue();
}

+ (BOOL)requiresMainQueueSetup {
return YES;
}

RCT_EXPORT_METHOD(interstitialLoad
: (double)requestId adUnitId
: (NSString *)adUnitId requestOptions
Expand Down
4 changes: 4 additions & 0 deletions ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ - (dispatch_queue_t)methodQueue {
return dispatch_get_main_queue();
}

+ (BOOL)requiresMainQueueSetup {
return YES;
}

#pragma mark -
#pragma mark Google Mobile Ads Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ - (dispatch_queue_t)methodQueue {
return dispatch_get_main_queue();
}

+ (BOOL)requiresMainQueueSetup {
return YES;
}

RCT_EXPORT_METHOD(rewardedInterstitialLoad
: (double)requestId adUnitId
: (NSString *)adUnitId requestOptions
Expand Down
4 changes: 4 additions & 0 deletions ios/RNGoogleMobileAds/RNGoogleMobileAdsRewardedModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ - (dispatch_queue_t)methodQueue {
return dispatch_get_main_queue();
}

+ (BOOL)requiresMainQueueSetup {
return YES;
}

RCT_EXPORT_METHOD(rewardedLoad
: (double)requestId adUnitId
: (NSString *)adUnitId requestOptions
Expand Down

0 comments on commit b6c2ee7

Please sign in to comment.