Skip to content

Commit ec383d8

Browse files
committed
Initial commit
0 parents  commit ec383d8

File tree

17 files changed

+1278
-0
lines changed

17 files changed

+1278
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.DS_Store
3+
ios/Pods

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2016 Ari Lerner <ari@fullstack.io>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

firestack.android.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Stub of Firestack for Android.
3+
*
4+
* @providesModule Firestack
5+
* @flow
6+
*/
7+
'use strict';
8+
9+
var warning = require('fbjs/lib/warning');
10+
11+
var Firestack = {
12+
test: function() {
13+
warning('Not yet implemented for Android.');
14+
}
15+
};
16+
17+
module.exports = Firestack;

firestack.ios.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* @providesModule Firestack
3+
* @flow
4+
*/
5+
'use strict';
6+
7+
var NativeFirestack = require('NativeModules').Firestack;
8+
9+
/**
10+
* High-level docs for the Firestack iOS API can be written here.
11+
*/
12+
13+
var Firestack = {
14+
test: function() {
15+
NativeFirestack.test();
16+
}
17+
};
18+
19+
module.exports = Firestack;

ios/Firestack.podspec

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
require 'json'
2+
pkgFile = File.expand_path('../package.json', File.dirname(__FILE__))
3+
package = JSON.parse(File.read(pkgFile))
4+
5+
Pod::Spec.new do |s|
6+
7+
s.name = 'Firestack' #package['name']
8+
s.version = package['version']
9+
s.homepage = "https://github.com/fullstackreact/react-native-firestack"
10+
s.summary = "A Firebase v3 implementation for react-native"
11+
# s.license = { :type => package['license'], :file => 'LICENSE' },
12+
s.license = { :type => 'MIT', :file => '../LICENSE' }
13+
s.author = package['author']
14+
s.platform = :ios, "8.0"
15+
s.source = { :git => package['repository']['url'], :tag => 'master' }
16+
# s.source = { :git => 'https://github.com/fullstackreact/react-native-firestack.git', :tag => s.version.to_s }
17+
# s.public_header_files = 'Firestack/**/*.h'
18+
19+
s.public_header_files = 'Firestack/**/*.h'
20+
s.source_files = 'Firestack', 'Firestack/**/*.{h,m}'
21+
22+
s.description = <<-DESC
23+
Make it easy to work with the new Firebase and React-Native.
24+
Currently, this is best installed through npm:
25+
26+
npm install --save react-native-firestack
27+
DESC
28+
29+
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
30+
31+
s.social_media_url = 'https://twitter.com/fullstackreact'
32+
s.ios.deployment_target = '8.0'
33+
34+
# s.pod_target_xcconfig = {
35+
# # 'ENABLE_BITCODE' => 'NO',
36+
# # 'CLANG_MODULES_AUTOLINK'
37+
# 'HEADER_SEARCH_PATHS' => [
38+
# '$(inherited)',
39+
# '$(SRCROOT)/../react/**',
40+
# '$(SRCROOT)/../react-native/React/**',
41+
# '$(PODS_ROOT)/**'
42+
# ].join(' '),
43+
# 'OTHER_LDFLAGS' => '$(inherited) -ObjC' # -undefined dynamic_lookup
44+
# }
45+
#
46+
s.frameworks = 'UIKit'
47+
48+
[ 'Firebase/Core',
49+
'Firebase/Analytics',
50+
'Firebase/Auth',
51+
'Firebase/Database',
52+
'Firebase/Storage'
53+
].each do |lib|
54+
s.dependency lib
55+
end
56+
57+
s.subspec 'Lib' do |ss|
58+
## Don't install Firebase, i.e.:
59+
# s.dependency 'React' ## For pod lib lint purposes
60+
end
61+
end

0 commit comments

Comments
 (0)