File tree 6 files changed +17
-13
lines changed
6 files changed +17
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- osx_image : xcode10
1
+ osx_image : xcode10.2
2
2
language : objective-c
3
3
sudo : required
4
4
env :
5
5
global :
6
6
- PROJECT="SafeCollection.xcodeproj"
7
7
- SCHEME="SafeCollection-Package"
8
- - IOS_SDK="iphonesimulator12.0 "
8
+ - IOS_SDK="iphonesimulator12.2 "
9
9
- MACOS_SDK="macosx10.14"
10
- - TVOS_SDK="appletvsimulator12.0 "
11
- - WATCHOS_SDK="watchsimulator5.0 "
10
+ - TVOS_SDK="appletvsimulator12.2 "
11
+ - WATCHOS_SDK="watchsimulator5.2 "
12
12
- FRAMEWORK="SafeCollection"
13
13
matrix :
14
- - SDK="$IOS_SDK" TEST=1 DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=12.0 "
14
+ - SDK="$IOS_SDK" TEST=1 DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=12.2 "
15
15
- SDK="$MACOS_SDK" TEST=1 DESTINATION="arch=x86_64"
16
- - SDK="$TVOS_SDK" TEST=1 DESTINATION="OS=12.0 ,name=Apple TV 4K"
17
- - SDK="$WATCHOS_SDK" TEST=0 DESTINATION="OS=5.0 ,name=Apple Watch Series 4 - 44mm"
16
+ - SDK="$TVOS_SDK" TEST=1 DESTINATION="OS=12.2 ,name=Apple TV 4K"
17
+ - SDK="$WATCHOS_SDK" TEST=0 DESTINATION="OS=5.2 ,name=Apple Watch Series 4 - 44mm"
18
18
19
19
install :
20
20
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
Original file line number Diff line number Diff line change 1
- // swift-tools-version:4.2
1
+ // swift-tools-version:5.0
2
2
3
3
import PackageDescription
4
4
5
5
let package = Package (
6
6
name: " SafeCollection " ,
7
+ platforms: [
8
+ . macOS( . v10_10) , . iOS( . v8) , . tvOS( . v9)
9
+ ] ,
7
10
products: [
8
11
. library( name: " SafeCollection " , targets: [ " SafeCollection " ] ) ,
9
12
] ,
10
13
targets: [
11
14
. target( name: " SafeCollection " ) ,
12
15
. testTarget( name: " SafeCollectionTests " , dependencies: [ " SafeCollection " ] ) ,
13
- ]
16
+ ] ,
17
+ swiftLanguageVersions: [ . v5]
14
18
)
Original file line number Diff line number Diff line change 1
1
# SafeCollection
2
2
3
- ![ Swift] ( https://img.shields.io/badge/Swift-4.2 -orange.svg )
3
+ ![ Swift] ( https://img.shields.io/badge/Swift-5.0 -orange.svg )
4
4
[ ![ Build Status] ( https://travis-ci.org/devxoul/SafeCollection.svg )] ( https://travis-ci.org/devxoul/SafeCollection )
5
5
[ ![ CocoaPods] ( http://img.shields.io/cocoapods/v/SafeCollection.svg )] ( https://cocoapods.org/pods/SafeCollection )
6
6
[ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/Carthage/Carthage )
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Pod::Spec.new do |s|
9
9
:tag => s . version . to_s }
10
10
s . source_files = "Sources/**/*.swift"
11
11
s . requires_arc = true
12
+ s . swift_version = "5.0"
12
13
13
14
s . ios . deployment_target = "8.0"
14
15
s . osx . deployment_target = "10.9"
Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ public struct SafeMutableCollection<C>: MutableCollection where C: MutableCollec
62
62
}
63
63
64
64
public extension Collection {
65
- public var safe : SafeCollection < Self > {
65
+ var safe : SafeCollection < Self > {
66
66
return . init( self )
67
67
}
68
68
}
69
69
70
70
public extension MutableCollection {
71
- public var safe : SafeMutableCollection < Self > {
71
+ var safe : SafeMutableCollection < Self > {
72
72
get { return . init( self ) }
73
73
set { self = newValue. collection }
74
74
}
You can’t perform that action at this time.
0 commit comments