1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | require "json"
|
8 |
|
9 | package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
10 | version = package['version']
|
11 |
|
12 | source = { :git => 'https://github.com/facebook/react-native.git' }
|
13 | if version == '1000.0.0'
|
14 |
|
15 | source[:commit] = `git rev-parse HEAD`.strip
|
16 | else
|
17 | source[:tag] = "v#{version}"
|
18 | end
|
19 |
|
20 | Pod::Spec.new do |s|
|
21 | s.name = "React"
|
22 | s.version = version
|
23 | s.summary = package["description"]
|
24 | s.description = <<-DESC
|
25 | React Native apps are built using the React JS
|
26 | framework, and render directly to native UIKit
|
27 | elements using a fully asynchronous architecture.
|
28 | There is no browser and no HTML. We have picked what
|
29 | we think is the best set of features from these and
|
30 | other technologies to build what we hope to become
|
31 | the best product development framework available,
|
32 | with an emphasis on iteration speed, developer
|
33 | delight, continuity of technology, and absolutely
|
34 | beautiful and fast products with no compromises in
|
35 | quality or capability.
|
36 | DESC
|
37 | s.homepage = "http://facebook.github.io/react-native/"
|
38 | s.license = package["license"]
|
39 | s.author = "Facebook, Inc. and its affiliates"
|
40 | s.platforms = { :ios => "9.0", :tvos => "9.2" }
|
41 | s.source = source
|
42 | s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
43 | s.cocoapods_version = ">= 1.2.0"
|
44 |
|
45 | s.dependency "React-Core", version
|
46 | s.dependency "React-Core/DevSupport", version
|
47 | s.dependency "React-Core/RCTWebSocket", version
|
48 | s.dependency "React-RCTActionSheet", version
|
49 | s.dependency "React-RCTAnimation", version
|
50 | s.dependency "React-RCTBlob", version
|
51 | s.dependency "React-RCTImage", version
|
52 | s.dependency "React-RCTLinking", version
|
53 | s.dependency "React-RCTNetwork", version
|
54 | s.dependency "React-RCTSettings", version
|
55 | s.dependency "React-RCTText", version
|
56 | s.dependency "React-RCTVibration", version
|
57 | end
|