1 | require 'json'
|
2 | version = JSON.parse(File.read('package.json'))["version"]
|
3 |
|
4 | Pod::Spec.new do |s|
|
5 |
|
6 | s.name = "BVLinearGradient"
|
7 | s.version = version
|
8 | s.homepage = "https://github.com/brentvatne/react-native-linear-gradient"
|
9 | s.summary = "A <LinearGradient /> component for react-native"
|
10 | s.license = "MIT"
|
11 | s.author = { "Brent Vatne" => "brentvatne@gmail.com" }
|
12 | s.ios.deployment_target = '7.0'
|
13 | s.tvos.deployment_target = '9.0'
|
14 | s.source = { :git => "https://github.com/brentvatne/react-native-linear-gradient.git", :tag => "#{s.version}" }
|
15 | s.source_files = 'BVLinearGradient/*.{h,m}'
|
16 | s.preserve_paths = "**/*.js"
|
17 |
|
18 | s.dependency 'React'
|
19 |
|
20 | end
|