cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9250) Fix iOS warnings in Statusbar plugin
Date Thu, 25 Jun 2015 14:19:05 GMT

     [ https://issues.apache.org/jira/browse/CB-9250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah updated CB-9250:
---------------------------------
    Description: 
{code}
CDVStatusBar.m:182:40: warning: 
      implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
      enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
    if (UIDeviceOrientationIsLandscape(orientation) && (rect.size.width < rect.size.height)
) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
CDVStatusBar.m:204:44: warning: 
      implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
      enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
        if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CDVStatusBar.m:294:32: warning: 
      'UIStatusBarStyleBlackTranslucent' is deprecated: first deprecated in iOS 7.0 - Use
UIStatusBarStyleLightContent
      [-Wdeprecated-declarations]
    [self setStyleForStatusBar:UIStatusBarStyleBlackTranslucent];
                               ^
In module 'UIKit' imported from /Users/shazron/Documents/Git/Apache/mobilespec/platforms/ios/build/emulator/include/Cordova/CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:20:5:
note: 
      'UIStatusBarStyleBlackTranslucent' has been explicitly marked deprecated here
    UIStatusBarStyleBlackTranslucent NS_ENUM_DEPRECATED_IOS(2_0, 7_0, "Use UIStatusBarStyleLightContent")
= 1,
    ^
CDVStatusBar.m:299:32: warning: 
      'UIStatusBarStyleBlackOpaque' is deprecated: first deprecated in iOS 7.0 - Use UIStatusBarStyleLightContent
      [-Wdeprecated-declarations]
    [self setStyleForStatusBar:UIStatusBarStyleBlackOpaque];
                               ^
In module 'UIKit' imported from CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:21:5:
note: 
      'UIStatusBarStyleBlackOpaque' has been explicitly marked deprecated here
    UIStatusBarStyleBlackOpaque      NS_ENUM_DEPRECATED_IOS(2_0, 7_0, "Use UIStatusBarStyleLightContent")
= 2,
    ^
CDVStatusBar.m:359:29: warning: 
      'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
        self.viewController.wantsFullScreenLayout = YES;
                            ^
In module 'UIKit' imported from CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:311:34:
note: 
      'wantsFullScreenLayout' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0); // Deprecated
in 7_0, Replaced by ...
                                 ^
CDVStatusBar.m:373:52: warning: 
      implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
      enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
                if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation))
{
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CDVStatusBar.m:407:29: warning: 
      'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
        self.viewController.wantsFullScreenLayout = isIOS7;
                            ^
In module 'UIKit' imported from CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:311:34:
note: 
      'wantsFullScreenLayout' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0); // Deprecated
in 7_0, Replaced by ...
                                 ^
7 warnings generated.
{code}

  was:
CDVStatusBar.m:182:40: warning: 
      implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
      enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
    if (UIDeviceOrientationIsLandscape(orientation) && (rect.size.width < rect.size.height)
) {
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
CDVStatusBar.m:204:44: warning: 
      implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
      enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
        if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CDVStatusBar.m:294:32: warning: 
      'UIStatusBarStyleBlackTranslucent' is deprecated: first deprecated in iOS 7.0 - Use
UIStatusBarStyleLightContent
      [-Wdeprecated-declarations]
    [self setStyleForStatusBar:UIStatusBarStyleBlackTranslucent];
                               ^
In module 'UIKit' imported from /Users/shazron/Documents/Git/Apache/mobilespec/platforms/ios/build/emulator/include/Cordova/CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:20:5:
note: 
      'UIStatusBarStyleBlackTranslucent' has been explicitly marked deprecated here
    UIStatusBarStyleBlackTranslucent NS_ENUM_DEPRECATED_IOS(2_0, 7_0, "Use UIStatusBarStyleLightContent")
= 1,
    ^
CDVStatusBar.m:299:32: warning: 
      'UIStatusBarStyleBlackOpaque' is deprecated: first deprecated in iOS 7.0 - Use UIStatusBarStyleLightContent
      [-Wdeprecated-declarations]
    [self setStyleForStatusBar:UIStatusBarStyleBlackOpaque];
                               ^
In module 'UIKit' imported from CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:21:5:
note: 
      'UIStatusBarStyleBlackOpaque' has been explicitly marked deprecated here
    UIStatusBarStyleBlackOpaque      NS_ENUM_DEPRECATED_IOS(2_0, 7_0, "Use UIStatusBarStyleLightContent")
= 2,
    ^
CDVStatusBar.m:359:29: warning: 
      'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
        self.viewController.wantsFullScreenLayout = YES;
                            ^
In module 'UIKit' imported from CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:311:34:
note: 
      'wantsFullScreenLayout' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0); // Deprecated
