Skip to content

Commit

Permalink
Updatded Podspec for using subspec for logging with CocoaLumberjack
Browse files Browse the repository at this point in the history
  • Loading branch information
melbic committed Sep 30, 2015
1 parent 7389994 commit 62be530
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
7 changes: 7 additions & 0 deletions Docs/Installing-MagicalRecord.md
Expand Up @@ -20,9 +20,16 @@ One of the easiest ways to integrate MagicalRecord in your project is to use [Co

1. Add the following line to your `Podfile`:

a. Plain

````ruby
pod "MagicalRecord"
````
b. With CocoaLumberjack as Logger

````ruby
pod "MagicalRecord/CocoaLumberjack"
````

2. In your project directory, run `pod update`
3. You should now be able to add `#import <MagicalRecord/MagicalRecord.h>` to any of your target's source files and begin using MagicalRecord!
Expand Down
24 changes: 16 additions & 8 deletions MagicalRecord.podspec
@@ -1,4 +1,5 @@
Pod::Spec.new do |s|
s.default_subspec = 'Core'
s.name = 'MagicalRecord'
s.version = '2.3.0'
s.license = 'MIT'
Expand All @@ -10,13 +11,20 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.ios.deployment_target = '6.1'
s.osx.deployment_target = '10.8'
s.weak_framework = 'CocoaLumberJack'
s.framework = 'CoreData'
s.header_dir = 'MagicalRecord'
s.source_files = 'MagicalRecord/**/*.{h,m}'
s.prefix_header_contents = <<-EOS
#import <CoreData/CoreData.h>
#import <MagicalRecord/MagicalRecord.h>
EOS

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 <MagicalRecord/MagicalRecord.h>
EOS
end

s.subspec 'CocoaLumberjack' do |sp|
sp.dependency 'MagicalRecord/Core'
sp.dependency 'CocoaLumberjack', '~> 2.0'
end

end

0 comments on commit 62be530

Please sign in to comment.