File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,10 @@ - (void)showRatingAlert:(BOOL)displayRateLaterButton {
278
278
return ;
279
279
}
280
280
281
+ #pragma clang diagnostic push
282
+ #pragma clang diagnostic ignored "-Wunguarded-availability"
281
283
if (NSStringFromClass ([SKStoreReviewController class ]) != nil ) {
284
+ #pragma clang diagnostic pop
282
285
[Appirater rateApp ];
283
286
} else {
284
287
// Otherwise show a custom Alert
@@ -669,9 +672,12 @@ + (void)rateApp {
669
672
[userDefaults setBool: YES forKey: kAppiraterRatedCurrentVersion ];
670
673
[userDefaults synchronize ];
671
674
672
- // Use the built SKStoreReviewController if available (available from iOS 10.3 upwards)
675
+ // Use the built SKStoreReviewController if available (available from iOS 10.3 upwards)
676
+ #pragma clang diagnostic push
677
+ #pragma clang diagnostic ignored "-Wunguarded-availability"
673
678
if (NSStringFromClass ([SKStoreReviewController class ]) != nil ) {
674
679
[SKStoreReviewController requestReview ];
680
+ #pragma clang diagnostic pop
675
681
return ;
676
682
}
677
683
You can’t perform that action at this time.
0 commit comments