Skip to content

Commit 87d4664

Browse files
committed
Including Pod targets
1 parent 075e560 commit 87d4664

File tree

122 files changed

+1260
-562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+1260
-562
lines changed

Firestack.podspec

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
require 'json'
2+
package = JSON.parse(File.read('package.json'))
3+
version = package["version"]
4+
repo = package['repository']
5+
author = package['author']
6+
7+
default_header_search_paths = ["$(inherited)", "${SRCROOT}/../../React/**", "${SRCROOT}/../node_modules/react-native/**"]
8+
9+
Pod::Spec.new do |s|
10+
11+
s.name = "Firestack"
12+
s.version = version
13+
s.summary = "Firestack makes working with Firebase v3 easy"
14+
s.description = <<-DESC
15+
Wanna integrate firebase into your app using React Native?
16+
DESC
17+
18+
s.homepage = "http://fullstackreact.com"
19+
s.license = { :type => "MIT", :file => "LICENSE" }
20+
s.author = { "Ari Lerner" => author }
21+
s.social_media_url = 'http://twitter.com/fullstackio'
22+
23+
# When using multiple platforms
24+
s.ios.deployment_target = "8.0"
25+
# s.osx.deployment_target = "10.7"
26+
# s.watchos.deployment_target = "2.0"
27+
# s.tvos.deployment_target = "9.0"
28+
29+
s.source = { :git => repo['url'], :tag => "v#{version}" }
30+
s.public_header_files = "ios/Firestack/*.h", "Pods/**/*.h"
31+
32+
s.source_files = 'ios/Firestack/*.{h,m}'
33+
s.preserve_paths = 'README.md', 'package.json', '*.js'
34+
35+
s.default_subspec = 'Core'
36+
37+
s.subspec 'Core' do |ss|
38+
[
39+
'Firebase/Core',
40+
'Firebase/Auth',
41+
'Firebase/Storage',
42+
'Firebase/Database',
43+
'Firebase/RemoteConfig'
44+
].each do |lib|
45+
ss.dependency lib
46+
end
47+
48+
49+
ss.xcconfig = {
50+
'HEADER_SEARCH_PATHS' => default_header_search_paths.join(' ')
51+
}
52+
53+
ss.user_target_xcconfig = {
54+
'HEADER_SEARCH_PATHS' => default_header_search_paths.join(' '),
55+
'FRAMEWORK_SEARCH_PATHS' => default_header_search_paths.join(' ')
56+
}
57+
end
58+
59+
s.subspec 'Test' do |ss|
60+
ss.dependency 'Firestack/Core'
61+
# ss.dependency 'React'
62+
63+
ss.xcconfig = {
64+
'HEADER_SEARCH_PATHS' => [
65+
default_header_search_paths,
66+
"$(SRCROOT)/../../react-native/React/**",
67+
].flatten.join(' ')
68+
}
69+
end
70+
71+
# s.ios.framework = [
72+
# 'SystemConfiguration', 'CFNetwork', 'Security', 'UIKit',
73+
# 'CoreFoundation', 'StoreKit', 'MobileCoreServices',
74+
# ]
75+
76+
s.requires_arc = true
77+
end

ios/Firestack.xcodeproj/project.pbxproj

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
A4830B59CA0CDCC7AC616D7C /* Pods_Firestack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F73732AB87B93D6C70882AD0 /* Pods_Firestack.framework */; };
1110
D950369E1D19C77400F7094D /* Firestack.m in Sources */ = {isa = PBXBuildFile; fileRef = D950369D1D19C77400F7094D /* Firestack.m */; };
12-
D9FF4BF31D19F5FF00238046 /* Pods_Firestack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D95036B81D19C90300F7094D /* Pods_Firestack.framework */; };
11+
DACB4AE6FDDA39D46068EA78 /* libPods-Firestack.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C5D39B93A6385579DA9EA2B /* libPods-Firestack.a */; };
1312
/* End PBXBuildFile section */
1413

