Skip to content

Commit 6c3c8e7

Browse files
committed
linked ios + android
1 parent d7bf76c commit 6c3c8e7

File tree

15 files changed

+813
-26
lines changed

15 files changed

+813
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
ios/Pods/
12
# OSX
23
#
34
.DS_Store

android/app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,14 @@ android {
137137
}
138138

139139
dependencies {
140+
compile(project(':react-native-firebase')) {
141+
transitive = false
142+
}
140143
compile fileTree(dir: "libs", include: ["*.jar"])
141144
compile "com.android.support:appcompat-v7:23.0.1"
142145
compile "com.facebook.react:react-native:+" // From node_modules
146+
compile "com.google.android.gms:play-services-base:11.6.0"
147+
compile "com.google.firebase:firebase-core:11.6.0"
143148
}
144149

145150
// Run this once to be able to run the application with BUCK
@@ -148,3 +153,5 @@ task copyDownloadableDepsToLibs(type: Copy) {
148153
from configurations.compile
149154
into 'libs'
150155
}
156+
157+
apply plugin: 'com.google.gms.google-services'

android/app/google-services.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"project_info": {
3+
"project_number": "706294552689",
4+
"firebase_url": "https://fakestagram-d8efa.firebaseio.com",
5+
"project_id": "fakestagram-d8efa",
6+
"storage_bucket": "fakestagram-d8efa.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:706294552689:android:c97dee3c092b8b16",
12+
"android_client_info": {
13+
"package_name": "com.fakestagram"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "706294552689-o4krd0kndmhuugte218rfkc8qeqqv8cm.apps.googleusercontent.com",
19+
"client_type": 3
20+
}
21+
],
22+
"api_key": [
23+
{
24+
"current_key": "AIzaSyDrFPvRTaleDkqpYqD1rr42UNBRZ31zbu4"
25+
}
26+
],
27+
"services": {
28+
"analytics_service": {
29+
"status": 1
30+
},
31+
"appinvite_service": {
32+
"status": 1,
33+
"other_platform_oauth_client": []
34+
},
35+
"ads_service": {
36+
"status": 2
37+
}
38+
}
39+
}
40+
],
41+
"configuration_version": "1"
42+
}

android/app/src/main/java/com/fakestagram/MainApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.app.Application;
44

55
import com.facebook.react.ReactApplication;
6+
import io.invertase.firebase.RNFirebasePackage;
67
import com.facebook.react.ReactNativeHost;
78
import com.facebook.react.ReactPackage;
89
import com.facebook.react.shell.MainReactPackage;
@@ -22,7 +23,8 @@ public boolean getUseDeveloperSupport() {
2223
@Override
2324
protected List<ReactPackage> getPackages() {
2425
return Arrays.<ReactPackage>asList(
25-
new MainReactPackage()
26+
new MainReactPackage(),
27+
new RNFirebasePackage()
2628
);
2729
}
2830

android/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.2.3'
9+
classpath 'com.google.gms:google-services:3.1.0'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
@@ -20,5 +21,11 @@ allprojects {
2021
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2122
url "$rootDir/../node_modules/react-native/android"
2223
}
24+
// -------------------------------------------------
25+
// Add this below the existing maven property above
26+
// -------------------------------------------------
27+
maven {
28+
url 'https://maven.google.com'
29+
}
2330
}
2431
}

android/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
rootProject.name = 'fakestagram'
2+
include ':react-native-firebase'
3+
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
24

35
include ':app'

ios/Podfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Uncomment the next line to define a global platform for your project
2+
platform :ios, '8.0'
3+
4+
target 'fakestagram' do
5+
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
6+
# use_frameworks!
7+
8+
# Pods for fakestagram
9+
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
10+
pod 'React', :path => '../node_modules/react-native', :subspecs => [
11+
'BatchedBridge', # Required For React Native 0.45.0+
12+
'Core',
13+
'DevSupport'
14+
# Add any other subspecs you want to use in your project
15+
]
16+
17+
pod 'Firebase/Core'
18+
19+
20+
target 'fakestagramTests' do
21+
inherit! :search_paths
22+
# Pods for testing
23+
end
24+
25+
end
26+
27+
target 'fakestagram-tvOS' do
28+
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
29+
# use_frameworks!
30+
31+
# Pods for fakestagram-tvOS
32+
33+
target 'fakestagram-tvOSTests' do
34+
inherit! :search_paths
35+
# Pods for testing
36+
end
37+
38+
end

