Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 1e44cd0

Browse files
committed
Merge branch 'swift4'
2 parents fda00fa + 5f2f93d commit 1e44cd0

File tree

13 files changed

+98
-50
lines changed

13 files changed

+98
-50
lines changed

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "SlackKit/SKCore" >= 4.0.0
1+
github "SlackKit/SKCore" >= 4.1.0

Package.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
// swift-tools-version:4.0
12
import PackageDescription
23

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

Podfile

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

33
target 'SKWebAPI macOS' do
44
platform :osx, '10.11'
5-
pod 'SKCore'
5+
pod 'SKCore', '~> 4.1.0'
66
end
77

88
target 'SKWebAPI iOS' do
99
platform :ios, '9.0'
10-
pod 'SKCore'
10+
pod 'SKCore', '~> 4.1.0'
1111
end
1212

1313
target 'SKWebAPI tvOS' do
1414
platform :tvos, '9.0'
15-
pod 'SKCore'
15+
pod 'SKCore', '~> 4.1.0'
1616
end

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SKWebAPI: SlackKit Web API Module
2-
![Swift Version](https://img.shields.io/badge/Swift-3.1.1-orange.svg)
2+
![Swift Version](https://img.shields.io/badge/Swift-4.0.3-orange.svg)
33
![Plaforms](https://img.shields.io/badge/Platforms-macOS,iOS,tvOS,Linux-lightgrey.svg)
44
![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)
55
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)
@@ -21,7 +21,7 @@ pod 'SKWebAPI'
2121
and run
2222

2323
```
24-
# Use CocoaPods version >= 1.1.0
24+
# Use CocoaPods version >= 1.4.0
2525
pod install
2626
```
2727

@@ -49,7 +49,7 @@ import PackageDescription
4949

5050
let package = Package(
5151
dependencies: [
52-
.Package(url: "https://github.com/SlackKit/SKWebAPI.git", majorVersion: 4)
52+
.package(url: "https://github.com/SlackKit/SKWebAPI.git", .upToNextMinor(from: "4.1.0"))
5353
]
5454
)
5555
```

SKWebAPI.podspec

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
Pod::Spec.new do |s|
2-
s.name = "SKWebAPI"
3-
s.version = "4.0.7"
4-
s.summary = "A Swift library to help make requests to the Slack Web API"
5-
s.homepage = "https://github.com/SlackKit/SKWebAPI"
6-
s.license = 'MIT'
7-
s.author = { "Peter Zignego" => "[email protected]" }
8-
s.source = { :git => "https://github.com/SlackKit/SKWebAPI.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'
2+
s.name = "SKWebAPI"
3+
s.version = "4.1.0"
4+
s.summary = "A Swift library to help make requests to the Slack Web API"
5+
s.homepage = "https://github.com/SlackKit/SKWebAPI"
6+
s.license = 'MIT'
7+
s.author = { "Peter Zignego" => "[email protected]" }
8+
s.source = { :git => "https://github.com/SlackKit/SKWebAPI.git", :tag => s.version.to_s }
9+
s.social_media_url = 'https://twitter.com/pvzig'
10+
s.swift_version = '4.0'
11+
s.ios.deployment_target = '9.0'
12+
s.osx.deployment_target = '10.11'
13+
s.tvos.deployment_target = '9.0'
14+
s.requires_arc = true
15+
s.source_files = 'Sources/*.swift'
16+
s.frameworks = 'Foundation'
17+
s.dependency 'SKCore'
1718
end

SKWebAPI.xcodeproj/project.pbxproj

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
2684F1741E95AA6900536DCC /* Project object */ = {
210210
isa = PBXProject;
211211
attributes = {
212-
LastUpgradeCheck = 0830;
212+
LastUpgradeCheck = 0920;
213213
ORGANIZATIONNAME = "Peter Zignego";
214214
TargetAttributes = {
215215
2684F17C1E95AA6900536DCC = {
@@ -356,15 +356,21 @@
356356
CLANG_CXX_LIBRARY = "libc++";
357357
CLANG_ENABLE_MODULES = YES;
358358
CLANG_ENABLE_OBJC_ARC = YES;
359+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
359360
CLANG_WARN_BOOL_CONVERSION = YES;
361+
CLANG_WARN_COMMA = YES;
360362
CLANG_WARN_CONSTANT_CONVERSION = YES;
361363
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
362364
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
363365
CLANG_WARN_EMPTY_BODY = YES;
364366
CLANG_WARN_ENUM_CONVERSION = YES;
365367
CLANG_WARN_INFINITE_RECURSION = YES;
366368
CLANG_WARN_INT_CONVERSION = YES;
369+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
370+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
367371
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
372+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
373+
CLANG_WARN_STRICT_PROTOTYPES = YES;
368374
CLANG_WARN_SUSPICIOUS_MOVE = YES;
369375
CLANG_WARN_UNREACHABLE_CODE = YES;
370376
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -409,15 +415,21 @@
409415
CLANG_CXX_LIBRARY = "libc++";
410416
CLANG_ENABLE_MODULES = YES;
411417
CLANG_ENABLE_OBJC_ARC = YES;
418+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
412419
CLANG_WARN_BOOL_CONVERSION = YES;
420+
CLANG_WARN_COMMA = YES;
413421
CLANG_WARN_CONSTANT_CONVERSION = YES;
414422
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
415423
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
416424
CLANG_WARN_EMPTY_BODY = YES;
417425
CLANG_WARN_ENUM_CONVERSION = YES;
418426
CLANG_WARN_INFINITE_RECURSION = YES;
419427
CLANG_WARN_INT_CONVERSION = YES;
428+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
429+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
420430
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
431+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
432+
CLANG_WARN_STRICT_PROTOTYPES = YES;
421433
CLANG_WARN_SUSPICIOUS_MOVE = YES;
422434
CLANG_WARN_UNREACHABLE_CODE = YES;
423435
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -467,7 +479,7 @@
467479
PRODUCT_NAME = SKWebAPI;
468480
PROVISIONING_PROFILE_SPECIFIER = "";
469481
SKIP_INSTALL = YES;
470-
SWIFT_VERSION = 3.0;
482+
SWIFT_VERSION = 4.0;
471483
};
472484
name = Debug;
473485
};
@@ -494,7 +506,7 @@
494506
PRODUCT_NAME = SKWebAPI;
495507
PROVISIONING_PROFILE_SPECIFIER = "";
496508
SKIP_INSTALL = YES;
497-
SWIFT_VERSION = 3.0;
509+
SWIFT_VERSION = 4.0;
498510
};
499511
name = Release;
500512
};
@@ -521,7 +533,7 @@
521533
PRODUCT_NAME = SKWebAPI;
522534
SDKROOT = iphoneos;
523535
SKIP_INSTALL = YES;
524-
SWIFT_VERSION = 3.0;
536+
SWIFT_VERSION = 4.0;
525537
};
526538
name = Debug;
527539
};
@@ -548,7 +560,7 @@
548560
PRODUCT_NAME = SKWebAPI;
549561
SDKROOT = iphoneos;
550562
SKIP_INSTALL = YES;
551-
SWIFT_VERSION = 3.0;
563+
SWIFT_VERSION = 4.0;
552564
};
553565
name = Release;
554566
};
@@ -574,7 +586,7 @@
574586
PRODUCT_NAME = SKWebAPI;
575587
SDKROOT = appletvos;
576588
SKIP_INSTALL = YES;
577-
SWIFT_VERSION = 3.0;
589+
SWIFT_VERSION = 4.0;
578590
TVOS_DEPLOYMENT_TARGET = 9.0;
579591
};
580592
name = Debug;
@@ -601,7 +613,7 @@
601613
PRODUCT_NAME = SKWebAPI;
602614
SDKROOT = appletvos;
603615
SKIP_INSTALL = YES;
604-
SWIFT_VERSION = 3.0;
616+
SWIFT_VERSION = 4.0;
605617
TVOS_DEPLOYMENT_TARGET = 9.0;
606618
};
607619
name = Release;

SKWebAPI.xcodeproj/xcshareddata/xcschemes/SKWebAPI 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"

SKWebAPI.xcodeproj/xcshareddata/xcschemes/SKWebAPI 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"

SKWebAPI.xcodeproj/xcshareddata/xcschemes/SKWebAPI 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"

Sources/Endpoint.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public enum Endpoint: String {
6565
case mpimMark = "mpim.mark"
6666
case mpimOpen = "mpim.open"
6767
case oauthAccess = "oauth.access"
68+
case pinsList = "pins.list"
6869
case pinsAdd = "pins.add"
6970
case pinsRemove = "pins.remove"
7071
case reactionsAdd = "reactions.add"

0 commit comments

Comments
 (0)