Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Ready to Swift 4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rupérez committed Jun 21, 2018
1 parent 7ea1311 commit 1063d3e
Show file tree
Hide file tree
Showing 38 changed files with 1,049 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module: Kommander
module_version: 0.9.3
module_version: 1.0.2
github_url: https://github.com/intelygenz/Kommander-iOS
github_file_prefix: https://github.com/intelygenz/Kommander-iOS/tree/master

Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: swift
osx_image: xcode9.3
osx_image: xcode9.4
script:
- xcodebuild -workspace Kommander.xcworkspace -scheme Major -destination "platform=iOS
Simulator,name=iPhone X,OS=11.3" -configuration Debug -enableCodeCoverage YES clean
Simulator,name=iPhone X,OS=11.4" -configuration Debug -enableCodeCoverage YES clean
build test
after_success:
- bash <(curl -s https://codecov.io/bash)
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Release 1.0.2

- [x] Ready for Swift 4.2.

# Release 1.0.1

- [x] Result and error Kommand helpers.
Expand Down
4 changes: 2 additions & 2 deletions Kommander.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Kommander'
s.version = '1.0.1'
s.version = '1.0.2'
s.summary = 'A command pattern implementation written in Swift'

s.homepage = 'https://github.com/intelygenz/Kommander-iOS'
Expand All @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/intelygenz/Kommander-iOS.git', :tag => s.version.to_s }
s.social_media_url = "https://twitter.com/intelygenz"

s.ios.deployment_target = '8.0'
s.ios.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
Expand Down
12 changes: 6 additions & 6 deletions Kommander.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,13 @@
81925CC41E3A0FFC001701F3 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 3VW789WSMP;
LastSwiftMigration = "";
LastSwiftMigration = 1000;
ProvisioningStyle = Automatic;
};
81925CCD1E3A0FFC001701F3 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 3VW789WSMP;
LastSwiftMigration = "";
LastSwiftMigration = 1000;
ProvisioningStyle = Automatic;
};
819D155C1E76AEFB00BB1F07 = {
Expand Down Expand Up @@ -992,7 +992,7 @@
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 3VW789WSMP;
DYLIB_COMPATIBILITY_VERSION = 1.0.1;
DYLIB_CURRENT_VERSION = 1.0.1;
DYLIB_CURRENT_VERSION = 1.0.2;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand Down Expand Up @@ -1020,7 +1020,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 9.0;
VERSIONING_SYSTEM = "apple-generic";
Expand Down Expand Up @@ -1066,7 +1066,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 3VW789WSMP;
DYLIB_COMPATIBILITY_VERSION = 1.0.1;
DYLIB_CURRENT_VERSION = 1.0.1;
DYLIB_CURRENT_VERSION = 1.0.2;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
Expand All @@ -1086,7 +1086,7 @@
PRODUCT_NAME = Kommander;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 9.0;
VALIDATE_PRODUCT = YES;
Expand Down
2 changes: 1 addition & 1 deletion Major/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}

