fixed platform dependencies

This commit is contained in:
John Rommel Estropia
2016-06-17 01:24:19 +09:00
parent 76a2bc1da2
commit 2dc09289bf
33 changed files with 662 additions and 48 deletions

View File

@@ -27,9 +27,10 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSCoreStore
@available(OSX, unavailable)
public extension CSCoreStore {
/**
@@ -114,3 +115,5 @@ public extension CSCoreStore {
)
}
}
#endif

View File

@@ -27,9 +27,10 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSDataStack
@available(OSX, unavailable)
public extension CSDataStack {
/**
@@ -181,3 +182,5 @@ public extension CSDataStack {
)
}
}
#endif

View File

@@ -27,6 +27,8 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSListMonitor
/**
@@ -34,7 +36,6 @@ import CoreData
- SeeAlso: `ListMonitor`
*/
@available(OSX, unavailable)
@objc
public final class CSListMonitor: NSObject, CoreStoreObjectiveCType {
@@ -568,3 +569,5 @@ extension ListMonitor: CoreStoreSwiftType {
return CSListMonitor(self)
}
}
#endif

View File

@@ -27,6 +27,8 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSListObserver
/**
@@ -40,7 +42,6 @@ import CoreData
- SeeAlso: `ListObserver`
*/
@available(OSX, unavailable)
@objc
public protocol CSListObserver: class, AnyObject {
@@ -91,7 +92,6 @@ public protocol CSListObserver: class, AnyObject {
- SeeAlso: `ListObjectObserver`
*/
@available(OSX, unavailable)
@objc
public protocol CSListObjectObserver: CSListObserver {
@@ -152,7 +152,6 @@ public protocol CSListObjectObserver: CSListObserver {
- SeeAlso: `ListSectionObserver`
*/
@available(OSX, unavailable)
@objc
public protocol CSListSectionObserver: CSListObjectObserver {
@@ -176,3 +175,5 @@ public protocol CSListSectionObserver: CSListObjectObserver {
@objc
optional func listMonitor(monitor: CSListMonitor, didDeleteSection sectionInfo: NSFetchedResultsSectionInfo, fromSectionIndex sectionIndex: Int)
}
#endif

View File

@@ -27,6 +27,8 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSObjectMonitor
/**
@@ -34,7 +36,6 @@ import CoreData
- SeeAlso: `ObjectMonitor`
*/
@available(OSX, unavailable)
@objc
public final class CSObjectMonitor: NSObject, CoreStoreObjectiveCType {
@@ -146,3 +147,5 @@ extension ObjectMonitor: CoreStoreSwiftType {
return CSObjectMonitor(self)
}
}
#endif

View File

@@ -27,6 +27,8 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSObjectObserver
/**
@@ -38,7 +40,6 @@ import CoreData
- SeeAlso: `ObjectObserver`
*/
@available(OSX, unavailable)
@objc
public protocol CSObjectObserver: class, AnyObject {
@@ -70,3 +71,5 @@ public protocol CSObjectObserver: class, AnyObject {
@objc
optional func objectMonitor(monitor: CSObjectMonitor, didDeleteObject object: AnyObject)
}
#endif

View File

@@ -27,6 +27,8 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - CSSectionBy
/**
@@ -34,7 +36,6 @@ import CoreData
- SeeAlso: `SectionBy`
*/
@available(OSX, unavailable)
@objc
public final class CSSectionBy: NSObject, CoreStoreObjectiveCType {
@@ -92,3 +93,5 @@ extension SectionBy: CoreStoreSwiftType {
public typealias ObjectiveCType = CSSectionBy
}
#endif

View File

@@ -27,9 +27,10 @@ import Foundation
import CoreData
#if os(iOS) || os(watchOS) || os(tvOS)
// MARK: - NSFetchedResultsController
@available(OSX, unavailable)
public extension NSFetchedResultsController {
/**
@@ -61,3 +62,5 @@ public extension NSFetchedResultsController {
)
}
}
#endif