Skip to content

Commit f5ad500

Browse files
committed
support swift 5.0, bump to 2.9.0
1 parent 8b6319d commit f5ad500

File tree

8 files changed

+21
-15
lines changed

8 files changed

+21
-15
lines changed

Diff for: .swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
5.0

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode10
2+
osx_image: xcode10.1
33
branches:
44
only:
55
- master

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.9.0](https://github.com/maxsokolov/TableKit/releases/tag/2.9.0)
6+
Released on 2019-04-04.
7+
- Swift 5.0 support.
8+
59
## [2.8.0](https://github.com/maxsokolov/TableKit/releases/tag/2.8.0)
610
Released on 2018-09-30.
711
- Swift 4.2 support.

Diff for: Demo/TableKitDemo.xcodeproj/project.pbxproj

+5-4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@
248248
developmentRegion = English;
249249
hasScannedForEncodings = 0;
250250
knownRegions = (
251+
English,
251252
en,
252253
Base,
253254
);
@@ -377,7 +378,7 @@
377378
ONLY_ACTIVE_ARCH = YES;
378379
SDKROOT = iphoneos;
379380
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
380-
SWIFT_VERSION = 4.0;
381+
SWIFT_VERSION = 5.0;
381382
};
382383
name = Debug;
383384
};
@@ -425,7 +426,7 @@
425426
MTL_ENABLE_DEBUG_INFO = NO;
426427
SDKROOT = iphoneos;
427428
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
428-
SWIFT_VERSION = 4.0;
429+
SWIFT_VERSION = 5.0;
429430
VALIDATE_PRODUCT = YES;
430431
};
431432
name = Release;
@@ -443,7 +444,7 @@
443444
PRODUCT_BUNDLE_IDENTIFIER = com.tablekit.demo;
444445
PRODUCT_NAME = TableKitDemo;
445446
PROVISIONING_PROFILE = "";
446-
SWIFT_VERSION = 4.2;
447+
SWIFT_VERSION = 5.0;
447448
};
448449
name = Debug;
449450
};
@@ -460,7 +461,7 @@
460461
PRODUCT_BUNDLE_IDENTIFIER = com.tablekit.demo;
461462
PRODUCT_NAME = TableKitDemo;
462463
PROVISIONING_PROFILE = "";
463-
SWIFT_VERSION = 4.2;
464+
SWIFT_VERSION = 5.0;
464465
};
465466
name = Release;
466467
};

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<p align="left">
44
<a href="https://travis-ci.org/maxsokolov/TableKit"><img src="https://api.travis-ci.org/maxsokolov/TableKit.svg" alt="Build Status" /></a>
5-
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/Swift_4.2-compatible-4BC51D.svg?style=flat" alt="Swift 4.2 compatible" /></a>
5+
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/Swift_5.0-compatible-4BC51D.svg?style=flat" alt="Swift 5.0 compatible" /></a>
66
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible" /></a>
77
<a href="https://cocoapods.org/pods/tablekit"><img src="https://img.shields.io/badge/pod-2.8.1-blue.svg" alt="CocoaPods compatible" /></a>
88
<img src="https://img.shields.io/badge/platform-iOS-blue.svg?style=flat" alt="Platform iOS" />

Diff for: Sources/TableRow.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ open class TableRow<CellType: ConfigurableCell>: Row where CellType: UITableView
113113
open func removeAction(forActionId actionId: String) {
114114

115115
for (key, value) in actions {
116-
if let actionIndex = value.index(where: { $0.id == actionId }) {
116+
if let actionIndex = value.firstIndex(where: { $0.id == actionId }) {
117117
actions[key]?.remove(at: actionIndex)
118118
}
119119
}

Diff for: TableKit.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |s|
22
s.name = 'TableKit'
33
s.module_name = 'TableKit'
44

5-
s.version = '2.8.1'
5+
s.version = '2.9.0'
66

77
s.homepage = 'https://github.com/maxsokolov/TableKit'
88
s.summary = 'Type-safe declarative table views with Swift.'

Diff for: TableKit.xcodeproj/project.pbxproj

+7-6
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
developmentRegion = English;
196196
hasScannedForEncodings = 0;
197197
knownRegions = (
198+
English,
198199
en,
199200
);
200201
mainGroup = DA9EA74C1D0B679A0021F650;
@@ -315,7 +316,7 @@
315316
ONLY_ACTIVE_ARCH = YES;
316317
SDKROOT = iphoneos;
317318
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
318-
SWIFT_VERSION = 4.0;
319+
SWIFT_VERSION = 5.0;
319320
TARGETED_DEVICE_FAMILY = "1,2";
320321
VERSIONING_SYSTEM = "apple-generic";
321322
VERSION_INFO_PREFIX = "";
@@ -368,7 +369,7 @@
368369
MTL_ENABLE_DEBUG_INFO = NO;
369370
SDKROOT = iphoneos;
370371
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
371-
SWIFT_VERSION = 4.0;
372+
SWIFT_VERSION = 5.0;
372373
TARGETED_DEVICE_FAMILY = "1,2";
373374
VALIDATE_PRODUCT = YES;
374375
VERSIONING_SYSTEM = "apple-generic";
@@ -393,7 +394,7 @@
393394
PRODUCT_NAME = "$(TARGET_NAME)";
394395
SKIP_INSTALL = YES;
395396
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
396-
SWIFT_VERSION = 4.2;
397+
SWIFT_VERSION = 5.0;
397398
};
398399
name = Debug;
399400
};
@@ -413,7 +414,7 @@
413414
PRODUCT_BUNDLE_IDENTIFIER = com.tablekit.TableKit;
414415
PRODUCT_NAME = "$(TARGET_NAME)";
415416
SKIP_INSTALL = YES;
416-
SWIFT_VERSION = 4.2;
417+
SWIFT_VERSION = 5.0;
417418
};
418419
name = Release;
419420
};
@@ -425,7 +426,7 @@
425426
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
426427
PRODUCT_BUNDLE_IDENTIFIER = com.tablekit.TableKitTests;
427428
PRODUCT_NAME = "$(TARGET_NAME)";
428-
SWIFT_VERSION = 4.2;
429+
SWIFT_VERSION = 5.0;
429430
};
430431
name = Debug;
431432
};
@@ -437,7 +438,7 @@
437438
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
438439
PRODUCT_BUNDLE_IDENTIFIER = com.tablekit.TableKitTests;
439440
PRODUCT_NAME = "$(TARGET_NAME)";
440-
SWIFT_VERSION = 4.2;
441+
SWIFT_VERSION = 5.0;
441442
};
442443
name = Release;
443444
};

0 commit comments

Comments
 (0)