diff --git a/.travis.yml b/.travis.yml index 1d61d3a..d0b236a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: objective-c -osx_image: xcode9.3 +osx_image: xcode9.4 branches: only: - master diff --git a/Tentacle.xcodeproj/project.pbxproj b/Tentacle.xcodeproj/project.pbxproj index 50d5d1c..9b59a86 100644 --- a/Tentacle.xcodeproj/project.pbxproj +++ b/Tentacle.xcodeproj/project.pbxproj @@ -670,7 +670,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0900; + LastUpgradeCheck = 0940; ORGANIZATIONNAME = "Matt Diephouse"; TargetAttributes = { 61377C6B1C8A2B2C0081FF24 = { @@ -1085,12 +1085,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -1142,12 +1144,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; diff --git a/Tentacle.xcodeproj/xcshareddata/xcschemes/Tentacle-OSX.xcscheme b/Tentacle.xcodeproj/xcshareddata/xcschemes/Tentacle-OSX.xcscheme index f50d8b4..105973e 100644 --- a/Tentacle.xcodeproj/xcshareddata/xcschemes/Tentacle-OSX.xcscheme +++ b/Tentacle.xcodeproj/xcshareddata/xcschemes/Tentacle-OSX.xcscheme @@ -1,6 +1,6 @@ @@ -46,7 +45,6 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/Tentacle.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tentacle.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Tentacle.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tests/TentacleTests/TreeTests.swift b/Tests/TentacleTests/TreeTests.swift index a967956..31a8207 100644 --- a/Tests/TentacleTests/TreeTests.swift +++ b/Tests/TentacleTests/TreeTests.swift @@ -94,7 +94,8 @@ extension NewTree: Equatable { extension NewTree: Decodable { public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: NewTree.CodingKeys.self) - self.entries = try container.decode([Tree.Entry].self, forKey: .entries) - self.base = try container.decodeIfPresent(String.self, forKey: .base) + let entries = try container.decode([Tree.Entry].self, forKey: .entries) + let base = try container.decodeIfPresent(String.self, forKey: .base) + self.init(entries: entries, base: base) } }