Skip to content

Commit d946685

Browse files
committed
Updates to readme
1 parent 577599d commit d946685

File tree

370 files changed

+44392
-67
lines changed

Some content is hidden

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

370 files changed

+44392
-67
lines changed

Firestack.podspec

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,10 @@ Pod::Spec.new do |s|
4040
s.source_files = 'ios/Firestack/*.{h,m}'
4141
s.preserve_paths = 'README.md', 'package.json', '*.js'
4242

43-
s.default_subspec = 'Core'
44-
s.subspec 'Core' do |ss|
45-
46-
ss.dependency 'Firebase/Core'
47-
ss.dependency 'Firebase/Auth'
48-
ss.dependency 'Firebase/Storage'
49-
ss.dependency 'Firebase/Database'
50-
ss.dependency 'Firebase/RemoteConfig'
51-
52-
s.ios.frameworks = [
53-
'CFNetwork', 'Security', 'SystemConfiguration'
54-
]
55-
s.ios.libraries = ['icucore', 'c++']
56-
end
57-
58-
# Dev is used only to stub for lib linting and development
59-
s.subspec 'Dev' do |ss|
60-
ss.dependency "React"
61-
end
43+
s.ios.frameworks = [
44+
'CFNetwork', 'Security', 'SystemConfiguration'
45+
]
46+
s.ios.libraries = ['icucore', 'c++', 'sqlite3', 'z']
6247