1514
/* Begin PBXContainerItemProxy section */
@@ -37,21 +36,19 @@
3736
/* Begin PBXFileReference section */
3837
134814201AA4EA6300B7C361 /* libFirestack.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libFirestack.a; sourceTree = BUILT_PRODUCTS_DIR; };
3938
612D3268D15D0E9231997758 /* Pods-Firestack.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Firestack.release.xcconfig"; path = "Pods/Target Support Files/Pods-Firestack/Pods-Firestack.release.xcconfig"; sourceTree = "<group>"; };
39+
7C5D39B93A6385579DA9EA2B /* libPods-Firestack.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Firestack.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4040
CEE8E427185097CF7EF3A3EB /* Pods-Firestack.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Firestack.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Firestack/Pods-Firestack.debug.xcconfig"; sourceTree = "<group>"; };
4141
D950369C1D19C77400F7094D /* Firestack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Firestack.h; path = Firestack/Firestack.h; sourceTree = "<group>"; };
4242
D950369D1D19C77400F7094D /* Firestack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Firestack.m; path = Firestack/Firestack.m; sourceTree = "<group>"; };
4343
D95036B31D19C90300F7094D /* Pods.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pods.xcodeproj; path = Pods/Pods.xcodeproj; sourceTree = "<group>"; };
44-
D9FF4C201D19F96C00238046 /* libReact.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libReact.a; path = "../../../React/build/Debug-iphoneos/libReact.a"; sourceTree = "<group>"; };
45-
F73732AB87B93D6C70882AD0 /* Pods_Firestack.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Firestack.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4644
/* End PBXFileReference section */
4745

