Skip to content

Commit 295a187

Browse files
committed
Fixed deps.
1 parent 7858f09 commit 295a187

File tree

9 files changed

+60
-17
lines changed

9 files changed

+60
-17
lines changed

Example App/NativeUIKit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example App/NativeUIKit.xcodeproj/xcshareddata/xcschemes/watchOS Example.xcscheme

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,33 +54,46 @@
5454
debugDocumentVersioning = "YES"
5555
debugServiceExtension = "internal"
5656
allowLocationSimulation = "YES">
57-
<BuildableProductRunnable
58-
runnableDebuggingMode = "0">
57+
<RemoteRunnable
58+
runnableDebuggingMode = "2"
59+
BundleIdentifier = "com.apple.Carousel"
60+
RemotePath = "/(null)">
5961
<BuildableReference
6062
BuildableIdentifier = "primary"
6163
BlueprintIdentifier = "F4C33E2F26C932C8001A28B1"
6264
BuildableName = "watchOS Example.app"
6365
BlueprintName = "watchOS Example"
6466
ReferencedContainer = "container:NativeUIKit.xcodeproj">
6567
</BuildableReference>
66-
</BuildableProductRunnable>
68+
</RemoteRunnable>
6769
</LaunchAction>
6870
<ProfileAction
6971
buildConfiguration = "Release"
7072
shouldUseLaunchSchemeArgsEnv = "YES"
7173
savedToolIdentifier = ""
7274
useCustomWorkingDirectory = "NO"
7375
debugDocumentVersioning = "YES">
74-
<BuildableProductRunnable
75-
runnableDebuggingMode = "0">
76+
<RemoteRunnable
77+
runnableDebuggingMode = "2"
78+
BundleIdentifier = "com.apple.Carousel"
79+
RemotePath = "/(null)">
7680
<BuildableReference
7781
BuildableIdentifier = "primary"
7882
BlueprintIdentifier = "F4C33E2F26C932C8001A28B1"
7983
BuildableName = "watchOS Example.app"
8084
BlueprintName = "watchOS Example"
8185
ReferencedContainer = "container:NativeUIKit.xcodeproj">
8286
</BuildableReference>
83-
</BuildableProductRunnable>
87+
</RemoteRunnable>
88+
<MacroExpansion>
89+
<BuildableReference
90+
BuildableIdentifier = "primary"
91+
BlueprintIdentifier = "F4C33E2F26C932C8001A28B1"
92+
BuildableName = "watchOS Example.app"
93+
BlueprintName = "watchOS Example"
94+
ReferencedContainer = "container:NativeUIKit.xcodeproj">
95+
</BuildableReference>
96+
</MacroExpansion>
8497
</ProfileAction>
8598
<AnalyzeAction
8699
buildConfiguration = "Debug">

NativeUIKit.podspec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'NativeUIKit'
4-
s.version = '1.3.2'
4+
s.version = '1.3.5'
55
s.summary = 'Mimicrated views and controls to native Apple appearance.'
66
s.homepage = 'https://github.com/ivanvorobei/NativeUIKit'
77
s.source = { :git => 'https://github.com/ivanvorobei/NativeUIKit.git', :tag => s.version }
@@ -10,10 +10,11 @@ Pod::Spec.new do |s|
1010

1111
s.swift_version = '5.1'
1212
s.ios.deployment_target = '12.0'
13+
s.tvos.deployment_target = '12.0'
1314

1415
s.source_files = 'Sources/NativeUIKit/**/*.swift'
15-
s.dependency 'SparrowKit', '~> 3.4.8'
16+
s.dependency 'SparrowKit', '~> 3.5.4'
1617
s.dependency 'SPPerspective', '~> 1.4.1'
17-
s.dependency 'SPDiffable', '~> 2.2.0'
18+
s.dependency 'SPDiffable', '~> 4.0.5'
1819

1920
end

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import PackageDescription
55
let package = Package(
66
name: "NativeUIKit",
77
platforms: [
8-
.iOS(.v12), .tvOS(.v12), .watchOS(.v6)
8+
.iOS(.v12),
9+
.tvOS(.v12),
10+
.watchOS(.v6)
911
],
1012
products: [
1113
.library(
@@ -23,7 +25,7 @@ let package = Package(
2325
),
2426
.package(
2527
name: "SPDiffable",
26-
url: "https://github.com/ivanvorobei/SPDiffable", .upToNextMajor(from: "4.0.1")
28+
url: "https://github.com/ivanvorobei/SPDiffable", .upToNextMajor(from: "4.0.6")
2729
)
2830
],
2931
targets: [

Sources/NativeUIKit/Collection/LargeHeader/NativeLargeHeaderCollectionView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
// SOFTWARE.
2121

22+
#if canImport(UIKit) && (os(iOS))
2223
import UIKit
2324
import SparrowKit
2425

@@ -50,3 +51,4 @@ open class NativeLargeHeaderCollectionView: SPCollectionReusableView {
5051
return .init(width: collectionView.frame.width, height: view.frame.height)
5152
}
5253
}
54+
#endif

Sources/NativeUIKit/Collection/LargeHeader/SPDiffableCollectionHeaderFooterProvider+LargeHeader.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
import UIKit
2323
import SPDiffable
2424

25-
@available(iOS 13.0, *)
25+
@available(iOS 13.0, tvOS 13.0, *)
2626
extension SPDiffableCollectionDataSource.HeaderFooterProvider {
2727

28+
#if (os(iOS))
2829
public static var largeHeader: SPDiffableCollectionDataSource.HeaderFooterProvider {
2930
return SPDiffableCollectionDataSource.HeaderFooterProvider.init { collectionView, kind, indexPath, item in
3031
guard let header = item as? NativeLargeHeaderItem else { return nil }
@@ -33,4 +34,5 @@ extension SPDiffableCollectionDataSource.HeaderFooterProvider {
3334
return view
3435
}
3536
}
37+
#endif
3638
}

Sources/NativeUIKit/Table/LargeHeader/NativeLargeHeaderItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
// SOFTWARE.
2121

22-
#if canImport(UIKit) && (os(iOS))
22+
#if canImport(UIKit) && (os(iOS) || os(tvOS))
2323
import UIKit
2424
import SPDiffable
2525

Sources/NativeUIKit/Table/LargeHeader/NativeLargeHeaderViewExtension.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
// The MIT License (MIT)
2+
// Copyright © 2021 Ivan Vorobei ([email protected])
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
5+
// of this software and associated documentation files (the "Software"), to deal
6+
// in the Software without restriction, including without limitation the rights
7+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
// copies of the Software, and to permit persons to whom the Software is
9+
// furnished to do so, subject to the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included in all
12+
// copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
// SOFTWARE.
21+
22+
#if canImport(UIKit) && (os(iOS))
123
import UIKit
224

325
extension NativeLargeHeaderView {
@@ -12,3 +34,4 @@ extension NativeLargeHeaderView {
1234
}
1335
}
1436
}
37+
#endif

0 commit comments

Comments
 (0)