6348
s.xcconfig = {
6449
'HEADER_SEARCH_PATHS' => [

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ To use Firestack, we'll need to have a development environment that includes the
2424

2525
We need to link the package with our development packaging. We have two options to handle linking:
2626

27-
#### Automatically with [rnpm](https://github.com/rnpm/rnpm)
27+
#### Automatically with react-native-cli
2828

29-
[rnpm](https://github.com/rnpm/rnpm) is a React Native package manager which can help to automate the process of linking package environments.
29+
React native ships with a `link` command that can be used to link the projects together, which can help automate the process of linking our package environments.
3030

3131
```bash
32-
rnpm link
32+
react-native link react-native-firestack
3333
```
3434

3535
Firestack will automatically pull in all of the Firebase requirements and link Firebase to our own project.

ios/Firestack.xcodeproj/project.pbxproj

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
/* Begin PBXBuildFile section */
1010
8CCBD6DBFA92784E209B2036 /* libPods-Firestack.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BC7A41E090E02D6F58081C8B /* libPods-Firestack.a */; };
1111
D950369E1D19C77400F7094D /* Firestack.m in Sources */ = {isa = PBXBuildFile; fileRef = D950369D1D19C77400F7094D /* Firestack.m */; };
12+
D9CFBE7A1D531088002623BF /* FirebaseAnalytics.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D9CFBE791D531088002623BF /* FirebaseAnalytics.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
13+
D9CFBE7C1D531092002623BF /* FirebaseAuth.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D9CFBE7B1D531092002623BF /* FirebaseAuth.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
14+
D9CFBE7E1D5310A1002623BF /* FirebaseDatabase.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D9CFBE7D1D5310A1002623BF /* FirebaseDatabase.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
15+
D9CFBE801D5310AA002623BF /* FirebaseInstanceID.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D9CFBE7F1D5310AA002623BF /* FirebaseInstanceID.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
16+
D9CFBE821D5310B4002623BF /* FirebaseRemoteConfig.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D9CFBE811D5310B4002623BF /* FirebaseRemoteConfig.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
17+
D9CFBE841D5310BD002623BF /* FirebaseStorage.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = D9CFBE831D5310BD002623BF /* FirebaseStorage.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
1218
/* End PBXBuildFile section */
1319

1420
/* Begin PBXContainerItemProxy section */
@@ -25,9 +31,15 @@
2531
58B511D91A9E6C8500147676 /* CopyFiles */ = {
2632
isa = PBXCopyFilesBuildPhase;
2733
buildActionMask = 2147483647;
28-
dstPath = "include/$(PRODUCT_NAME)";
34+
dstPath = "";
2935
dstSubfolderSpec = 16;
3036
files = (
37+
D9CFBE7A1D531088002623BF /* FirebaseAnalytics.framework in CopyFiles */,
38+
D9CFBE7C1D531092002623BF /* FirebaseAuth.framework in CopyFiles */,
39+
D9CFBE7E1D5310A1002623BF /* FirebaseDatabase.framework in CopyFiles */,
40+
D9CFBE801D5310AA002623BF /* FirebaseInstanceID.framework in CopyFiles */,
41+
D9CFBE821D5310B4002623BF /* FirebaseRemoteConfig.framework in CopyFiles */,
42+
D9CFBE841D5310BD002623BF /* FirebaseStorage.framework in CopyFiles */,
3143
);
3244
runOnlyForDeploymentPostprocessing = 0;
3345
};
@@ -40,6 +52,13 @@
4052
D950369C1D19C77400F7094D /* Firestack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Firestack.h; path = Firestack/Firestack.h; sourceTree = "<group>"; };
4153
D950369D1D19C77400F7094D /* Firestack.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Firestack.m; path = Firestack/Firestack.m; sourceTree = "<group>"; };
4254
D95036B31D19C90300F7094D /* Pods.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pods.xcodeproj; path = Pods/Pods.xcodeproj; sourceTree = "<group>"; };
55+
D9CFBE441D531058002623BF /* buildScript.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = buildScript.sh; sourceTree = "<group>"; };
56+
D9CFBE791D531088002623BF /* FirebaseAnalytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseAnalytics.framework; path = Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework; sourceTree = "<group>"; };
57+
D9CFBE7B1D531092002623BF /* FirebaseAuth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseAuth.framework; path = Pods/FirebaseAuth/Frameworks/frameworks/FirebaseAuth.framework; sourceTree = "<group>"; };
58+
D9CFBE7D1D5310A1002623BF /* FirebaseDatabase.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseDatabase.framework; path = Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework; sourceTree = "<group>"; };
59+
D9CFBE7F1D5310AA002623BF /* FirebaseInstanceID.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseInstanceID.framework; path = Pods/FirebaseInstanceID/Frameworks/frameworks/FirebaseInstanceID.framework; sourceTree = "<group>"; };
60+
D9CFBE811D5310B4002623BF /* FirebaseRemoteConfig.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseRemoteConfig.framework; path = Pods/FirebaseRemoteConfig/Frameworks/frameworks/FirebaseRemoteConfig.framework; sourceTree = "<group>"; };
61+
D9CFBE831D5310BD002623BF /* FirebaseStorage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FirebaseStorage.framework; path = Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework; sourceTree = "<group>"; };
4362
E20739D9E57A13C3D42A4876 /* 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>"; };
4463
/* End PBXFileReference section */
4564

@@ -75,6 +94,12 @@
7594
4C361DE13748C14BF1F87624 /* Frameworks */ = {
7695
isa = PBXGroup;
7796
children = (
97+
D9CFBE831D5310BD002623BF /* FirebaseStorage.framework */,
98+
D9CFBE811D5310B4002623BF /* FirebaseRemoteConfig.framework */,
99+
D9CFBE7F1D5310AA002623BF /* FirebaseInstanceID.framework */,
100+
D9CFBE7D1D5310A1002623BF /* FirebaseDatabase.framework */,
101+
D9CFBE7B1D531092002623BF /* FirebaseAuth.framework */,
102+
D9CFBE791D531088002623BF /* FirebaseAnalytics.framework */,
78103
D95036B31D19C90300F7094D /* Pods.xcodeproj */,
79104
BC7A41E090E02D6F58081C8B /* libPods-Firestack.a */,
80105
);
@@ -84,6 +109,7 @@
84109
58B511D21A9E6C8500147676 = {
85110
isa = PBXGroup;
86111
children = (
112+
D9CFBE441D531058002623BF /* buildScript.sh */,
87113
D950369C1D19C77400F7094D /* Firestack.h */,
88114
D950369D1D19C77400F7094D /* Firestack.m */,
89115
134814211AA4EA7D00B7C361 /* Products */,
@@ -310,6 +336,7 @@
310336
"$(SRCROOT)/../../node_modules/react-native/React/**",
311337
"$(SRCROOT)/../../react-native/React/**",
312338
);
339+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
313340
LD_DYLIB_INSTALL_NAME = "";
314341
LIBRARY_SEARCH_PATHS = "$(inherited)";
315342
MACH_O_TYPE = mh_dylib;
@@ -344,6 +371,7 @@
344371
"$(SRCROOT)/../../node_modules/react-native/React/**",
345372
"$(SRCROOT)/../../react-native/React/**",
346373
);
374+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
347375
LD_DYLIB_INSTALL_NAME = "";
348376
LIBRARY_SEARCH_PATHS = "$(inherited)";
349377
MACH_O_TYPE = mh_dylib;

ios/Firestack/Firestack.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,7 @@ - (NSString *) getStorageUrl
463463
path:(NSString *)path
464464
metadata:(NSDictionary *)metadata
465465
callback:(RCTResponseSenderBlock) callback)
466-
{
467-
NSDictionary *cfg = [self getConfig];
468-
466+
{
469467
NSString *urlStr = [self getStorageUrl];
470468

471469
if (urlStr == nil) {

ios/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ target 'Firestack' do
2626
target.build_configurations.each do |configuration|
2727
# target.build_settings(configuration.name)['FRAMEWORK_SEARCH_PATHS'] = flat_frameworks
2828
target.build_settings(configuration.name)['USER_HEADER_SEARCH_PATHS'] = "$(BUILT_PRODUCTS_DIR)"
29+
target.build_settings(configuration.name)['LD_DYLIB_INSTALL_NAME'] = '@rpath/${EXECUTABLE_PATH}'
30+
target.build_settings(configuration.name)['LD_RUNPATH_SEARCH_PATHS'] = '$(inherited) @rpath @loader_path/../Frameworks @executable_path/Frameworks'
31+
2932
target.build_settings(configuration.name)['HEADER_SEARCH_PATHS'] = [
3033
"$(inherited)", "${PODS_ROOT}/Headers/**",
3134
"$(SRCROOT)/../../../React/**",

ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ SPEC CHECKSUMS:
7474
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
7575
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032
7676

77-
PODFILE CHECKSUM: 19dee440fb6a2e26dc0083983be8069f40bcbe4f
77+
PODFILE CHECKSUM: 649189c2f148047c708e89261de1a907f7e44cf8
7878

7979
COCOAPODS: 1.0.1

ios/Pods/Local Podspecs/Firestack.podspec.json

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

ios/Pods/Manifest.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Pods/Pods.xcodeproj/project.pbxproj

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

ios/Pods/React/LICENSE

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

ios/Pods/React/LICENSE-CustomComponents

Lines changed: 9 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)