4846
/* Begin PBXFrameworksBuildPhase section */
4947
58B511D81A9E6C8500147676 /* Frameworks */ = {
5048
isa = PBXFrameworksBuildPhase;
5149
buildActionMask = 2147483647;
5250
files = (
53-
D9FF4BF31D19F5FF00238046 /* Pods_Firestack.framework in Frameworks */,
54-
A4830B59CA0CDCC7AC616D7C /* Pods_Firestack.framework in Frameworks */,
51+
DACB4AE6FDDA39D46068EA78 /* libPods-Firestack.a in Frameworks */,
5552
);
5653
runOnlyForDeploymentPostprocessing = 0;
5754
};
@@ -69,9 +66,8 @@
6966
4C361DE13748C14BF1F87624 /* Frameworks */ = {
7067
isa = PBXGroup;
7168
children = (
72-
D9FF4C201D19F96C00238046 /* libReact.a */,
7369
D95036B31D19C90300F7094D /* Pods.xcodeproj */,
74-
F73732AB87B93D6C70882AD0 /* Pods_Firestack.framework */,
70+
7C5D39B93A6385579DA9EA2B /* libPods-Firestack.a */,
7571
);
7672
name = Frameworks;
7773
sourceTree = "<group>";
@@ -99,7 +95,7 @@
9995
D95036B41D19C90300F7094D /* Products */ = {
10096
isa = PBXGroup;
10197
children = (
102-
D95036B81D19C90300F7094D /* Pods_Firestack.framework */,
98+
D95036B81D19C90300F7094D /* libPods-Firestack.a */,
10399
);
104100
name = Products;
105101
sourceTree = "<group>";
@@ -164,10 +160,10 @@
164160
/* End PBXProject section */
165161

166162
/* Begin PBXReferenceProxy section */
167-
D95036B81D19C90300F7094D /* Pods_Firestack.framework */ = {
163+
D95036B81D19C90300F7094D /* libPods-Firestack.a */ = {
168164
isa = PBXReferenceProxy;
169-
fileType = wrapper.framework;
170-
path = Pods_Firestack.framework;
165+
fileType = archive.ar;
166+
path = "libPods-Firestack.a";
171167
remoteRef = D95036B71D19C90300F7094D /* PBXContainerItemProxy */;
172168
sourceTree = BUILT_PRODUCTS_DIR;
173169
};
@@ -298,6 +294,7 @@
298294
isa = XCBuildConfiguration;
299295
baseConfigurationReference = CEE8E427185097CF7EF3A3EB /* Pods-Firestack.debug.xcconfig */;
300296
buildSettings = {
297+
ENABLE_BITCODE = NO;
301298
FRAMEWORK_SEARCH_PATHS = (
302299
"$(inherited)",
303300
"$(PROJECT_DIR)/Pods/FirebaseAnalytics/Frameworks",
@@ -329,6 +326,7 @@
329326
isa = XCBuildConfiguration;
330327
baseConfigurationReference = 612D3268D15D0E9231997758 /* Pods-Firestack.release.xcconfig */;
331328
buildSettings = {
329+
ENABLE_BITCODE = NO;
332330
FRAMEWORK_SEARCH_PATHS = (
333331
"$(inherited)",
334332
"$(PROJECT_DIR)/Pods/FirebaseAnalytics/Frameworks",

ios/Podfile

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,41 @@
1-
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
1+
source 'https://github.com/CocoaPods/Specs.git'
2+
3+
platform :ios, '8.0'
4+
5+
# frameworks = Dir.glob("./Pods/**/*.framework").map {|d| d.gsub(/\.\/Pods\//, '$(PROJECT_DIR)/Pods/')}
6+
# flat_frameworks = frameworks.flatten.map{|i| "\"#{i}\""}.join(' ')
7+
8+
def common_specs
9+
# pod 'Firestack', :path => '../'
10+
# pod 'React', :path => '../node_modules/react-native'
11+
[
12+
'Firebase/Core',
13+
'Firebase/Auth',
14+
'Firebase/Storage',
15+
'Firebase/Database',
16+
'Firebase/RemoteConfig'
17+
].each do |lib|
18+
pod lib
19+
end
20+
end
321

422
target 'Firestack' do
5-
use_frameworks!
23+
use_frameworks!(false)
24+
common_specs
25+
project "Firestack.xcodeproj"
626

7-
[
8-
'Firebase/Core',
9-
'Firebase/Auth',
10-
'Firebase/Storage',
11-
'Firebase/Database'
12-
].each do |lib|
13-
pod lib
27+
post_install do |installer|
28+
installer.pods_project.targets.each do |target|
29+
target.build_configurations.each do |configuration|
30+
# target.build_settings(configuration.name)['FRAMEWORK_SEARCH_PATHS'] = flat_frameworks
31+
target.build_settings(configuration.name)['USER_HEADER_SEARCH_PATHS'] = "$(BUILT_PRODUCTS_DIR)"
32+
target.build_settings(configuration.name)['HEADER_SEARCH_PATHS'] = [
33+
"$(inherited)", "${PODS_ROOT}/Headers/**",
34+
"$(SRCROOT)/../../../React/**",
35+
"$(SRCROOT)/../../../react-native/React/**"
36+
].join(' ')
37+
target.build_settings(configuration.name)['OTHER_LDFLAGS'] = "$(inherited) -undefined dynamic_lookup"
38+
end
39+
end
1440
end
15-
1641
end

ios/Podfile.lock

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,53 @@
11
PODS:
2-
- Firebase/Analytics (3.2.1):
3-
- FirebaseAnalytics (= 3.2.0)
4-
- Firebase/Auth (3.2.1):
5-
- Firebase/Analytics (= 3.2.1)
6-
- FirebaseAuth (= 3.0.2)
7-
- Firebase/Core (3.2.1):
8-
- Firebase/Analytics (= 3.2.1)
9-
- Firebase/Database (3.2.1):
10-
- Firebase/Analytics (= 3.2.1)
11-
- FirebaseDatabase (= 3.0.1)
12-
- Firebase/Storage (3.2.1):
13-
- Firebase/Analytics (= 3.2.1)
14-
- FirebaseStorage (= 1.0.1)
15-
- FirebaseAnalytics (3.2.0):
2+
- Firebase/Analytics (3.4.0):
3+
- FirebaseAnalytics (~> 3.3)
4+
- Firebase/Auth (3.4.0):
5+
- Firebase/Analytics
6+
- FirebaseAuth (= 3.0.4)
7+
- Firebase/Core (3.4.0):
8+
- Firebase/Analytics
9+
- Firebase/Database (3.4.0):
10+
- Firebase/Analytics
11+
- FirebaseDatabase (= 3.0.2)
12+
- Firebase/RemoteConfig (3.4.0):
13+
- Firebase/Analytics
14+
- FirebaseRemoteConfig (= 1.2.0)
15+
- Firebase/Storage (3.4.0):
16+
- Firebase/Analytics
17+
- FirebaseStorage (= 1.0.2)
18+
- FirebaseAnalytics (3.3.0):
1619
- FirebaseInstanceID (~> 1.0)
1720
- GoogleInterchangeUtilities (~> 1.2)
1821
- GoogleSymbolUtilities (~> 1.1)
19-
- GoogleUtilities (~> 1.3)
20-
- FirebaseAuth (3.0.2):
22+
- GoogleUtilities (~> 1.2)
23+
- FirebaseAuth (3.0.4):
2124
- FirebaseAnalytics (~> 3.2)
2225
- GoogleNetworkingUtilities (~> 1.2)
23-
- GoogleUtilities (~> 1.3)
24-
- FirebaseDatabase (3.0.1):
26+
- GoogleParsingUtilities (~> 1.1)
27+
- GoogleUtilities (~> 1.2)
28+
- FirebaseDatabase (3.0.2):
2529
- FirebaseAnalytics (~> 3.2)
26-
- FirebaseInstanceID (1.0.6)
27-
- FirebaseStorage (1.0.1):
30+
- FirebaseInstanceID (1.0.8)
31+
- FirebaseRemoteConfig (1.2.0):
32+
- FirebaseAnalytics (~> 3.3)
33+
- FirebaseInstanceID (~> 1.0)
34+
- GoogleInterchangeUtilities (~> 1.2)
35+
- GoogleIPhoneUtilities (~> 1.2)
36+
- GoogleSymbolUtilities (~> 1.1)
37+
- GoogleUtilities (~> 1.2)
38+
- FirebaseStorage (1.0.2):
2839
- FirebaseAnalytics (~> 3.2)
2940
- GoogleNetworkingUtilities (~> 1.2)
3041
- GoogleInterchangeUtilities (1.2.1):
3142
- GoogleSymbolUtilities (~> 1.0)
43+
- GoogleIPhoneUtilities (1.2.1):
44+
- GoogleSymbolUtilities (~> 1.0)
45+
- GoogleUtilities (~> 1.0)
3246
- GoogleNetworkingUtilities (1.2.1):
3347
- GoogleSymbolUtilities (~> 1.0)
48+
- GoogleParsingUtilities (1.1.1):
49+
- GoogleNetworkingUtilities (~> 1.0)
50+
- GoogleSymbolUtilities (~> 1.0)
3451
- GoogleSymbolUtilities (1.1.1)
3552
- GoogleUtilities (1.3.1):
3653
- GoogleSymbolUtilities (~> 1.0)
@@ -39,20 +56,24 @@ DEPENDENCIES:
3956
- Firebase/Auth
4057
- Firebase/Core
4158
- Firebase/Database
59+
- Firebase/RemoteConfig
4260
- Firebase/Storage
4361

4462
SPEC CHECKSUMS:
45-
Firebase: 6c80ac28d59d06bfd9152a7b6ea17625ca93183d
46-
FirebaseAnalytics: 6f75b04e6bfb8e0b6e9ef298e04c24eea3b13863
47-
FirebaseAuth: 94b851fc345ce98036dfedfdc2eddeaef8fa3b4c
48-
FirebaseDatabase: 34301d11621a83546f39f670d256477ba6f7fcea
49-
FirebaseInstanceID: d014d574053a2fe84478f12f7bae96979e7051bb
50-
FirebaseStorage: e9c32a8d246c07eeefd78180c22736aa1b81e81b
63+
Firebase: 754562547af419cc2f4b15247fee419081924bc2
64+
FirebaseAnalytics: 228be2991cb28efb96cdafc4d62f64680e615c69
65+
FirebaseAuth: 26fd291c3b552fc9658420b867520d5ae080421c
66+
FirebaseDatabase: 59bea2e7dfd81b3b8b2f8e396caf1a52c2ced6f7
67+
FirebaseInstanceID: ba1e640935235e5fac39dfa816fe7660e72e1a8a
68+
FirebaseRemoteConfig: c5378e689c1edb54ff62061b8f6a908263dd80ae
69+
FirebaseStorage: fa2a87dee81f682f553af6839daa37a750e65f6a
5170
GoogleInterchangeUtilities: def8415a862effc67d549d5b5b0b9c7a2f97d4de
71+
GoogleIPhoneUtilities: 63f25e93a3ddcb66884d182aab3a660d98f1479b
5272
GoogleNetworkingUtilities: 3e83269048cfb498dc7ec83ab36813360965c74f
73+
GoogleParsingUtilities: 30b3896f9ee167dc78747f013d3de157ced1cadf
5374
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
5475
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032
5576

56-
PODFILE CHECKSUM: 6af1110d7b6995e4ee0a9b6c203d01a5e85bb791
77+
PODFILE CHECKSUM: 4d04aaa3b7bb0592dee632d2f0bde55b6e730426
5778

5879
COCOAPODS: 1.0.1

ios/Pods/Firebase/README.md

100644100755
File mode changed.

ios/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h renamed to ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h renamed to ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Pods/FirebaseAuth/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)