Skip to content

Commit 535512a

Browse files
committed
Add assetlinks
Former-commit-id: 8e70024 Former-commit-id: e32ccdf
1 parent cc4de29 commit 535512a

File tree

6 files changed

+32
-98
lines changed

6 files changed

+32
-98
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,18 @@ web-build/
1212

1313
# macOS
1414
.DS_Store
15+
16+
dogether.keystore
17+
18+
# Created by https://www.toptal.com/developers/gitignore/api/firebase
19+
# Edit at https://www.toptal.com/developers/gitignore?templates=firebase
20+
21+
### Firebase ###
22+
.idea
23+
**/node_modules/*
24+
25+
### Firebase Patch ###
26+
.runtimeconfig.json
27+
.firebase/
28+
29+
# End of https://www.toptal.com/developers/gitignore/api/firebase

app.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
"**/*"
1919
],
2020
"ios": {
21+
"bundleIdentifier": "gg.dogether.app",
2122
"supportsTablet": true
2223
},
2324
"android": {
25+
"package": "gg.dogether.app",
2426
"adaptiveIcon": {
2527
"foregroundImage": "./assets/adaptive-icon.png",
2628
"backgroundColor": "#FFFFFF"

firebase.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,26 @@
1313
"firebase-debug.log",
1414
"firebase-debug.*.log"
1515
],
16-
"predeploy": [
17-
"npm --prefix \"$RESOURCE_DIR\" run lint"
18-
]
16+
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run lint"]
1917
}
2018
],
2119
"hosting": {
2220
"public": "web-build",
23-
"ignore": [
24-
"firebase.json",
25-
"**/.*",
26-
"**/node_modules/**"
21+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
22+
"headers": [
23+
{
24+
"source": "/.well-known/assetlinks.json",
25+
"headers": [{ "key": "Content-Type", "value": "application/json" }]
26+
}
2727
],
2828
"rewrites": [
2929
{
3030
"source": "**",
3131
"destination": "/index.html"
32+
},
33+
{
34+
"source": "/.well-known/assetlinks.json",
35+
"destination": "/.well-known/assetlinks.json"
3236
}
3337
]
3438
},

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"start": "expo start",
77
"android": "expo start --android",
88
"ios": "expo start --ios",
9-
"web": "expo start --web"
9+
"web": "expo start --web",
10+
"predeploy": "expo export:web",
11+
"deploy": "npm run predeploy && firebase deploy --only hosting"
1012
},
1113
"dependencies": {
1214
"@expo/react-native-action-sheet": "^4.0.1",

public/index.html

Lines changed: 0 additions & 89 deletions
This file was deleted.

screens/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default function Login() {
8181
returnKeyType="next"
8282
keyboardType="email-address"
8383
onChangeText={setEmail}
84-
onSubmitEditing={() => passwordInputRef.current.focus()}
84+
onSubmitEditing={passwordInputRef.current.focus}
8585
value={email}
8686
/>
8787
<TextInput

0 commit comments

Comments
 (0)