You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2022/09/07 20:08:45 UTC
[cordova-plugin-statusbar] branch master updated: chore(ios): Silence/fix warnings (#228)
This is an automated email from the ASF dual-hosted git repository.
jcesarmobile pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-statusbar.git
The following commit(s) were added to refs/heads/master by this push:
new 1672883 chore(ios): Silence/fix warnings (#228)
1672883 is described below
commit 1672883a7fda51e73069d6f350393bb2719228e3
Author: jcesarmobile <jc...@gmail.com>
AuthorDate: Wed Sep 7 22:08:39 2022 +0200
chore(ios): Silence/fix warnings (#228)
---
src/ios/CDVStatusBar.m | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index 7dd4aa0..12735f7 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -269,11 +269,14 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
{
if (_uiviewControllerBasedStatusBarAppearance) {
CDVViewController* vc = (CDVViewController*)self.viewController;
- vc.sb_statusBarStyle = [NSNumber numberWithInt:style];
+ vc.sb_statusBarStyle = [NSNumber numberWithInt:(int)style];
[self refreshStatusBarAppearance];
} else {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[UIApplication sharedApplication] setStatusBarStyle:style];
+#pragma clang diagnostic pop
}
}
@@ -351,7 +354,10 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
} else {
UIApplication* app = [UIApplication sharedApplication];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[app setStatusBarHidden:YES];
+#pragma clang diagnostic pop
}
}
@@ -382,7 +388,10 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
} else {
UIApplication* app = [UIApplication sharedApplication];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[app setStatusBarHidden:NO];
+#pragma clang diagnostic pop
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org