Skip to content

Commit 81fc4e5

Browse files
committed
Revert "Merge pull request #288 from escfrya/support-watchos"
This reverts commit 472e8f5, reversing changes made to ec9f3af.
1 parent 70b8d60 commit 81fc4e5

File tree

9 files changed

+6
-238
lines changed

9 files changed

+6
-238
lines changed

Cache.podspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ Pod::Spec.new do |s|
1111
s.ios.deployment_target = '11.0'
1212
s.osx.deployment_target = '10.12'
1313
s.tvos.deployment_target = '11.0'
14-
s.watchos.deployment_target = '5.0'
1514

1615
s.requires_arc = true
1716
s.ios.source_files = 'Source/{iOS,Shared}/**/*'
1817
s.osx.source_files = 'Source/{Mac,Shared}/**/*'
1918
s.tvos.source_files = 'Source/{iOS,Shared}/**/*'
20-
s.watchos.source_files = 'Source/{iOS,Shared}/**/*'
2119
s.resources = 'Source/PrivacyInfo.xcprivacy'
2220

2321
s.frameworks = 'Foundation'

Cache.xcodeproj/project.pbxproj

Lines changed: 0 additions & 208 deletions
Large diffs are not rendered by default.

Source/Shared/Configuration/DiskConfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public struct DiskConfig {
1010
public let maxSize: UInt
1111
/// A folder to store the disk cache contents. Defaults to a prefixed directory in Caches if nil
1212
public let directory: URL?
13-
#if os(iOS) || os(tvOS) || os(watchOS)
13+
#if os(iOS) || os(tvOS)
1414
/// Data protection is used to store files in an encrypted format on disk and to decrypt them on demand.
1515
/// Support only on iOS and tvOS.
1616
public let protectionType: FileProtectionType?

Source/Shared/Library/ImageWrapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
#if os(iOS) || os(tvOS) || os(macOS) || os(watchOS)
3+
#if os(iOS) || os(tvOS) || os(macOS)
44
public struct ImageWrapper: Codable {
55
public let image: Image
66

Source/Shared/Library/TransformerFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class TransformerFactory {
99
return Transformer<Data>(toData: toData, fromData: fromData)
1010
}
1111

12-
#if os(iOS) || os(tvOS) || os(macOS) || os(watchOS) || os(visionOS)
12+
#if os(iOS) || os(tvOS) || os(macOS) || os(visionOS)
1313
public static func forImage() -> Transformer<Image> {
1414
let toData: (Image) throws -> Data = { image in
1515
return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)

Source/Shared/Library/Types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
1+
#if os(iOS) || os(tvOS) || os(visionOS)
22
import UIKit
33
public typealias Image = UIImage
44
#elseif os(watchOS)

Source/Shared/Storage/DiskStorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final public class DiskStorage<Key: Hashable, Value> {
4040
try createDirectory()
4141

4242
// protection
43-
#if os(iOS) || os(tvOS) || os(watchOS)
43+
#if os(iOS) || os(tvOS)
4444
if let protectionType = config.protectionType {
4545
try setDirectoryAttributes([
4646
FileAttributeKey.protectionKey: protectionType

Source/Shared/Storage/Storage+Transform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public extension Storage {
77
}
88

99

10-
#if os(iOS) || os(tvOS) || os(macOS) || os(watchOS)
10+
#if os(iOS) || os(tvOS) || os(macOS)
1111
func transformImage() -> Storage<Key, Image> {
1212
let storage = transform(transformer: TransformerFactory.forImage())
1313
return storage

SupportFiles/watchOS/Info.plist

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)