-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathFirestack.podspec
More file actions
158 lines (136 loc) · 6.13 KB
/
Firestack.podspec
File metadata and controls
158 lines (136 loc) · 6.13 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
require 'json'
package = JSON.parse(File.read('package.json'))
version = package["version"]
repo = package['repository']
author = package['author']
all_pods = [
'FirebaseAnalytics', 'FirebaseAuth', 'FirebaseRemoteConfig',
'FirebaseDatabase', 'FirebaseStorage', 'FirebaseInstanceID',
'GoogleInterchangeUtilities', 'GoogleIPhoneUtilities',
'GoogleNetworkingUtilities', 'GoogleParsingUtilities',
'GoogleSymbolUtilities'
]
Pod::Spec.new do |s|
s.name = "Firestack"
s.version = version
s.summary = "Firestack makes working with Firebase v3 easy"
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Wanna integrate firebase into your app using React Native?
DESC
s.homepage = "http://fullstackreact.com"
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Licensing your code is important. See http://choosealicense.com for more info.
# CocoaPods will detect a license file if there is a named LICENSE*
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
#
s.license = { :type => "MIT", :file => "LICENSE" }
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the authors of the library, with email addresses. Email addresses
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
# accepts just a name if you'd rather not provide an email address.
#
# Specify a social_media_url where others can refer to, for example a twitter
# profile URL.
#
s.author = { "Ari Lerner" => author }
# Or just: s.author = "Ari Lerner"
# s.authors = { "Ari Lerner" => "arilerner@mac.com" }
# s.social_media_url = "http://twitter.com/Ari Lerner"
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target. You can optionally include the target after the platform.
# When using multiple platforms
s.ios.deployment_target = "8.0"
# s.osx.deployment_target = "10.7"
# s.watchos.deployment_target = "2.0"
# s.tvos.deployment_target = "9.0"
<<<<<<< Updated upstream
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the location from where the source should be retrieved.
# Supports git, hg, bzr, svn and HTTP.
#
=======
s.default_subspec = 'Core'
s.subspec 'Core' do |ss|
ss.dependency "React" ## Really don't want to do this...
>>>>>>> Stashed changes
# s.source = { :git => "https://github.com/fullstackreact/react-native-firestack.git", :tag => "#{s.version}" }
s.source = { :git => repo['url'], :tag => "feature/remoteConfig" }
# s.source_files = "ios/Firestack"#, "ios/Firestack/*.{h,m}"
<<<<<<< Updated upstream
s.source_files = 'ios/Firestack/**/*.{h,m}'
s.preserve_paths = 'README.md', 'package.json', '**/*.js'
# s.preserve_paths = "**/*.js", "ios/Firestack/Pods/**/*.h"
# s.preserve_paths = ["**/*.js", "ios/Firestack/Pods/**/*"]
=======
s.ios.frameworks = [
'CFNetwork', 'Security',
'SystemConfiguration',
].flatten,
s.ios.libraries = [
'icucore', 'c++',
]
end
>>>>>>> Stashed changes
[
'Firebase/Core',
'Firebase/Auth',
'Firebase/Storage',
'Firebase/Database',
'Firebase/RemoteConfig'
].each do |lib|
s.dependency lib
end
s.dependency 'React'
<<<<<<< Updated upstream
s.pod_target_xcconfig = {
'OTHER_LDFLAGS' => '$(inherited) -ObjC -lBOZO'
=======
s.xcconfig = {
'HEADER_SEARCH_PATHS' => [
"$(inherited)", "${SRCROOT}/../../React/**", "${SRCROOT}/../../node_modules/react-native/**",
all_pods.map {|pod| "${PODS_ROOT}/#{pod}/Frameworks/**" }.flatten
].flatten.join(' '),
# 'FRAMEWORK_SEARCH_PATHS' => [
# "$(inherited)",
# "${PODS_ROOT}/FirebaseAnalytics/Frameworks/frameworks",
# "${PODS_ROOT}/FirebaseAuth/Frameworks",
# "${PODS_ROOT}/FirebaseRemoteConfig/Frameworks",
# "${PODS_ROOT}/FirebaseDatabase/Frameworks",
# "${PODS_ROOT}/FirebaseStorage/Frameworks",
# "${PODS_ROOT}/FirebaseInstanceID/Frameworks/frameworks",
# "${PODS_ROOT}/FirebaseRemoteConfig/Frameworks",
# "${PODS_ROOT}/GoogleInterchangeUtilities/Frameworks",
# "${PODS_ROOT}/GoogleIPhoneUtilities/Frameworks",
# "${PODS_ROOT}/GoogleNetworkingUtilities/Frameworks",
# "${PODS_ROOT}/GoogleParsingUtilities/Frameworks",
# "${PODS_ROOT}/GoogleSymbolUtilities/Frameworks",
# ].join(' '),
# 'LIBRARY_SEARCH_PATHS' => [
# "$(inherited)",
# all_pods.map {|name| "${PODS_ROOT}/#{name}/**"}.flatten
# ].flatten.join(' '),
# 'LD_RUNPATH_SEARCH_PATHS' => '$(inherited) @executable_path/Frameworks',
'OTHER_LDFLAGS' => [
'$(inherited) -ObjC',
# "${PODS_ROOT}/FirebaseAnalytics/Frameworks/frameworks"
].flatten.join(' ')
>>>>>>> Stashed changes
}
# s.ios.vendored_library = 'libFirestack.a'
s.ios.framework = 'SystemConfiguration', 'CFNetwork', 'Security'
s.ios.libraries = 'c++'
# s.requires_arc = true
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"
end