Compare commits

...

5 Commits
4.2.1 ... 4.2.3

Author SHA1 Message Date
John Estropia
e314db8f56 version bump 2017-11-09 19:45:21 +09:00
John Estropia
48d936d068 Fix regression for ARC bugfix (fixes #221) 2017-11-09 19:44:27 +09:00
John Estropia
f3816b9abf update for Xcode 9.1 2017-11-01 19:49:42 +09:00
John Estropia
21961780d4 force dynamic typing on DynamicObject.Type to mitigate optimization issues 2017-11-01 19:38:38 +09:00
John Rommel Estropia
305e2b61a0 fix compile errors for Xcode 9.1 beta 2017-11-01 19:37:53 +09:00
8 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "CoreStore" s.name = "CoreStore"
s.version = "4.2.1" s.version = "4.2.3"
s.license = "MIT" s.license = "MIT"
s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift" s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift"
s.homepage = "https://github.com/JohnEstropia/CoreStore" s.homepage = "https://github.com/JohnEstropia/CoreStore"

View File

@@ -42,7 +42,7 @@ import CoreData
*/ */
@available(OSX 10.12, *) @available(OSX 10.12, *)
@objc @objc
public protocol CSListObserver: class, AnyObject { public protocol CSListObserver: class {
/** /**
Handles processing just before a change to the observed list occurs Handles processing just before a change to the observed list occurs

View File

@@ -40,7 +40,7 @@ import CoreData
*/ */
@available(OSX 10.12, *) @available(OSX 10.12, *)
@objc @objc
public protocol CSObjectObserver: class, AnyObject { public protocol CSObjectObserver: class {
/** /**
Handles processing just before a change to the observed `object` occurs Handles processing just before a change to the observed `object` occurs

View File

@@ -33,7 +33,7 @@ import CoreData
Objective-C Foundation types that are natively supported by Core Data managed attributes all conform to `CoreDataNativeType`. Objective-C Foundation types that are natively supported by Core Data managed attributes all conform to `CoreDataNativeType`.
*/ */
@objc @objc
public protocol CoreDataNativeType: class, NSObjectProtocol, AnyObject {} public protocol CoreDataNativeType: class, NSObjectProtocol {}
// MARK: - NSNumber // MARK: - NSNumber

View File

@@ -235,9 +235,8 @@ CSWhere *_Nonnull CSWherePredicate(NSPredicate *_Nonnull predicate) CORESTORE_RE
- (void)setAffectedStores:(NSArray<NSPersistentStore *> *_Nullable)affectedStores { - (void)setAffectedStores:(NSArray<NSPersistentStore *> *_Nullable)affectedStores {
NSProcessInfo *processInfo = [NSProcessInfo processInfo]; if (NSFoundationVersionNumber < NSFoundationVersionNumber10_0
if ([processInfo isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){ 11, 0, 0 }] || [[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){ 11, 0, 0 }]) {
|| ![processInfo isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){ 10, 0, 0 }]) {
self.safeAffectedStores = affectedStores; self.safeAffectedStores = affectedStores;
[super setAffectedStores:affectedStores]; [super setAffectedStores:affectedStores];

View File

@@ -31,7 +31,7 @@ import Foundation
/** /**
`CoreStoreObjectiveCType`s are Objective-C accessible classes that represent CoreStore's Swift types. `CoreStoreObjectiveCType`s are Objective-C accessible classes that represent CoreStore's Swift types.
*/ */
public protocol CoreStoreObjectiveCType: class, AnyObject { public protocol CoreStoreObjectiveCType: class {
/** /**
The corresponding Swift type The corresponding Swift type

View File

@@ -121,7 +121,7 @@ extension CoreStoreObject {
return unsafeDowncast(coreStoreObject, to: self) return unsafeDowncast(coreStoreObject, to: self)
} }
func forceTypeCast<T: CoreStoreObject>(_ type: DynamicObject.Type, to: T.Type) -> T.Type { func forceTypeCast<T: CoreStoreObject>(_ type: AnyClass, to: T.Type) -> T.Type {
return type as! T.Type return type as! T.Type
} }

View File

@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>4.2.1</string> <string>4.2.3</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>