Skip to content

Commit 6264a23

Browse files
authored
Merge branch 'master' into master
2 parents 0f107b7 + d4daadf commit 6264a23

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

Diff.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Diff"
3-
s.version = "0.5.1"
3+
s.version = "0.5.2"
44
s.summary = "The fastest Diff library in Swift. Includes UICollectionView/UITableView utils."
55
s.homepage = "https://github.com/wokalski/Diff.swift"
66
s.description = <<-DESC
@@ -16,7 +16,7 @@ This library generates differences between any two Collections (and Strings). It
1616
s.osx.exclude_files = "Sources/Diff+UIKit.swift"
1717
s.watchos.exclude_files = "Sources/Diff+UIKit.swift"
1818

19-
s.source = { :git => "https://github.com/wokalski/Diff.swift.git", :tag => "0.5.1" }
19+
s.source = { :git => "https://github.com/wokalski/Diff.swift.git", :tag => "0.5.2" }
2020

2121
s.source_files = "Sources"
2222
end

Diff.xcodeproj/project.pbxproj

+2
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@
295295
baseConfigurationReference = 900E03AF1DE7F1E80033A799 /* Deployment-Targets.xcconfig */;
296296
buildSettings = {
297297
ALWAYS_SEARCH_USER_PATHS = NO;
298+
APPLICATION_EXTENSION_API_ONLY = YES;
298299
CLANG_ANALYZER_NONNULL = YES;
299300
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
300301
CLANG_CXX_LIBRARY = "libc++";
@@ -347,6 +348,7 @@
347348
baseConfigurationReference = 900E03AF1DE7F1E80033A799 /* Deployment-Targets.xcconfig */;
348349
buildSettings = {
349350
ALWAYS_SEARCH_USER_PATHS = NO;
351+
APPLICATION_EXTENSION_API_ONLY = YES;
350352
CLANG_ANALYZER_NONNULL = YES;
351353
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
352354
CLANG_CXX_LIBRARY = "libc++";

Framework/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.5.1</string>
18+
<string>0.5.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Sources/Diff.swift

+6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
public protocol DiffProtocol: Collection, Sequence {
33

44
associatedtype DiffElementType
5+
6+
#if swift(>=3.1)
7+
// The typealias is causing crashes in SourceKitService under Swift 3.1 snapshots.
8+
#else
9+
// TODO: Verify that the typealias workaround is still required when Xcode 8.3 is released.
510
typealias Index = Int
11+
#endif
612

713
var elements: [DiffElementType] { get }
814
}

Sources/NestedExtendedDiff.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public struct NestedExtendedDiff: DiffProtocol {
2424
public let elements: [Element]
2525
}
2626

27-
typealias NestedElementEqualityChecker<T: Collection> = (T.Iterator.Element.Iterator.Element, T.Iterator.Element.Iterator.Element) -> Bool where T.Iterator.Element: Collection
27+
public typealias NestedElementEqualityChecker<T: Collection> = (T.Iterator.Element.Iterator.Element, T.Iterator.Element.Iterator.Element) -> Bool where T.Iterator.Element: Collection
2828

2929
public extension Collection
3030
where Iterator.Element: Collection {

0 commit comments

Comments
 (0)