UNPKG

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