template_0205

This commit is contained in:
Sofio
2026-02-05 13:16:05 +08:00
commit d93e4d9c9f
197 changed files with 52810 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
export interface ConfigBaseProps {
persistNavigation: "always" | "dev" | "prod" | "never"
catchErrors: "always" | "dev" | "prod" | "never"
exitRoutes: string[]
}
export type PersistNavigationConfig = ConfigBaseProps["persistNavigation"]
const BaseConfig: ConfigBaseProps = {
// This feature is particularly useful in development mode, but
// can be used in production as well if you prefer.
persistNavigation: "dev",
/**
* Only enable if we're catching errors in the right environment
*/
catchErrors: "always",
/**
* This is a list of all the route names that will exit the app if the back button
* is pressed while in that screen. Only affects Android.
*/
exitRoutes: ["Welcome"],
}
export default BaseConfig

View File

@@ -0,0 +1,16 @@
/**
* These are configuration settings for the dev environment.
*
* Do not include API secrets in this file or anywhere in your JS.
*
* https://reactnative.dev/docs/security#storing-sensitive-info
*/
export default {
API_URL: "https://api.rss2json.com/v1/",
AUTH_API_URL: "https://auth.upay01.com",
// Google Sign-In Client IDs from Google Cloud Console
GOOGLE_WEB_CLIENT_ID: "500211604129-4c5ij6e87jhlitoaclf8gfkco8ca6t9k.apps.googleusercontent.com",
GOOGLE_IOS_CLIENT_ID: "500211604129-uiln0fhiaj05jjg256oahkdcucpi6cqb.apps.googleusercontent.com",
GOOGLE_ANDROID_CLIENT_ID:
"500211604129-f5rsg6e1bi7300i0goii8ckl9ld5jk3r.apps.googleusercontent.com",
}

View File

@@ -0,0 +1,16 @@
/**
* These are configuration settings for the production environment.
*
* Do not include API secrets in this file or anywhere in your JS.
*
* https://reactnative.dev/docs/security#storing-sensitive-info
*/
export default {
API_URL: "https://api.rss2json.com/v1/",
AUTH_API_URL: "https://auth.upay01.com",
// Google Sign-In Client IDs from Google Cloud Console
GOOGLE_WEB_CLIENT_ID: "500211604129-4c5ij6e87jhlitoaclf8gfkco8ca6t9k.apps.googleusercontent.com",
GOOGLE_IOS_CLIENT_ID: "500211604129-uiln0fhiaj05jjg256oahkdcucpi6cqb.apps.googleusercontent.com",
GOOGLE_ANDROID_CLIENT_ID:
"500211604129-f5rsg6e1bi7300i0goii8ckl9ld5jk3r.apps.googleusercontent.com",
}

View File

@@ -0,0 +1,28 @@
/**
* This file imports configuration objects from either the config.dev.js file
* or the config.prod.js file depending on whether we are in __DEV__ or not.
*
* Note that we do not gitignore these files. Unlike on web servers, just because
* these are not checked into your repo doesn't mean that they are secure.
* In fact, you're shipping a JavaScript bundle with every
* config variable in plain text. Anyone who downloads your app can easily
* extract them.
*
* If you doubt this, just bundle your app, and then go look at the bundle and
* search it for one of your config variable values. You'll find it there.
*
* Read more here: https://reactnative.dev/docs/security#storing-sensitive-info
*/
import BaseConfig from "./config.base"
import DevConfig from "./config.dev"
import ProdConfig from "./config.prod"
let ExtraConfig = ProdConfig
if (__DEV__) {
ExtraConfig = DevConfig
}
const Config = { ...BaseConfig, ...ExtraConfig }
export default Config