Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit c2f3731

Browse files
committed
Swift 4
1 parent 48f80cc commit c2f3731

File tree

12 files changed

+88
-60
lines changed

12 files changed

+88
-60
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.1
1+
4.0

Cartfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github "SlackKit/SKCore" >= 4.0.0
2-
github "SlackKit/SKClient" >= 4.0.0
3-
github "SlackKit/SKRTMAPI" >= 4.0.0
4-
github "SlackKit/SKServer" >= 4.0.0
1+
github "SlackKit/SKCore" >= 4.1.0
2+
github "SlackKit/SKClient" >= 4.1.0
3+
github "SlackKit/SKRTMAPI" >= 4.1.0
4+
github "SlackKit/SKServer" >= 4.1.0

Package.swift

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1+
// swift-tools-version:4.0
12
import PackageDescription
23

34
let package = Package(
45
name: "SlackKit",
5-
targets: [
6-
Target(name: "SlackKit")
6+
products: [
7+
.library(name: "SlackKit", targets: ["SlackKit"])
78
],
89
dependencies: [
9-
.Package(url: "https://github.com/SlackKit/SKCore", majorVersion: 4),
10-
.Package(url: "https://github.com/SlackKit/SKClient", majorVersion: 4),
11-
.Package(url: "https://github.com/SlackKit/SKRTMAPI", majorVersion: 4),
12-
.Package(url: "https://github.com/SlackKit/SKServer", majorVersion: 4)
10+
.package(url: "https://github.com/SlackKit/SKCore", .upToNextMinor(from: "4.1.0")),
11+
.package(url: "https://github.com/SlackKit/SKClient", .upToNextMinor(from: "4.1.0")),
12+
.package(url: "https://github.com/SlackKit/SKRTMAPI", .upToNextMinor(from: "4.1.0")),
13+
.package(url: "https://github.com/SlackKit/SKServer", .upToNextMinor(from: "4.1.0"))
14+
],
15+
targets: [
16+
.target(name: "SlackKit",
17+
dependencies: ["SKCore", "SKClient", "SKRTMAPI", "SKServer"],
18+
path: "Sources")
1319
]
1420
)

Podfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ use_frameworks!
22

33
target 'SlackKit macOS' do
44
platform :osx, '10.11'
5-
pod 'SKCore'
6-
pod 'SKClient'
7-
pod 'SKWebAPI'
8-
pod 'SKRTMAPI'
9-
pod 'SKServer'
5+
pod 'SKCore', '~> 4.1.0'
6+
pod 'SKClient', '~> 4.1.0'
7+
pod 'SKWebAPI', '~> 4.1.0'
8+
pod 'SKRTMAPI', '~> 4.1.0'
9+
pod 'SKServer', '~> 4.1.0'
1010
end
1111

1212
target 'SlackKit iOS' do
1313
platform :ios, '9.0'
14-
pod 'SKCore'
15-
pod 'SKClient'
16-
pod 'SKWebAPI'
17-
pod 'SKRTMAPI'
18-
pod 'SKServer'
14+
pod 'SKCore', '~> 4.1.0'
15+
pod 'SKClient', '~> 4.1.0'
16+
pod 'SKWebAPI', '~> 4.1.0'
17+
pod 'SKRTMAPI', '~> 4.1.0'
18+
pod 'SKServer', '~> 4.1.0'
1919
end
2020

2121
target 'SlackKit tvOS' do
2222
platform :tvos, '9.0'
23-
pod 'SKCore'
24-
pod 'SKClient'
25-
pod 'SKWebAPI'
26-
pod 'SKRTMAPI'
27-
pod 'SKServer'
23+
pod 'SKCore', '~> 4.1.0'
24+
pod 'SKClient', '~> 4.1.0'
25+
pod 'SKWebAPI', '~> 4.1.0'
26+
pod 'SKRTMAPI', '~> 4.1.0'
27+
pod 'SKServer', '~> 4.1.0'
2828
end

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center"><img src="https://cloud.githubusercontent.com/assets/8311605/24083714/e921a0d4-0cb2-11e7-8384-d42113ef5056.png" alt="SlackKit" width="500"/></p>
22

3-
![Swift Version](https://img.shields.io/badge/Swift-3.1.1-orange.svg)
3+
![Swift Version](https://img.shields.io/badge/Swift-4.0.3-orange.svg)
44
![Plaforms](https://img.shields.io/badge/Platforms-macOS,iOS,tvOS,Linux-lightgrey.svg)
55
![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)
66
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)
@@ -25,10 +25,11 @@ import PackageDescription
2525

2626
let package = Package(
2727
dependencies: [
28-
.Package(url: "https://github.com/SlackKit/SlackKit.git", majorVersion: 4)
28+
.package(url: "https://github.com/SlackKit/SlackKit.git", .upToNextMinor(from: "4.1.0"))
2929
]
3030
)
3131
```
32+
3233
#### Carthage
3334

3435
Add `SlackKit` to your `Cartfile`:

SlackKit.podspec

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
Pod::Spec.new do |s|
2-
s.name = "SlackKit"
3-
s.version = "4.0.0"
4-
s.summary = "Write Slack apps in Swift"
5-
s.homepage = "https://github.com/pvzig/SlackKit"
6-
s.license = 'MIT'
7-
s.author = { "Peter Zignego" => "[email protected]" }
8-
s.source = { :git => "https://github.com/SlackKit/SlackKit.git", :tag => s.version.to_s }
9-
s.social_media_url = 'https://twitter.com/pvzig'
10-
s.ios.deployment_target = '9.0'
11-
s.osx.deployment_target = '10.11'
12-
s.tvos.deployment_target = '9.0'
13-
s.requires_arc = true
14-
s.source_files = 'Sources/*.swift'
15-
s.frameworks = 'Foundation'
16-
s.dependency 'SKCore'
17-
s.dependency 'SKClient'
18-
s.dependency 'SKRTMAPI'
19-
s.dependency 'SKServer'
2+
s.name = "SlackKit"
3+
s.version = "4.1.0"
4+
s.summary = "Write Slack apps in Swift"
5+
s.homepage = "https://github.com/pvzig/SlackKit"
6+
s.license = 'MIT'
7+
s.author = { "Peter Zignego" => "[email protected]" }
8+
s.source = { :git => "https://github.com/SlackKit/SlackKit.git", :tag => s.version.to_s }
9+
s.social_media_url = 'https://twitter.com/pvzig'
10+
s.ios.deployment_target = '9.0'
11+
s.osx.deployment_target = '10.11'
12+
s.tvos.deployment_target = '9.0'
13+
s.requires_arc = true
14+
s.source_files = 'Sources/*.swift'
15+
s.frameworks = 'Foundation'
16+
s.dependency 'SKCore'
17+
s.dependency 'SKClient'
18+
s.dependency 'SKRTMAPI'
19+
s.dependency 'SKServer'
2020
end

SlackKit.xcodeproj/project.pbxproj

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
2684F1741E95AA6900536DCC /* Project object */ = {
277277
isa = PBXProject;
278278
attributes = {
279-
LastUpgradeCheck = 0830;
279+
LastUpgradeCheck = 0920;
280280
ORGANIZATIONNAME = "Peter Zignego";
281281
TargetAttributes = {
282282
2684F17C1E95AA6900536DCC = {
@@ -420,15 +420,21 @@
420420
CLANG_CXX_LIBRARY = "libc++";
421421
CLANG_ENABLE_MODULES = YES;
422422
CLANG_ENABLE_OBJC_ARC = YES;
423+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
423424
CLANG_WARN_BOOL_CONVERSION = YES;
425+
CLANG_WARN_COMMA = YES;
424426
CLANG_WARN_CONSTANT_CONVERSION = YES;
425427
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
426428
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
427429
CLANG_WARN_EMPTY_BODY = YES;
428430
CLANG_WARN_ENUM_CONVERSION = YES;
429431
CLANG_WARN_INFINITE_RECURSION = YES;
430432
CLANG_WARN_INT_CONVERSION = YES;
433+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
434+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
431435
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
436+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
437+
CLANG_WARN_STRICT_PROTOTYPES = YES;
432438
CLANG_WARN_SUSPICIOUS_MOVE = YES;
433439
CLANG_WARN_UNREACHABLE_CODE = YES;
434440
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -458,6 +464,7 @@
458464
SDKROOT = macosx;
459465
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
460466
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
467+
SWIFT_VERSION = 4.0;
461468
VERSIONING_SYSTEM = "apple-generic";
462469
VERSION_INFO_PREFIX = "";
463470
};
@@ -473,15 +480,21 @@
473480
CLANG_CXX_LIBRARY = "libc++";
474481
CLANG_ENABLE_MODULES = YES;
475482
CLANG_ENABLE_OBJC_ARC = YES;
483+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
476484
CLANG_WARN_BOOL_CONVERSION = YES;
485+
CLANG_WARN_COMMA = YES;
477486
CLANG_WARN_CONSTANT_CONVERSION = YES;
478487
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
479488
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
480489
CLANG_WARN_EMPTY_BODY = YES;
481490
CLANG_WARN_ENUM_CONVERSION = YES;
482491
CLANG_WARN_INFINITE_RECURSION = YES;
483492
CLANG_WARN_INT_CONVERSION = YES;
493+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
494+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
484495
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
496+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
497+
CLANG_WARN_STRICT_PROTOTYPES = YES;
485498
CLANG_WARN_SUSPICIOUS_MOVE = YES;
486499
CLANG_WARN_UNREACHABLE_CODE = YES;
487500
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -503,6 +516,7 @@
503516
MTL_ENABLE_DEBUG_INFO = NO;
504517
SDKROOT = macosx;
505518
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
519+
SWIFT_VERSION = 4.0;
506520
VERSIONING_SYSTEM = "apple-generic";
507521
VERSION_INFO_PREFIX = "";
508522
};
@@ -531,7 +545,7 @@
531545
PRODUCT_NAME = SlackKit;
532546
PROVISIONING_PROFILE_SPECIFIER = "";
533547
SKIP_INSTALL = YES;
534-
SWIFT_VERSION = 3.0;
548+
SWIFT_VERSION = 4.0;
535549
};
536550
name = Debug;
537551
};
@@ -558,7 +572,7 @@
558572
PRODUCT_NAME = SlackKit;
559573
PROVISIONING_PROFILE_SPECIFIER = "";
560574
SKIP_INSTALL = YES;
561-
SWIFT_VERSION = 3.0;
575+
SWIFT_VERSION = 4.0;
562576
};
563577
name = Release;
564578
};
@@ -585,7 +599,7 @@
585599
PRODUCT_NAME = SlackKit;
586600
SDKROOT = iphoneos;
587601
SKIP_INSTALL = YES;
588-
SWIFT_VERSION = 3.0;
602+
SWIFT_VERSION = 4.0;
589603
};
590604
name = Debug;
591605
};
@@ -612,7 +626,7 @@
612626
PRODUCT_NAME = SlackKit;
613627
SDKROOT = iphoneos;
614628
SKIP_INSTALL = YES;
615-
SWIFT_VERSION = 3.0;
629+
SWIFT_VERSION = 4.0;
616630
};
617631
name = Release;
618632
};
@@ -638,7 +652,7 @@
638652
PRODUCT_NAME = SlackKit;
639653
SDKROOT = appletvos;
640654
SKIP_INSTALL = YES;
641-
SWIFT_VERSION = 3.0;
655+
SWIFT_VERSION = 4.0;
642656
TVOS_DEPLOYMENT_TARGET = 9.0;
643657
};
644658
name = Debug;
@@ -665,7 +679,7 @@
665679
PRODUCT_NAME = SlackKit;
666680
SDKROOT = appletvos;
667681
SKIP_INSTALL = YES;
668-
SWIFT_VERSION = 3.0;
682+
SWIFT_VERSION = 4.0;
669683
TVOS_DEPLOYMENT_TARGET = 9.0;
670684
};
671685
name = Release;

SlackKit.xcodeproj/xcshareddata/xcschemes/SlackKit iOS.xcscheme

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0830"
3+
LastUpgradeVersion = "0920"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
</Testables>
@@ -36,6 +37,7 @@
3637
buildConfiguration = "Debug"
3738
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3839
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40+
language = ""
3941
launchStyle = "0"
4042
useCustomWorkingDirectory = "NO"
4143
ignoresPersistentStateOnLaunch = "NO"

SlackKit.xcodeproj/xcshareddata/xcschemes/SlackKit macOS.xcscheme

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0830"
3+
LastUpgradeVersion = "0920"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
</Testables>
@@ -36,6 +37,7 @@
3637
buildConfiguration = "Debug"
3738
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3839
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40+
language = ""
3941
launchStyle = "0"
4042
useCustomWorkingDirectory = "NO"
4143
ignoresPersistentStateOnLaunch = "NO"

SlackKit.xcodeproj/xcshareddata/xcschemes/SlackKit tvOS.xcscheme

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0830"
3+
LastUpgradeVersion = "0920"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
</Testables>
@@ -36,6 +37,7 @@
3637
buildConfiguration = "Debug"
3738
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3839
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40+
language = ""
3941
launchStyle = "0"
4042
useCustomWorkingDirectory = "NO"
4143
ignoresPersistentStateOnLaunch = "NO"

0 commit comments

Comments
 (0)