Skip to content

Commit

Permalink
Merge pull request #725 from danielgindi/2.2.0-podspec-improvements
Browse files Browse the repository at this point in the history
Update podspec for realm and 2.2.0
  • Loading branch information
danielgindi committed Jan 31, 2016
2 parents a633c73 + 771c236 commit 7b0de2e
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 4 deletions.
13 changes: 12 additions & 1 deletion Charts.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,16 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "8.0"
s.tvos.deployment_target = "9.0"
s.source = { :git => "https://github.com/danielgindi/ios-charts.git", :tag => "v#{s.version}" }
s.source_files = "Classes", "Charts/Classes/**/*.swift"
s.default_subspec = "Core"

s.subspec "Core" do |ss|
ss.source_files = "Charts/Classes/**/*.swift"
ss.exclude_files = "Charts/Classes/**/{Realm}*.swift"
end

s.subspec "Realm" do |ss|
ss.source_files = "Charts/Classes/**/{Realm}*.swift"
ss.dependency "Charts/Core"
ss.dependency "RealmSwift", "~> 0.97"
end
end
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ source "https://rubygems.org"

gem "rake"
gem "xcpretty"
gem "cocoapods"
54 changes: 53 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,67 @@
GEM
remote: https://rubygems.org/
specs:
rake (10.4.2)
activesupport (4.2.5.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (0.9.1)
cocoapods (0.39.0)
activesupport (>= 4.0.2)
claide (~> 0.9.1)
cocoapods-core (= 0.39.0)
cocoapods-downloader (~> 0.9.3)
cocoapods-plugins (~> 0.4.2)
cocoapods-search (~> 0.1.0)
cocoapods-stats (~> 0.6.2)
cocoapods-trunk (~> 0.6.4)
cocoapods-try (~> 0.5.1)
colored (~> 1.2)
escape (~> 0.0.4)
molinillo (~> 0.4.0)
nap (~> 1.0)
xcodeproj (~> 0.28.2)
cocoapods-core (0.39.0)
activesupport (>= 4.0.2)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-downloader (0.9.3)
cocoapods-plugins (0.4.2)
nap
cocoapods-search (0.1.0)
cocoapods-stats (0.6.2)
cocoapods-trunk (0.6.4)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (0.5.1)
colored (1.2)
escape (0.0.4)
fuzzy_match (2.0.4)
i18n (0.7.0)
json (1.8.3)
minitest (5.8.4)
molinillo (0.4.1)
nap (1.1.0)
netrc (0.7.8)
rake (10.5.0)
rouge (1.10.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
xcodeproj (0.28.2)
activesupport (>= 3)
claide (~> 0.9.1)
colored (~> 1.2)
xcpretty (0.2.2)
rouge (~> 1.8)

PLATFORMS
ruby

DEPENDENCIES
cocoapods
rake
xcpretty

Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ If you want to compile for iOS 7:
## CocoaPods Install

Add `pod 'Charts'` to your Podfile. "Charts" is the name of the library.

For Realm support you can specify the subspec in your Podfile as follows:
```
pod 'Charts/Realm'
```

**Note:** ~~`pod 'ios-charts'`~~ is not the correct library, and refers to a different project by someone else.

## Carthage Install
Expand All @@ -70,7 +76,7 @@ In order to build the binaries for a new release, use `carthage build --no-skip-
If you like what you see here, and want to support the work being done in this repository, you could:
* Contribute code, issues and pull requests
* Let people know this library exists (spread the word!)
*
*
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=68UL6Y8KUPS96) (You can buy me a beer, or you can buy me dinner :-)

**Note:** The author of [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart) is the reason that this library exists, and is accepting [donations](https://github.com/PhilJay/MPAndroidChart#donations) on his page. He deserves them!
Expand Down Expand Up @@ -172,7 +178,7 @@ Or you can see the [**ChartsDemo**](https://github.com/danielgindi/ios-charts/tr
Special Thanks
=======

Goes to [@liuxuan30](https://github.com/liuxuan30), [@petester42](https://github.com/petester42) and [@AlBirdie](https://github.com/AlBirdie) for new features, bugfixes, and lots and lots of involvement in our open-sourced community! You guys are a huge help to all of those coming here with questions and issues, and I couldn't respond to all of those without you.
Goes to [@liuxuan30](https://github.com/liuxuan30), [@petester42](https://github.com/petester42) and [@AlBirdie](https://github.com/AlBirdie) for new features, bugfixes, and lots and lots of involvement in our open-sourced community! You guys are a huge help to all of those coming here with questions and issues, and I couldn't respond to all of those without you.

License
=======
Expand Down

0 comments on commit 7b0de2e

Please sign in to comment.