Carthage supportt

This commit is contained in:
John Rommel Estropia
2015-07-01 08:13:19 +09:00
parent caf5c570df
commit 8402ebcc0f
28 changed files with 487 additions and 4 deletions

BIN
Carthage/Build/iOS/CoreStore.framework/CoreStore generated vendored Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,164 @@
// Generated by Apple Swift version 1.2 (swiftlang-602.0.53.1 clang-602.0.53)
#pragma clang diagnostic push
#if defined(__has_include) && __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#include <objc/NSObject.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#if defined(__has_include) && __has_include(<uchar.h>)
# include <uchar.h>
#elif !defined(__cplusplus) || __cplusplus < 201103L
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
#endif
typedef struct _NSZone NSZone;
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if defined(__has_attribute) && __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if defined(__has_attribute) && __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type
#endif
#if __has_feature(nullability)
# define SWIFT_NULLABILITY(X) X
#else
# if !defined(__nonnull)
# define __nonnull
# endif
# if !defined(__nullable)
# define __nullable
# endif
# if !defined(__null_unspecified)
# define __null_unspecified
# endif
# define SWIFT_NULLABILITY(X)
#endif
#if defined(__has_feature) && __has_feature(modules)
@import Foundation;
@import CoreData;
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
@interface NSData (SWIFT_EXTENSION(CoreStore))
+ (NSAttributeType)attributeType;
+ (SWIFT_NULLABILITY(nullable) instancetype)fromResultObject:(id __nonnull)result;
@end
@interface NSDate (SWIFT_EXTENSION(CoreStore))
+ (NSAttributeType)attributeType;
+ (SWIFT_NULLABILITY(nullable) instancetype)fromResultObject:(id __nonnull)result;
@end
@interface NSDecimalNumber (SWIFT_EXTENSION(CoreStore))
+ (NSAttributeType)attributeType;
+ (SWIFT_NULLABILITY(nullable) instancetype)fromResultObject:(id __nonnull)result;
@end
@class NSString;
@interface NSDictionary (SWIFT_EXTENSION(CoreStore))
+ (NSArray * __nonnull)fromResultObjects:(NSArray * __nonnull)result;
@end
@interface NSError (SWIFT_EXTENSION(CoreStore))
@end
@interface NSManagedObject (SWIFT_EXTENSION(CoreStore))
- (id __nullable)accessValueForKVCKey:(NSString * __nonnull)KVCKey;
- (void)setValue:(id __nullable)value forKVCKey:(NSString * __nonnull)KVCKey;
@end
@interface NSManagedObject (SWIFT_EXTENSION(CoreStore))
@end
@interface NSManagedObjectContext (SWIFT_EXTENSION(CoreStore))
@end
@interface NSManagedObjectContext (SWIFT_EXTENSION(CoreStore))
@end
@interface NSManagedObjectContext (SWIFT_EXTENSION(CoreStore))
@end
@interface NSManagedObjectContext (SWIFT_EXTENSION(CoreStore))
@end
@interface NSManagedObjectID (SWIFT_EXTENSION(CoreStore))
+ (NSAttributeType)attributeType;
+ (SWIFT_NULLABILITY(nullable) instancetype)fromResultObject:(id __nonnull)result;
@end
@interface NSNumber (SWIFT_EXTENSION(CoreStore))
+ (NSAttributeType)attributeType;
+ (SWIFT_NULLABILITY(nullable) instancetype)fromResultObject:(id __nonnull)result;
@end
@interface NSString (SWIFT_EXTENSION(CoreStore))
+ (NSAttributeType)attributeType;
+ (SWIFT_NULLABILITY(nullable) instancetype)fromResultObject:(id __nonnull)result;
@end
#pragma clang diagnostic pop

View File

@@ -0,0 +1,30 @@
//
// CoreStore.h
// CoreStore
//
// Copyright (c) 2014 John Rommel Estropia
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
#import <CoreData/CoreData.h>
FOUNDATION_EXPORT double CoreStoreVersionNumber;
FOUNDATION_EXPORT const unsigned char CoreStoreVersionString[];

