diff --git a/SwiftDate.podspec b/SwiftDate.podspec index 0caa76a2..ba8d751f 100644 --- a/SwiftDate.podspec +++ b/SwiftDate.podspec @@ -1,18 +1,17 @@ Pod::Spec.new do |s| s.name = "SwiftDate" - s.version = "6.3.1" + s.version = "7.0.0" s.summary = "The best way to deal with Dates & Time Zones in Swift" s.homepage = "https://github.com/malcommac/SwiftDate.git" s.license = { :type => "MIT", :file => "LICENSE" } s.author = { "Daniele Margutti" => "hello@danielemargutti.com" } s.social_media_url = "https://twitter.com/danielemargutti" - s.ios.deployment_target = "9.0" - s.osx.deployment_target = "10.10" - s.watchos.deployment_target = "2.0" - s.tvos.deployment_target = "9.0" + s.ios.deployment_target = "13.0" + s.osx.deployment_target = "10.15" + s.watchos.deployment_target = "6.0" + s.tvos.deployment_target = "13.0" s.source = { :git => "https://github.com/malcommac/SwiftDate.git", :tag => s.version.to_s } s.source_files = 'Sources/**/*.swift' s.frameworks = "Foundation" - s.swift_versions = ['5.0', '5.1'] - s.resources = 'Sources/SwiftDate/Formatters/RelativeFormatter/langs' + s.swift_versions = ['5.5'] end diff --git a/Tests/SwiftDateTests/TestDateInRegion+Langs.swift b/Tests/SwiftDateTests/TestDateInRegion+Langs.swift deleted file mode 100644 index ae3051f9..00000000 --- a/Tests/SwiftDateTests/TestDateInRegion+Langs.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// SwiftDate -// Parse, validate, manipulate, and display dates, time and timezones in Swift -// -// Created by Daniele Margutti -// - Web: https://www.danielemargutti.com -// - Twitter: https://twitter.com/danielemargutti -// - Mail: hello@danielemargutti.com -// -// Copyright © 2019 Daniele Margutti. Licensed under MIT License. -// - -import SwiftDate -import XCTest - -class TestDateInRegion_Langs: XCTestCase { - - /* - public func testLanguages() { - - RelativeFormatter.allLanguages.forEach { lang in - XCTAssert((lang.identifier.isEmpty == false), "Language \(lang.identifier) has not a valid identifier") - lang.flavours.forEach({ (key, value) in - if RelativeFormatter.Flavour(rawValue: key) == nil { - XCTFail("Flavour '\(key)' is not supported by the library (lang '\(lang.identifier)')") - return - } - guard let flavourDict = value as? [String: Any] else { - XCTFail("Flavour dictionary '\(key)' is not a valid dictionary") - return - } - flavourDict.keys.forEach({ rawTimeUnit in - if RelativeFormatter.Unit(rawValue: rawTimeUnit) == nil { - XCTFail("Time unit '\(rawTimeUnit)' in lang \(key) is not a valid") - return - } - }) - }) - } - } - - public func testValues() { - let ago5Mins = DateInRegion() - 5.minutes - let value1 = ago5Mins.toRelative(style: RelativeFormatter.defaultStyle(), locale: Locales.italian) // "5 minuti fa" - XCTAssert(value1 == "5 minuti fa", "Failed to get relative date in default style") - - let justNow2 = DateInRegion() - 2.hours - let value2 = justNow2.toRelative(style: RelativeFormatter.twitterStyle(), locale: Locales.italian) // "2h fa" - XCTAssert(value2 == "2h fa", "Failed to get relative date in twitter style") - - let justNow = DateInRegion() - 10.seconds - let value3 = justNow.toRelative(style: RelativeFormatter.twitterStyle(), locale: Locales.italian) // "ora" - XCTAssert(value3 == "ora", "Failed to get relative date in twitter style") - - let value4 = justNow.toRelative(style: RelativeFormatter.twitterStyle(), locale: Locales.english) // "now" - XCTAssert(value4 == "now", "Failed to get relative date in twitter style") - - } -*/ -}