UNPKG

2.61 kBPlain TextView Raw
1# coding: utf-8
2# Copyright (c) Facebook, Inc. and its affiliates.
3#
4# This source code is licensed under the MIT license found in the
5# LICENSE file in the root directory of this source tree.
6
7require "json"
8
9package = JSON.parse(File.read(File.join(__dir__, "package.json")))
10version = package['version']
11
12source = { :git => 'https://github.com/facebook/react-native.git' }
13if version == '1000.0.0'
14 # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
15 source[:commit] = `git rev-parse HEAD`.strip
16else
17 source[:tag] = "v#{version}"
18end
19
20Pod::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
57end