BIN
Carthage/Build/iOS/CoreStore.framework/Info.plist generated vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,10 @@
framework module CoreStore {
umbrella header "CoreStore.h"
export *
module * { export * }
}
module CoreStore.Swift {
header "CoreStore-Swift.h"
}

View File

@@ -0,0 +1,239 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Frameworks/libswiftCore.dylib</key>
<data>
Bxh6pAxLvEowGFOqeObeZEO/d/s=
</data>
<key>Frameworks/libswiftCoreGraphics.dylib</key>
<data>
LuYgZvQ55ZOAelbxSuDuU+9xQdA=
</data>
<key>Frameworks/libswiftCoreImage.dylib</key>
<data>
BJgOmIJ5oAky+wBB+8EMlqs3RtA=
</data>
<key>Frameworks/libswiftDarwin.dylib</key>
<data>
kNGgjmq/uZnrCPevOBo7OZwPDLY=
</data>
<key>Frameworks/libswiftDispatch.dylib</key>
<data>
Ej8g9CN7NY2sPSvc3sQk2QYpaAE=
</data>
<key>Frameworks/libswiftFoundation.dylib</key>
<data>
ibxOSmeuiboNtd+a/k0vtwZu/l0=
</data>
<key>Frameworks/libswiftObjectiveC.dylib</key>
<data>
ZR7Bctsxlu5Zjw8V4Basrm5oSLU=
</data>
<key>Frameworks/libswiftSecurity.dylib</key>
<data>
DDQy/uPA8H383+bIotmEaRhAt4Q=
</data>
<key>Frameworks/libswiftUIKit.dylib</key>
<data>
YjIyhtoVSrjXMu4dRos7u1SB+zI=
</data>
<key>Headers/CoreStore-Swift.h</key>
<data>
QE9jC7WSISNhAH5NCilawuY2tnA=
</data>
<key>Headers/CoreStore.h</key>
<data>
GX/hpwtdJPwJLJBc7TxXHRhhPzs=
</data>
<key>Info.plist</key>
<data>
xdsIEnRbbkJSysMp46DpodaaLbs=
</data>
<key>Modules/CoreStore.swiftmodule/arm.swiftdoc</key>
<data>
JK2mAT9oXVPd0UT630K8YHslluY=
</data>
<key>Modules/CoreStore.swiftmodule/arm.swiftmodule</key>
<data>
zGYm7riHttlk/0172YWBuxRycj4=
</data>
<key>Modules/CoreStore.swiftmodule/arm64.swiftdoc</key>
<data>
+exhD17yctNjNqUQ/ghD0yuHnQg=
</data>
<key>Modules/CoreStore.swiftmodule/arm64.swiftmodule</key>
<data>
gDky+h2d8WN+Lq0SMIUUOCeLtMA=
</data>
<key>Modules/module.modulemap</key>
<data>
J41r12Y4683/INrPJs5823kVbXE=
</data>
</dict>
<key>files2</key>
<dict>
<key>Frameworks/libswiftCore.dylib</key>
<data>
Bxh6pAxLvEowGFOqeObeZEO/d/s=
</data>
<key>Frameworks/libswiftCoreGraphics.dylib</key>
<data>
LuYgZvQ55ZOAelbxSuDuU+9xQdA=
</data>
<key>Frameworks/libswiftCoreImage.dylib</key>
<data>
BJgOmIJ5oAky+wBB+8EMlqs3RtA=
</data>
<key>Frameworks/libswiftDarwin.dylib</key>
<data>
kNGgjmq/uZnrCPevOBo7OZwPDLY=
</data>
<key>Frameworks/libswiftDispatch.dylib</key>
<data>
Ej8g9CN7NY2sPSvc3sQk2QYpaAE=
</data>
<key>Frameworks/libswiftFoundation.dylib</key>
<data>
ibxOSmeuiboNtd+a/k0vtwZu/l0=
</data>
<key>Frameworks/libswiftObjectiveC.dylib</key>
<data>
ZR7Bctsxlu5Zjw8V4Basrm5oSLU=
</data>
<key>Frameworks/libswiftSecurity.dylib</key>
<data>
DDQy/uPA8H383+bIotmEaRhAt4Q=
</data>
<key>Frameworks/libswiftUIKit.dylib</key>
<data>
YjIyhtoVSrjXMu4dRos7u1SB+zI=
</data>
<key>Headers/CoreStore-Swift.h</key>
<data>
QE9jC7WSISNhAH5NCilawuY2tnA=
</data>
<key>Headers/CoreStore.h</key>
<data>
GX/hpwtdJPwJLJBc7TxXHRhhPzs=
</data>
<key>Modules/CoreStore.swiftmodule/arm.swiftdoc</key>
<data>
JK2mAT9oXVPd0UT630K8YHslluY=
</data>
<key>Modules/CoreStore.swiftmodule/arm.swiftmodule</key>
<data>
zGYm7riHttlk/0172YWBuxRycj4=
</data>
<key>Modules/CoreStore.swiftmodule/arm64.swiftdoc</key>
<data>
+exhD17yctNjNqUQ/ghD0yuHnQg=
</data>
<key>Modules/CoreStore.swiftmodule/arm64.swiftmodule</key>
<data>
gDky+h2d8WN+Lq0SMIUUOCeLtMA=
</data>
<key>Modules/module.modulemap</key>
<data>
J41r12Y4683/INrPJs5823kVbXE=
</data>
</dict>
<key>rules</key>
<dict>
<key>^</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>

