forked from magicalpanda/MagicalRecord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MagicalRecord.podspec
65 lines (60 loc) · 1.93 KB
/
MagicalRecord.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Pod::Spec.new do |s|
s.name = 'MagicalRecord'
s.version = '2.3.0-beta.3'
s.license = 'MIT'
s.summary = 'Super Awesome Easy Fetching for Core Data 1!!!11!!!!1!.'
s.homepage = 'http://github.com/magicalpanda/MagicalRecord'
s.author = { 'Saul Mora' => '[email protected]' }
s.source = { :git => 'https://github.com/magicalpanda/MagicalRecord.git', :tag => "v#{s.version}" }
s.description = 'Handy fetching, threading and data import helpers to make Core Data a little easier to use.'
s.requires_arc = true
s.default_subspec = 'Core'
s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.8'
s.subspec "Core" do |sp|
sp.framework = 'CoreData'
sp.header_dir = 'MagicalRecord'
sp.source_files = 'MagicalRecord/**/*.{h,m}'
sp.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#import "CoreData+MagicalRecord.h"
EOS
end
s.subspec "Core+Logging" do |sp|
sp.framework = 'CoreData'
sp.header_dir = 'MagicalRecord'
sp.source_files = 'MagicalRecord/**/*.{h,m}'
sp.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#if defined(COCOAPODS_POD_AVAILABLE_CocoaLumberjack)
#import "DDLog.h"
#endif
#define MR_LOGGING_ENABLED 1
#import "CoreData+MagicalRecord.h"
EOS
end
s.subspec "Shorthand" do |sp|
sp.framework = 'CoreData'
sp.header_dir = 'MagicalRecord'
sp.source_files = 'MagicalRecord/**/*.{h,m}'
sp.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#define MR_SHORTHAND 1
#import "CoreData+MagicalRecord.h"
EOS
end
s.subspec "Shorthand+Logging" do |sp|
sp.framework = 'CoreData'
sp.header_dir = 'MagicalRecord'
sp.source_files = 'MagicalRecord/**/*.{h,m}'
sp.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#if defined(COCOAPODS_POD_AVAILABLE_CocoaLumberjack)
#import "DDLog.h"
#endif
#define MR_LOGGING_ENABLED 1
#define MR_SHORTHAND 1
#import "CoreData+MagicalRecord.h"
EOS
end
end