ios/Podfile.lock

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
PODS:
2+
- Firebase/Core (4.6.0):
3+
- FirebaseAnalytics (= 4.0.5)
4+
- FirebaseCore (= 4.0.11)
5+
- FirebaseAnalytics (4.0.5):
6+
- FirebaseCore (~> 4.0)
7+
- FirebaseInstanceID (~> 2.0)
8+
- GoogleToolboxForMac/NSData+zlib (~> 2.1)
9+
- nanopb (~> 0.3)
10+
- FirebaseCore (4.0.11):
11+
- GoogleToolboxForMac/NSData+zlib (~> 2.1)
12+
- FirebaseInstanceID (2.0.6)
13+
- GoogleToolboxForMac/Defines (2.1.3)
14+
- GoogleToolboxForMac/NSData+zlib (2.1.3):
15+
- GoogleToolboxForMac/Defines (= 2.1.3)
16+
- nanopb (0.3.8):
17+
- nanopb/decode (= 0.3.8)
18+
- nanopb/encode (= 0.3.8)
19+
- nanopb/decode (0.3.8)
20+
- nanopb/encode (0.3.8)
21+
- React/BatchedBridge (0.49.5):
22+
- React/Core
23+
- React/cxxreact_legacy
24+
- React/Core (0.49.5):
25+
- yoga (= 0.49.5.React)
26+
- React/cxxreact_legacy (0.49.5):
27+
- React/jschelpers_legacy
28+
- React/DevSupport (0.49.5):
29+
- React/Core
30+
- React/RCTWebSocket
31+
- React/fishhook (0.49.5)
32+
- React/jschelpers_legacy (0.49.5)
33+
- React/RCTBlob (0.49.5):
34+
- React/Core
35+
- React/RCTWebSocket (0.49.5):
36+
- React/Core
37+
- React/fishhook
38+
- React/RCTBlob
39+
- yoga (0.49.5.React)
40+
41+
DEPENDENCIES:
42+
- Firebase/Core
43+
- React/BatchedBridge (from `../node_modules/react-native`)
44+
- React/Core (from `../node_modules/react-native`)
45+
- React/DevSupport (from `../node_modules/react-native`)
46+
- yoga (from `../node_modules/react-native/ReactCommon/yoga`)
47+
48+
EXTERNAL SOURCES:
49+
React:
50+
:path: ../node_modules/react-native
51+
yoga:
52+
:path: ../node_modules/react-native/ReactCommon/yoga
53+
54+
SPEC CHECKSUMS:
55+
Firebase: 27321a925aa85520618255a7c630859e0502ccbd
56+
FirebaseAnalytics: 5b02a63ead2c3f0259cfc7f15e053e440587ecf8
57+
FirebaseCore: 2a946ece8fbe3ce1fdeeb55324f273caade22df9
58+
FirebaseInstanceID: 24958382a1011bba5aaff37e334e7a650b9118f5
59+
GoogleToolboxForMac: 2501e2ad72a52eb3dfe7bd9aee7dad11b858bd20
60+
nanopb: 5601e6bca2dbf1ed831b519092ec110f66982ca3
61+
React: 9d5a23842dcc75ffef540ee2d2ef0eee1904ee58
62+
yoga: 596e987aa8aac0165abb235d2977982f090476a0
63+
64+
PODFILE CHECKSUM: 1d435a003308391529ec58b84e1276f93da587fe
65+
66+
COCOAPODS: 1.3.1

0 commit comments

Comments
 (0)