View File

@@ -4,7 +4,7 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>CoreStore.xcscheme</key>
<key>CoreStore.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>

View File

@@ -7,7 +7,7 @@
<key>IDESourceControlProjectIdentifier</key>
<string>B6855E48-4B19-4321-B1C7-CB2706E12777</string>
<key>IDESourceControlProjectName</key>
<string>CoreStoreDemo</string>
<string>project</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>4B60F1BCB491FF717C56441AE7783C74F417BE48</key>
@@ -16,13 +16,13 @@
<string>github.com:JohnEstropia/GCDKit.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>CoreStoreDemo/CoreStoreDemo.xcodeproj</string>
<string>CoreStoreDemo/CoreStoreDemo.xcodeproj/project.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>4B60F1BCB491FF717C56441AE7783C74F417BE48</key>
<string>../../..</string>
<key>8B2E522D57154DFA93A06982C36315ECBEA4FA97</key>
<string>../../../Libraries/GCDKit</string>
<string>../../..Libraries/GCDKit/</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>github.com:JohnEstropia/CoreStore.git</string>

View File

@@ -2,4 +2,38 @@
<Bucket
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../CoreStore/Migrating/DataStack+Migration.swift"
timestampString = "457102815.005196"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "80"
endingLineNumber = "80"
landmarkName = "needsMigrationForSQLiteStore(fileURL:configuration:)"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../CoreStore/Migrating/DataStack+Migration.swift"
timestampString = "457102823.242858"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "165"
endingLineNumber = "165"
landmarkName = "upgradeSQLiteStoreIfNeeded(fileURL:configuration:completion:)"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

View File

@@ -2,6 +2,7 @@
[![Version](https://img.shields.io/cocoapods/v/CoreStore.svg?style=flat)](http://cocoadocs.org/docsets/CoreStore)
[![Platform](https://img.shields.io/cocoapods/p/CoreStore.svg?style=flat)](http://cocoadocs.org/docsets/CoreStore)
[![License](https://img.shields.io/cocoapods/l/CoreStore.svg?style=flat)](https://raw.githubusercontent.com/JohnEstropia/CoreStore/master/LICENSE)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
Simple, elegant, and smart Core Data programming with Swift
(Swift, iOS 8+)
@@ -757,6 +758,11 @@ pod 'CoreStore'
```
This installs CoreStore as a framework. Declare `import CoreStore` in your swift file to use the library.
### Install with Carthage
```
github "JohnEstropia/CoreStore" >= 0.2.0
```
### Install as Git Submodule
```
git submodule add https://github.com/JohnEstropia/CoreStore.git <destination directory>