will compile this way

This commit is contained in:
Gabriel Brown 2024-11-01 09:54:10 -05:00
parent 28543c285c
commit 088c04abdc
5 changed files with 38 additions and 6 deletions

7
.gitignore vendored
View File

@ -11,7 +11,10 @@ npm-debug.*
web-build/ web-build/
.env .env
.env* .env*
*.env
.env*
eas.json
*.ipa
# macOS # macOS
.DS_Store .DS_Store
@ -19,4 +22,4 @@ web-build/
# The following patterns were generated by expo-cli # The following patterns were generated by expo-cli
expo-env.d.ts expo-env.d.ts
# @end expo-cli # @end expo-cli

View File

@ -1,6 +1,7 @@
{ {
"expo": { "expo": {
"name": "Wavelength_App", "name": "Wavelength",
"displayName": "Wavelength",
"slug": "Wavelength_App", "slug": "Wavelength_App",
"version": "1.0.0", "version": "1.0.0",
"orientation": "portrait", "orientation": "portrait",
@ -21,7 +22,8 @@
"infoPList": { "infoPList": {
"NSLocationWhenInUseUsageDescription": "This app uses your location in order to allow you to share your location in chat.", "NSLocationWhenInUseUsageDescription": "This app uses your location in order to allow you to share your location in chat.",
"NSCameraUsageDescription": "This app uses your camera to take photos & send them in the chat." "NSCameraUsageDescription": "This app uses your camera to take photos & send them in the chat."
} },
"bundleIdentifier": "com.gbrown.Wavelength"
}, },
"android": { "android": {
"adaptiveIcon": { "adaptiveIcon": {

View File

@ -58,10 +58,11 @@ const SignInScreen = ({onSignIn}: {onSignIn: () => void}) => {
pushToken.data pushToken.data
) as User; ) as User;
await saveUser(user); await saveUser(user);
//Alert.alert(`${user.appleId} - ${user.email} - ${user.fullName} - ${user.pushToken}`);
} else if (initialDataResponse.ok) { } else if (initialDataResponse.ok) {
const initialData: InitialData = await initialDataResponse.json() as InitialData; const initialData: InitialData = await initialDataResponse.json() as InitialData;
console.log('Existing user found! Saving data...'); console.log('Existing user found! Saving data...');
//Alert.alert('Existing user found! Saving data...');
if (initialData.user.pushToken !== pushToken.data) { if (initialData.user.pushToken !== pushToken.data) {
const updatePushTokenResponse = await updatePushToken( const updatePushTokenResponse = await updatePushToken(
initialData.user.id, initialData.user.id,

26
eas.json Normal file
View File

@ -0,0 +1,26 @@
{
"cli": {
"version": ">= 12.6.2",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
"env": {
"EXPO_PUBLIC_API_URL": "https://madelinemcguigan.com",
"EXPO_PUBLIC_API_KEY": "Carport-Exporter-Starlight9",
"EXPO_PUBLIC_WEBSOCKET_URL": "https://push.madelinemcguigan.com"
},
"autoIncrement": true
}
},
"submit": {
"production": {}
}
}

View File

@ -1,5 +1,5 @@
{ {
"name": "wavelength_app", "name": "wavelength",
"main": "expo-router/entry", "main": "expo-router/entry",
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {