-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #936 from andrew-bierman/fix/android-build-2
Fix config for android local build
- Loading branch information
Showing
13 changed files
with
73 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
—————————Client Env ——————————— | ||
MONGODB_URI="Your mongodb URI" | ||
CLIENT_URL="Your client url" | ||
—————————EXPO CLIENT ENV ——————————— | ||
NODE_ENV='development' | ||
API_URL='Your api url' | ||
NPS_API = "Your api key" | ||
GEOAPIFY_KEY = "Your api key" | ||
GOOGLE_PLACES_API_KEY = 'Your api key' | ||
MAPBOX_API_KEY = "Your api key, starts with pk..." | ||
OPENWEATHER_KEY = "Your api key" | ||
X_RAPIDAPI_KEY = "Your api key" | ||
MAPBOX_ACCESS_TOKEN = "Your api key, starts with pk..." | ||
EXPO_PUBLIC_CLIENT_URL="Your client url" | ||
EXPO_PUBLIC_API_URL="Your api url" | ||
EXPO_PUBLIC_MAPBOX_ACCESS_TOKEN="Your api key, starts with pk..." | ||
EXPO_PUBLIC_ANDROID_CLIENT_ID="962352557394-........................apps.googleusercontent.com" | ||
EXPO_PUBLIC_IOS_CLIENT_ID="962352557394-........................apps.googleusercontent.com" | ||
MAPBOX_DOWNLOADS_TOKEN="Your api key, starts with sk..." | ||
WEB_CLIENT_ID="962352557394-..................apps.googleusercontent.com" | ||
ANDROID_CLIENT_ID="962352557394-........................apps.googleusercontent.com" | ||
IOS_CLIENT_ID="962352557394-........................apps.googleusercontent.com" | ||
FIREBASE_API_KEY = 'Your api key' | ||
FIREBASE_AUTH_DOMAIN = "Your auth domain" | ||
FIREBASE_PROJECT_ID = "Your firebase project id" | ||
FIREBASE_STORAGE_BUCKET = "Your firebase_storage_key_link" | ||
FIREBASE_MESSAGING_SENDER_ID = "Your firebase_messaging_sender_ID" | ||
FIREBASE_APP_ID = "Your firebase app id" | ||
FIREBASE_MEASUREMENT_ID = "Your firebase_measurement_id" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
—————————NEXT CLIENT ENV——————————— | ||
NODE_ENV='development' | ||
NEXT_PUBLIC_APP='next' | ||
NEXT_PUBLIC_CLIENT_URL="Your client url" | ||
NEXT_PUBLIC_API_URL="Your api url" | ||
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN="Your api key, starts with pk..." | ||
NEXT_PUBLIC_WEB_CLIENT_ID="962352557394-..................apps.googleusercontent.com" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
—————————VITE CLIENT ENV——————————— | ||
NODE_ENV='development' | ||
VITE_PUBLIC_APP='vite' | ||
VITE_PUBLIC_CLIENT_URL="Your client url" | ||
VITE_PUBLIC_API_URL="Your api url" | ||
VITE_PUBLIC_MAPBOX_ACCESS_TOKEN="Your api key, starts with pk..." | ||
VITE_PUBLIC_WEB_CLIENT_ID="962352557394-..................apps.googleusercontent.com" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
// export const api = "http://add your ip address"; | ||
|
||
import { API_URL } from '@packrat/config'; | ||
|
||
/** | ||
* The api url. | ||
* format: "{scheme}://{serverhost}:{port}/api" | ||
* e.g: "http://localhost:4200/api" | ||
*/ | ||
export const api = API_URL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// DUMMY FILE. This is not actually used in the project. It is to fix Expo's build process. | ||
|
||
export const viteSource = process.env, | ||
export const viteSource = {}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import { LinkComponent, Router, CreateParam } from './model'; | ||
export declare function Link( | ||
props: Parameters<LinkComponent>, | ||
): ReturnType<LinkComponent>; | ||
export declare function Link(props: Parameters<LinkComponent>): ReturnType<LinkComponent>; | ||
export declare const createParam: CreateParam; | ||
export declare function useRouter(): Router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
import { FC } from 'react'; | ||
import { LinkProps } from 'solito/link'; | ||
export interface CreateParamOptions { | ||
initial?: string; | ||
parse?: (param: string) => unknown; | ||
stringify?: (param: unknown) => string; | ||
initial?: string; | ||
parse?: (param: string) => unknown; | ||
stringify?: (param: unknown) => string; | ||
} | ||
export interface Router { | ||
push: (url: URL) => void; | ||
replace: (url: URL) => void; | ||
back: () => void; | ||
push: (url: URL) => void; | ||
replace: (url: URL) => void; | ||
back: () => void; | ||
} | ||
export type LinkComponent = FC<LinkProps>; | ||
export type URL = | ||
| string | ||
| { | ||
pathname?: string; | ||
query?: Record<string, any>; | ||
state?: Record<string, any>; | ||
hash?: string; | ||
as?: string | object; | ||
}; | ||
export type URL = string | { | ||
pathname?: string; | ||
query?: Record<string, any>; | ||
state?: Record<string, any>; | ||
hash?: string; | ||
as?: string | object; | ||
}; | ||
export type CreateParam = <T>() => { | ||
useParam: ( | ||
key: keyof T, | ||
options?: CreateParamOptions, | ||
) => [value: any, setValue: (value: any) => void]; | ||
useParams: (key: keyof T) => { | ||
params: T; | ||
setParams: (value: any) => void; | ||
}; | ||
useParam: (key: keyof T, options?: CreateParamOptions) => [value: any, setValue: (value: any) => void]; | ||
useParams: (key: keyof T) => { | ||
params: T; | ||
setParams: (value: any) => void; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters