Skip to content

Commit

Permalink
#9 complete
Browse files Browse the repository at this point in the history
  • Loading branch information
TaikiFnit committed Feb 17, 2018
1 parent d420ccd commit 49fdc1e
Show file tree
Hide file tree
Showing 14 changed files with 576 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.DS_Store

# Xcode
ios/Pods/
#
build/
*.pbxuser
Expand Down
9 changes: 9 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,16 @@ android {
}

dependencies {
compile(project(':react-native-firebase')) {
transitive = false
}
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile "com.google.android.gms:play-services-base:11.4.2"
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-firestore:11.4.2'

}

// Run this once to be able to run the application with BUCK
Expand All @@ -148,3 +155,5 @@ task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}

apply plugin: 'com.google.gms.google-services'
73 changes: 73 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"project_info": {
"project_number": "891337599222",
"firebase_url": "https://fnitmcsassistant.firebaseio.com",
"project_id": "fnitmcsassistant",
"storage_bucket": "fnitmcsassistant.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:891337599222:android:c6504a40a7b29475",
"android_client_info": {
"package_name": "crafters.fnit.fnitmcsassistant"
}
},
"oauth_client": [
{
"client_id": "891337599222-v9t9kna9shvhhvv0b4lofucnga1ha5cn.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBTPjCLHwo8EvT2r_uYN2vP7wnH5Np8T8s"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:891337599222:android:7e2558155da0f423",
"android_client_info": {
"package_name": "com.fnitmcsassistant"
}
},
"oauth_client": [
{
"client_id": "891337599222-v9t9kna9shvhhvv0b4lofucnga1ha5cn.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBTPjCLHwo8EvT2r_uYN2vP7wnH5Np8T8s"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import io.invertase.firebase.RNFirebasePackage;
import io.invertase.firebase.firestore.RNFirebaseFirestorePackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
Expand All @@ -11,6 +13,7 @@
import java.util.Arrays;
import java.util.List;


public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
Expand All @@ -22,7 +25,9 @@ public boolean getUseDeveloperSupport() {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
new MainReactPackage(),
new RNFirebasePackage(),
new RNFirebaseFirestorePackage()
);
}

Expand Down
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
buildscript {
repositories {
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.2.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -20,5 +22,8 @@ allprojects {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
}
}
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
rootProject.name = 'fnitmcsassistant'
include ':react-native-firebase'
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')

include ':app'
40 changes: 40 additions & 0 deletions ios/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AD_UNIT_ID_FOR_BANNER_TEST</key>
<string>ca-app-pub-3940256099942544/2934735716</string>
<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</key>
<string>ca-app-pub-3940256099942544/4411468910</string>
<key>CLIENT_ID</key>
<string>891337599222-de06al8u88a2pceddbmvnhjuih5dos88.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.891337599222-de06al8u88a2pceddbmvnhjuih5dos88</string>
<key>API_KEY</key>
<string>AIzaSyC0ATMzhZvHLfNd3kjmua2lJDMNatmU4MY</string>
<key>GCM_SENDER_ID</key>
<string>891337599222</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>org.reactjs.native.example.fnitmcsassistant</string>
<key>PROJECT_ID</key>
<string>fnitmcsassistant</string>
<key>STORAGE_BUCKET</key>
<string>fnitmcsassistant.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<true></true>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<false></false>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:891337599222:ios:df1defd0640c855e</string>
<key>DATABASE_URL</key>
<string>https://fnitmcsassistant.firebaseio.com</string>
</dict>
</plist>
24 changes: 24 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'fnitmcsassistant' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!

# Pods for fnitmcsassistant

pod 'Firebase/Core'
pod 'Firebase/Firestore'


target 'fnitmcsassistant-tvOSTests' do
inherit! :search_paths
# Pods for testing
end

target 'fnitmcsassistantTests' do
inherit! :search_paths
# Pods for testing
end

end
81 changes: 81 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
PODS:
- BoringSSL (9.2):
- BoringSSL/Implementation (= 9.2)
- BoringSSL/Interface (= 9.2)
- BoringSSL/Implementation (9.2):
- BoringSSL/Interface (= 9.2)
- BoringSSL/Interface (9.2)
- Firebase/Core (4.8.2):
- FirebaseAnalytics (= 4.0.9)
- FirebaseCore (= 4.0.14)
- Firebase/Firestore (4.8.2):
- Firebase/Core
- FirebaseFirestore (= 0.10.0)
- FirebaseAnalytics (4.0.9):
- FirebaseCore (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- GoogleToolboxForMac/NSData+zlib (~> 2.1)
- nanopb (~> 0.3)
- FirebaseCore (4.0.14):
- GoogleToolboxForMac/NSData+zlib (~> 2.1)
- FirebaseFirestore (0.10.0):
- FirebaseAnalytics (~> 4.0)
- FirebaseCore (~> 4.0)
- gRPC-ProtoRPC (~> 1.0)
- leveldb-library (~> 1.18)
- Protobuf (~> 3.1)
- FirebaseInstanceID (2.0.8):
- FirebaseCore (~> 4.0)
- GoogleToolboxForMac/Defines (2.1.3)
- GoogleToolboxForMac/NSData+zlib (2.1.3):
- GoogleToolboxForMac/Defines (= 2.1.3)
- gRPC (1.9.1):
- gRPC-RxLibrary (= 1.9.1)
- gRPC/Main (= 1.9.1)
- gRPC-Core (1.9.1):
- gRPC-Core/Implementation (= 1.9.1)
- gRPC-Core/Interface (= 1.9.1)
- gRPC-Core/Implementation (1.9.1):
- BoringSSL (~> 9.0)
- gRPC-Core/Interface (= 1.9.1)
- nanopb (~> 0.3)
- gRPC-Core/Interface (1.9.1)
- gRPC-ProtoRPC (1.9.1):
- gRPC (= 1.9.1)
- gRPC-RxLibrary (= 1.9.1)
- Protobuf (~> 3.0)
- gRPC-RxLibrary (1.9.1)
- gRPC/Main (1.9.1):
- gRPC-Core (= 1.9.1)
- gRPC-RxLibrary (= 1.9.1)
- leveldb-library (1.20)
- nanopb (0.3.8):
- nanopb/decode (= 0.3.8)
- nanopb/encode (= 0.3.8)
- nanopb/decode (0.3.8)
- nanopb/encode (0.3.8)
- Protobuf (3.5.0)

DEPENDENCIES:
- Firebase/Core
- Firebase/Firestore

SPEC CHECKSUMS:
BoringSSL: f3d6b8ce199b9c450a8cfc14895d07a2627fc232
Firebase: 7d3b8cd837ad9fcd391657734c0d56dab8e9a5a3
FirebaseAnalytics: 388b630c15713f5dbf364071f5f3d6077fb52f4e
FirebaseCore: 2e0b98fb2d64ca8140136beff15772bdd14d2dd7
FirebaseFirestore: 713f0c555e7af5ac03d0fec0e2477c48857f4977
FirebaseInstanceID: 81df5805a08001e69138664bdd02c6719a9ac80f
GoogleToolboxForMac: 2501e2ad72a52eb3dfe7bd9aee7dad11b858bd20
gRPC: 58828d611419d49da19ad02a60679ffa10a10a87
gRPC-Core: 66413bf1f2d038a6221bc7bfcbeeaa5a117cee29
gRPC-ProtoRPC: f29e8b7445e0d3c0311678ab121e6c164da4ca5e
gRPC-RxLibrary: 8e0067bfe8a054022c7a81470baace4f2f633b48
leveldb-library: 08cba283675b7ed2d99629a4bc5fd052cd2bb6a5
nanopb: 5601e6bca2dbf1ed831b519092ec110f66982ca3
Protobuf: 8a9838fba8dae3389230e1b7f8c104aa32389c03

PODFILE CHECKSUM: 50f933e5da701ee007e75c381961ad5fbcefb476

COCOAPODS: 1.3.1
Loading

0 comments on commit 49fdc1e

Please sign in to comment.