forked from newsuk/times-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimesReactIOS.podspec
53 lines (40 loc) · 1.65 KB
/
TimesReactIOS.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# coding: utf-8
require 'json'
package = JSON.parse(File.read("./ios-app/package.json"))
podspec_version = package["version"]
react_native_version = package["dependencies"]["react-native"]
print "podspec_version #{podspec_version}...\n"
print "react_native_version #{react_native_version}...\n"
Pod::Spec.new do |s|
s.name = "TimesReactIOS"
s.version = podspec_version
s.summary = "Times iOS React components"
s.description = "All the things for Times iOS React components including dependancies"
s.homepage = "https://www.news.co.uk"
s.license = { type: 'MIT', file: 'LICENSE' }
s.author = "News UK"
s.platform = :ios
s.source = { :git => 'https://github.com/newsuk/times-xnative.git', :tag => '@thetimes/ios-app@0.0.1'}
#s.source = { :git => 'https://github.com/facebook/react-native.git', :tag => "v0.55.4" }
s.requires_arc = true
s.ios.deployment_target = '9.0'
s.swift_version = '3.0'
#s.resources = "./ios-app/assets/js/index.ios.bundle"
#s.resource_bundles = {'TimesReactIOSBundle' => './ios-app/assets/js/index.ios.bundle'}
# React is split into a set of subspecs, these are the essentials
s.dependency 'React/Core'
s.dependency 'React/CxxBridge'
s.dependency 'React/RCTAnimation'
s.dependency 'React/RCTImage'
s.dependency 'React/RCTLinkingIOS'
s.dependency 'React/RCTNetwork'
s.dependency 'React/RCTText'
s.dependency 'React/RCTWebSocket'
s.dependency 'React/DevSupport'
s.dependency 'React/ART'
# React's dependencies
s.dependency 'yoga', "#{react_native_version}.React"
s.dependency 'DoubleConversion'
s.dependency 'Folly'
s.dependency 'glog'
end