Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E665E188C6 for ; Wed, 1 Jul 2015 07:13:05 +0000 (UTC) Received: (qmail 85514 invoked by uid 500); 1 Jul 2015 07:13:05 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 85480 invoked by uid 500); 1 Jul 2015 07:13:05 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 85164 invoked by uid 99); 1 Jul 2015 07:13:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2015 07:13:04 +0000 Date: Wed, 1 Jul 2015 07:13:04 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9250) Fix iOS warnings in Statusbar plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14609667#comment-14609667 ] Shazron Abdullah commented on CB-9250: -------------------------------------- With the upcoming cordova-ios 4.0.0 platform release, the minimum will be iOS 7. I would use runtime conditional checks -- use IsAtLeastiOSVersion(@"7.0") Since you will be compiling with Xcode 6 and the iOS 8 SDK, it should all work fine > 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 > Assignee: jcesarmobile > Labels: cordova-ios-4.0.x > > {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