Skip to content

Commit

Permalink
Added firebase hosting.
Browse files Browse the repository at this point in the history
  • Loading branch information
naodya committed May 2, 2020
1 parent 82711d3 commit 974ab4b
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 5 deletions.
1 change: 1 addition & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.html,1588460682117,05814120c15594ba90f9bce5e67495a0d08cd03c5104343895bd1df8c43f07c2
33 changes: 33 additions & 0 deletions .firebase/hosting.d2ViLWJ1aWxk.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
asset-manifest.json,1588462138445,4db4e82d2aff2721885df9d4e0f361de505e172a171174f61ff40f7f91bd1c96
expo-service-worker.js,1588462138429,4582edb47dfe32e03f47649a04d1f7859f8cfb333909bfc1722a0dc5ab5288f4
favicon-16.png,1588462138429,112434f450420c0c0f5d31849d70f651c35ad6acb57a5d3b4d32fe9e74a8dcdd
favicon-32.png,1588462138429,e89fbded9ef41cba905ea3ee17c5674f97c00dbb6288e7c438d380cab487a2f6
index.html,1588462138444,5689512b03eaf96dd97c65aacb84e815fb744df2463afa3f9928a2b56bd1abbb
manifest.json,1588462138445,fa96014122f951c51b5f5a4ba1e519659b5d4fdc9fbe350e707cb49cb4622986
precache-manifest.e4e3547592179a20e94c224c336d387c.js,1588462138445,6d7fa5fd9e4b113af48983da766159ee9dcf45dd0a983966df9f9e4f74c5d32a
register-service-worker.js,1588462138445,2058a730a4ea81e030deffb4332c972d110cecca6abce11e12541aedc121d093
serve.json,1588462138429,5f17e3709da0de44250c5c2c67c8ee66f6b6ced62969332fc12b5d95a8ad803c
favicon.ico,1588462138429,ca484f7b74695bb84fea3a4b8f81f2d2d319a00329525010ecf786ec6096a448
service-worker.js,1588462138445,098697bd56c4399def716dad3ce01f3fc3ad962d8bb894b5d9c3a7e73a721ff4
pwa/apple-touch-icon/apple-touch-icon-180.png,1588462138432,9f14bd38ffad34a71c665b4ded91bef586ce2146ec9eb69bd6bf5bb375f4cef0
pwa/chrome-icon/chrome-icon-144.png,1588462138444,b2cf10e3d8f8cd2c67c53e3fb09fd40ceb7c4f83db7043241025372ec80c22e8
pwa/chrome-icon/chrome-icon-192.png,1588462138445,24242e48d4440669b1990aa3122ab86bb2ae9efbf950429f2503386cd11f7d99
pwa/chrome-icon/chrome-icon-512.png,1588462138445,d3a4d5bb726f13889d62d6a9bcbeb9396ebbaab5847627c02335b9f899a7dc12
static/js/app.40a14377.chunk.js,1588462138429,e245b98937f067d577bd67a5f31e3e47511edfc60a7d8ec4a50adaadc130c024
static/js/runtime~app.34c76111.js.map,1588462138442,373de856960eab634c52bf240d7bc4c4450fc57835dc053c95e8523ca76ed456
static/js/runtime~app.34c76111.js,1588462138442,ee7d049788070a42d2b2ef96756c178c71dedc1925178279b471385dbe130679
static/js/app.40a14377.chunk.js.map,1588462138442,396a057591317a2aa6a19c636616b0353bb86b035b173009f392c71995200170
pwa/apple-touch-startup-image/apple-touch-startup-image-1242x2208.png,1588462138444,176b5e5c5808c9af35407a8f28ed14d7388a1464e1a8509dc827d05dc24ac7ac
pwa/apple-touch-startup-image/apple-touch-startup-image-1242x2688.png,1588462138442,8beefd5c3afa7214b939ed0bf883f2865a6ac29870f10b55bac1534124812606
pwa/apple-touch-startup-image/apple-touch-startup-image-640x1136.png,1588462138444,c995674bdd984cfe0e5d37b8a3f781bcc37daf2866a13c437e190022aac8a526
pwa/apple-touch-startup-image/apple-touch-startup-image-750x1334.png,1588462138444,06dd115d301dc7c16eb1f3d3b3205f327117f6ff7525aa0a79e61ef69ec8e112
pwa/apple-touch-startup-image/apple-touch-startup-image-828x1792.png,1588462138444,e2b5972ad943ce823f7cda0d69ccc709374ee06e09afc9e40279162f933b61af
pwa/apple-touch-startup-image/apple-touch-startup-image-1125x2436.png,1588462138444,7eec951dda2421065ef705eee7d0935cfc22abf6f3932e500f2a79fbe5f94e74
pwa/apple-touch-startup-image/apple-touch-startup-image-1536x2048.png,1588462138444,6a8a4e1c65b96fefe991a7ba9b6ccd3c472e4348f477e19ec5649181728ae75e
fonts/Ionicons.ttf,1588462138429,860db16ab997d30cd7c6ecf63efdbc32cc23f47b78d9d48e4e46c34f2577e69b
pwa/apple-touch-startup-image/apple-touch-startup-image-1668x2224.png,1588462138444,15f699d0232670caa71f04924be11b19cc268ad83a767b6f767814439e462f78
pwa/apple-touch-startup-image/apple-touch-startup-image-1668x2388.png,1588462138444,f48d7a498f62702e2762a81e1a833a2f18f8eb4e26b4b0f812146a2d6f4f1bf7
pwa/apple-touch-startup-image/apple-touch-startup-image-2048x2732.png,1588462138444,592d976e3af1e64d058fe3c15aaaaef200baba8cc2da6d459fafff2c1b7dd43f
fonts/MaterialCommunityIcons.ttf,1588462138429,d4770b29f25347e1c5c69177817766e58873d7442c1da830dcce03706ca1145f
static/js/2.b06e1e4b.chunk.js,1588462138442,a3a477afe31bb30f4da0b05d22bca06879a971de26bf107c8d9daa83fdb05237
static/js/2.b06e1e4b.chunk.js.map,1588462138443,ce874bc8ce85c7fafe8d611f266fe453b34718bad74dcdb79848b53640f84a63
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ecrt-tracker"
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ buck-out/
# Expo
.expo/*

# web
web-build

# Firebase

GoogleService-Info.plist
google-services.json
39 changes: 39 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"hosting": [
{
"site": "ecrt-diaspora",
"public": "web-build",
"headers": [
{
"source": "/**",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=604800"
}
]
}
],
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"ios": "react-native run-ios",
"web": "expo start --web",
"start": "react-native start",
"test": "jest"
"test": "jest",
"deploy:hosting": "expo build:web && firebase deploy --only hosting:ecrt-diaspora",
"deploy": "yarn deploy:hosting"
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
Expand Down Expand Up @@ -35,4 +37,4 @@
"preset": "react-native"
},
"private": true
}
}
4 changes: 2 additions & 2 deletions src/api/firebase/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const firebaseConfig = {
projectId: 'ecrt-tracker',
storageBucket: 'ecrt-tracker.appspot.com',
messagingSenderId: '947035241094',
appId: '1:947035241094:web:f37b6b05b0707c77992f07',
measurementId: 'G-66Y8Y5HLCL',
appId: '1:947035241094:web:5d5daefb0d51e6a5992f07',
measurementId: 'G-QEW05YPM19',
};

export default firebaseConfig;

0 comments on commit 974ab4b

Please sign in to comment.