Skip to content

Commit

Permalink
Update secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
andras-adam committed Nov 6, 2022
1 parent e259f10 commit abd7ac7
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 14 deletions.
18 changes: 14 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"expo": {
"name": "SavEat",
"slug": "sav-eat",
"slug": "saveat",
"owner": "neoaren",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
Expand All @@ -14,18 +15,27 @@
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [ "**/*" ],
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "com.neoaren.saveat"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"package": "com.neoaren.saveat"
},
"web": {
"favicon": "./assets/favicon.png"
},
"extra": {
"eas": {
"projectId": "9c029803-dd3e-4b1f-8c35-c707da17f933"
}
}
}
}
18 changes: 18 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"cli": {
"version": ">= 2.6.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
13 changes: 6 additions & 7 deletions firebase.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { initializeApp, FirebaseOptions } from 'firebase/app'
import { env } from './config'


const config: FirebaseOptions = {
apiKey: env.API_KEY,
appId: env.APP_ID,
authDomain: env.AUTH_DOMAIN,
messagingSenderId: env.MESSAGING_SENDER_ID,
projectId: env.PROJECT_ID,
storageBucket: env.STORAGE_BUCKET
apiKey: process.env.API_KEY,
appId: process.env.APP_ID,
authDomain: process.env.AUTH_DOMAIN,
messagingSenderId: process.env.MESSAGING_SENDER_ID,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET
}

export const app = initializeApp(config)
5 changes: 2 additions & 3 deletions src/api/wolt.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as Location from 'expo-location'
import { LocationObject } from 'expo-location'
import { useState } from 'react'
import { env } from '../../config'


const baseUrl = 'https://daas-public-api.development.dev.woltapi.com'
const merchantId = env.WOLT_MERCHANT_ID
const apiKey = env.WOLT_API_KEY
const merchantId = process.env.WOLT_MERCHANT_ID
const apiKey = process.env.WOLT_API_KEY
const headers = { 'content-type': 'application/json', 'authorization': `Bearer ${apiKey}` }

async function getCurrentAddress(): Promise<string> {
Expand Down

0 comments on commit abd7ac7

Please sign in to comment.