cordova-plugin-statusbar
cordova-plugin-statusbar copied to clipboard
Xcode 12 and iOS 9.0 various deprecation
Dear all,
With Xcode 12 and iOS 9.0 seems that a lot of methods to play with status bar have been deprecated, like:
cordova-plugin-statusbar/CDVStatusBar.m:389:14: warning:
'setStatusBarHidden:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController prefersStatusBarHidden]
[-Wdeprecated-declarations]
[app setStatusBarHidden:NO];
cordova-plugin-statusbar/CDVStatusBar.m:267:56: warning:
implicit conversion loses integer precision: 'UIStatusBarStyle' (aka 'enum UIStatusBarStyle') to 'int' [-Wshorten-64-to-32]
vc.sb_statusBarStyle = [NSNumber numberWithInt:style]
cordova-plugin-statusbar/CDVStatusBar.m:271:44: warning:
'setStatusBarStyle:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController preferredStatusBarStyle]
[-Wdeprecated-declarations]
[[UIApplication sharedApplication] setStatusBarStyle:style];
Even if are warning, the build fail 'cause Project POD is automatically configured to raise error also when encounter warnings. For now I will resolve this playing with Xcode build flags thank to build.json (I hope 🤞).
In the mean time can you play with a new major version (in order to leave 2.x as it is for older projects) which solve above issues?