in 7_0, Replaced by ...
                                 ^
CDVStatusBar.m:373:52: warning: 
      implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
      enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
                if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation))
{
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CDVStatusBar.m:407:29: warning: 
      'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
        self.viewController.wantsFullScreenLayout = isIOS7;
                            ^
In module 'UIKit' imported from CDVPlugin.h:21:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:311:34:
note: 
      'wantsFullScreenLayout' has been explicitly marked deprecated here
@property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0); // Deprecated
in 7_0, Replaced by ...
                                 ^
7 warnings generated.


> Fix iOS warnings in Statusbar plugin
> ------------------------------------
>
>                 Key: CB-9250
>                 URL: https://issues.apache.org/jira/browse/CB-9250
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>         Environment: Xcode 6.3.2
>            Reporter: Shazron Abdullah
>
> {code}
> CDVStatusBar.m:182:40: warning: 
>       implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
>       enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
>     if (UIDeviceOrientationIsLandscape(orientation) && (rect.size.width <
rect.size.height) ) {
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
> CDVStatusBar.m:204:44: warning: 
>       implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
>       enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
>         if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation))
{
>             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CDVStatusBar.m:294:32: warning: 
>       'UIStatusBarStyleBlackTranslucent' is deprecated: first deprecated in iOS 7.0 -
Use UIStatusBarStyleLightContent
>       [-Wdeprecated-declarations]
>     [self setStyleForStatusBar:UIStatusBarStyleBlackTranslucent];
>                                ^
> In module 'UIKit' imported from /Users/shazron/Documents/Git/Apache/mobilespec/platforms/ios/build/emulator/include/Cordova/CDVPlugin.h:21:
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:20:5:
note: 
>       'UIStatusBarStyleBlackTranslucent' has been explicitly marked deprecated here
>     UIStatusBarStyleBlackTranslucent NS_ENUM_DEPRECATED_IOS(2_0, 7_0, "Use UIStatusBarStyleLightContent")
= 1,
>     ^
> CDVStatusBar.m:299:32: warning: 
>       'UIStatusBarStyleBlackOpaque' is deprecated: first deprecated in iOS 7.0 - Use
UIStatusBarStyleLightContent
>       [-Wdeprecated-declarations]
>     [self setStyleForStatusBar:UIStatusBarStyleBlackOpaque];
>                                ^
> In module 'UIKit' imported from CDVPlugin.h:21:
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:21:5:
note: 
>       'UIStatusBarStyleBlackOpaque' has been explicitly marked deprecated here
>     UIStatusBarStyleBlackOpaque      NS_ENUM_DEPRECATED_IOS(2_0, 7_0, "Use UIStatusBarStyleLightContent")
= 2,
>     ^
> CDVStatusBar.m:359:29: warning: 
>       'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
>         self.viewController.wantsFullScreenLayout = YES;
>                             ^
> In module 'UIKit' imported from CDVPlugin.h:21:
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:311:34:
note: 
>       'wantsFullScreenLayout' has been explicitly marked deprecated here
> @property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0); //
Deprecated in 7_0, Replaced by ...
>                                  ^
> CDVStatusBar.m:373:52: warning: 
>       implicit conversion from enumeration type 'UIInterfaceOrientation' (aka 'enum UIInterfaceOrientation')
to different
>       enumeration type 'UIDeviceOrientation' (aka 'enum UIDeviceOrientation') [-Wenum-conversion]
>                 if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation))
{
>                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CDVStatusBar.m:407:29: warning: 
>       'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 [-Wdeprecated-declarations]
>         self.viewController.wantsFullScreenLayout = isIOS7;
>                             ^
> In module 'UIKit' imported from CDVPlugin.h:21:
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:311:34:
note: 
>       'wantsFullScreenLayout' has been explicitly marked deprecated here
> @property(nonatomic,assign) BOOL wantsFullScreenLayout NS_DEPRECATED_IOS(3_0, 7_0); //
Deprecated in 7_0, Replaced by ...
>                                  ^
> 7 warnings generated.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message