Expand Down
14 changes: 7 additions & 7 deletions Source/Dispatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ open class Dispatcher {
final var dispatchQueue = DispatchQueue(label: UUID().uuidString)

/// Main queue dispatcher
open static var main: Dispatcher { return MainDispatcher() }
public static var main: Dispatcher { return MainDispatcher() }
/// Current queue dispatcher
open static var current: Dispatcher { return CurrentDispatcher() }
public static var current: Dispatcher { return CurrentDispatcher() }
/// Dispatcher with default quality of service
open static var `default`: Dispatcher { return Dispatcher() }
public static var `default`: Dispatcher { return Dispatcher() }
/// Dispatcher with user interactive quality of service
open static var userInteractive: Dispatcher { return Dispatcher(qos: .userInteractive) }
public static var userInteractive: Dispatcher { return Dispatcher(qos: .userInteractive) }
/// Dispatcher with user initiated quality of service
open static var userInitiated: Dispatcher { return Dispatcher(qos: .userInitiated) }
public static var userInitiated: Dispatcher { return Dispatcher(qos: .userInitiated) }
/// Dispatcher with utility quality of service
open static var utility: Dispatcher { return Dispatcher(qos: .utility) }
public static var utility: Dispatcher { return Dispatcher(qos: .utility) }
/// Dispatcher with background quality of service
open static var background: Dispatcher { return Dispatcher(qos: .background) }
public static var background: Dispatcher { return Dispatcher(qos: .background) }

/// Dispatcher instance with custom OperationQueue
public init(name: String = UUID().uuidString, qos: QualityOfService = .default, maxConcurrentOperations: Int = OperationQueue.defaultMaxConcurrentOperationCount) {
Expand Down
14 changes: 7 additions & 7 deletions Source/Kommander.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ open class Kommander {
final let executor: Dispatcher

/// Kommander instance with CurrentDispatcher deliverer and MainDispatcher executor
open static var main: Kommander { return Kommander(executor: .main) }
public static var main: Kommander { return Kommander(executor: .main) }
/// Kommander instance with CurrentDispatcher deliverer and CurrentDispatcher executor
open static var current: Kommander { return Kommander(executor: .current) }
public static var current: Kommander { return Kommander(executor: .current) }
/// Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with default quality of service
open static var `default`: Kommander { return Kommander() }
public static var `default`: Kommander { return Kommander() }
/// Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with user interactive quality of service
open static var userInteractive: Kommander { return Kommander(executor: .userInteractive) }
public static var userInteractive: Kommander { return Kommander(executor: .userInteractive) }
/// Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with user initiated quality of service
open static var userInitiated: Kommander { return Kommander(executor: .userInitiated) }
public static var userInitiated: Kommander { return Kommander(executor: .userInitiated) }
/// Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with utility quality of service
open static var utility: Kommander { return Kommander(executor: .utility) }
public static var utility: Kommander { return Kommander(executor: .utility) }
/// Kommander instance with CurrentDispatcher deliverer and Dispatcher executor with background quality of service
open static var background: Kommander { return Kommander(executor: .background) }
public static var background: Kommander { return Kommander(executor: .background) }

/// Kommander instance with deliverer and executor
public init(deliverer: Dispatcher = .current, executor: Dispatcher = .default) {
Expand Down
14 changes: 11 additions & 3 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<a title="Classes Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="index.html">Kommander Docs</a> (100% documented)</p>
<p><a href="index.html">Kommander Docs</a> (97% documented)</p>
<p class="header-right"><a href="https://github.com/intelygenz/Kommander-iOS"><img src="img/gh.png"/>View on GitHub</a></p>
<p class="header-right"><a href="dash-feed://https%3A%2F%2Fintelygenz%2Egithub%2Eio%2Fdocsets%2FKommander%2Exml"><img src="img/dash.png"/>Install in Dash</a></p>
</div>
Expand Down Expand Up @@ -51,6 +51,14 @@
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Extensions.html">Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Extensions/Array.html">Array</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Structs.html">Structures</a>
<ul class="nav-group-tasks">
Expand Down Expand Up @@ -237,7 +245,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/intelygenz/Kommander-iOS/tree/master/Source/Kommand.swift#L12-L221">Show on GitHub</a>
<a href="https://github.com/intelygenz/Kommander-iOS/tree/master/Source/Kommand.swift#L12-L217">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -247,7 +255,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://www.intelygenz.com" target="_blank" rel="external">Intelygenz</a>. All rights reserved. (Last updated: 2018-01-19)</p>
<p>&copy; 2018 <a class="link" href="https://www.intelygenz.com" target="_blank" rel="external">Intelygenz</a>. All rights reserved. (Last updated: 2018-06-21)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
Expand Down
12 changes: 10 additions & 2 deletions docs/Classes/CurrentDispatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a title="CurrentDispatcher Class Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../index.html">Kommander Docs</a> (100% documented)</p>
<p><a href="../index.html">Kommander Docs</a> (97% documented)</p>
<p class="header-right"><a href="https://github.com/intelygenz/Kommander-iOS"><img src="../img/gh.png"/>View on GitHub</a></p>
<p class="header-right"><a href="dash-feed://https%3A%2F%2Fintelygenz%2Egithub%2Eio%2Fdocsets%2FKommander%2Exml"><img src="../img/dash.png"/>Install in Dash</a></p>
</div>
Expand Down Expand Up @@ -52,6 +52,14 @@
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Extensions.html">Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Extensions/Array.html">Array</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Structs.html">Structures</a>
<ul class="nav-group-tasks">
Expand Down Expand Up @@ -113,7 +121,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://www.intelygenz.com" target="_blank" rel="external">Intelygenz</a>. All rights reserved. (Last updated: 2018-01-19)</p>
<p>&copy; 2018 <a class="link" href="https://www.intelygenz.com" target="_blank" rel="external">Intelygenz</a>. All rights reserved. (Last updated: 2018-06-21)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
Expand Down
Loading

0 comments on commit 1063d3e

Please sign in to comment.