From 35dc660bdc0a54bd35100370aefd8bd8e7465020 Mon Sep 17 00:00:00 2001 From: Roland Moers Date: Sun, 17 Sep 2017 10:12:11 +0200 Subject: [PATCH 1/3] Update to recommended build settings --- .../project.pbxproj | 14 +++++++++++++- .../RMDateSelectionViewController-Demo.xcscheme | 4 +++- ...eSelectionViewController-DemoExtension.xcscheme | 4 +++- ...MDateSelectionViewController-SwiftDemo.xcscheme | 4 +++- .../RMDateSelectionViewController.xcscheme | 4 +++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj b/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj index 460edf1..13acb7c 100644 --- a/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj +++ b/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj @@ -548,7 +548,7 @@ attributes = { CLASSPREFIX = RM; LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0800; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "Roland Moers"; TargetAttributes = { CA2C5C0F1DA2699300670F0F = { @@ -973,14 +973,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -1018,14 +1024,20 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; diff --git a/RMDateSelectionViewController-Demo.xcodeproj/xcshareddata/xcschemes/RMDateSelectionViewController-Demo.xcscheme b/RMDateSelectionViewController-Demo.xcodeproj/xcshareddata/xcschemes/RMDateSelectionViewController-Demo.xcscheme index 90d07fb..0f0ec69 100644 --- a/RMDateSelectionViewController-Demo.xcodeproj/xcshareddata/xcschemes/RMDateSelectionViewController-Demo.xcscheme +++ b/RMDateSelectionViewController-Demo.xcodeproj/xcshareddata/xcschemes/RMDateSelectionViewController-Demo.xcscheme @@ -1,6 +1,6 @@ @@ -36,6 +37,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" From 490072780e27b1d5e7079ac6bd0fbd66fe62f869 Mon Sep 17 00:00:00 2001 From: Roland Moers Date: Sun, 17 Sep 2017 10:13:27 +0200 Subject: [PATCH 2/3] Update Swift demo to Swift 4 --- .../project.pbxproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj b/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj index 13acb7c..382336f 100644 --- a/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj +++ b/RMDateSelectionViewController-Demo.xcodeproj/project.pbxproj @@ -558,7 +558,7 @@ CA3009F91BF0E6A100EAD920 = { CreatedOnToolsVersion = 7.1; DevelopmentTeam = GGWH6G3GK6; - LastSwiftMigration = 0800; + LastSwiftMigration = 0900; }; CA52EE271AC42C760032E877 = { CreatedOnToolsVersion = 6.2; @@ -909,7 +909,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "de.cooperrs.RMDateSelectionViewController-SwiftDemo"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -929,7 +929,7 @@ MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "de.cooperrs.RMDateSelectionViewController-SwiftDemo"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; From bfaad74f7b03e15e1b91ad4d459338a281ac5479 Mon Sep 17 00:00:00 2001 From: Roland Moers Date: Sun, 17 Sep 2017 10:19:00 +0200 Subject: [PATCH 3/3] Update license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 5379b5e..03690bf 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2016 Roland Moers +Copyright (c) 2013-2017 Roland Moers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal