Merge pull request #79 from oblador/cocoapods-1.0-support

CocoaPods 1.0 support.
This commit is contained in:
Dmitry Gladkov 2016-05-12 17:01:34 +03:00
commit dfd5656467
1 changed files with 14 additions and 9 deletions

View File

@ -1,14 +1,19 @@
require 'json'
version = JSON.parse(File.read('package.json'))["version"]
Pod::Spec.new do |s|
s.name = "BVLinearGradient"
s.version = "1.5.6"
s.homepage = "https://github.com/brentvatne/react-native-linear-gradient"
s.summary = "A <LinearGradient /> component for react-native"
s.author = "Brent Vatne"
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/brentvatne/react-native-linear-gradient.git", :tag => "#{s.version}" }
s.source_files = 'BVLinearGradient/*.{h,m}'
s.preserve_paths = "**/*.js"
s.name = "BVLinearGradient"
s.version = version
s.homepage = "https://github.com/brentvatne/react-native-linear-gradient"
s.summary = "A <LinearGradient /> component for react-native"
s.license = "MIT"
s.author = { "Brent Vatne" => "brentvatne@gmail.com" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/brentvatne/react-native-linear-gradient.git", :tag => "#{s.version}" }
s.source_files = 'BVLinearGradient/*.{h,m}'
s.preserve_paths = "**/*.js"
s.dependency 'React'
end