videogen/apps/watch/app.config.ts
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

71 lines
2.5 KiB
TypeScript

/**
* Menivor TV (MV8, MV9). One multi-tenant app per store under our accounts
* (OD-MV7): viewers pick a channel inside the app or open a channel link.
*
* - Phones and tablets: `expo run:ios` / `expo run:android` (cast button on).
* - Apple TV, Android TV and Fire TV: `EXPO_TV=1` switches react-native-tvos
* on through @react-native-tvos/config-tv (Fire TV uses the Android TV build
* with the leanback launcher).
*/
import type { ConfigContext, ExpoConfig } from "expo/config";
export const API_BASE_DEFAULT = "https://api.menivor.com/api/v1";
export function isTvBuild(env: Record<string, string | undefined> = process.env): boolean {
return env.EXPO_TV === "1";
}
export default function config({ config: base }: ConfigContext, env = process.env): ExpoConfig {
const tv = isTvBuild(env);
const plugins: ExpoConfig["plugins"] = [
"expo-router",
"expo-secure-store",
["expo-video", { supportsBackgroundPlayback: false, supportsPictureInPicture: !tv }],
];
if (tv) {
plugins.push(["@react-native-tvos/config-tv", { isTV: true, showVerboseWarnings: false }]);
} else {
plugins.push(["react-native-google-cast", { receiverAppId: env.EXPO_PUBLIC_CAST_RECEIVER_ID || "CC1AD845" }]);
// Wave Q QM1.5: per-channel alerts on phones (new episodes, live starts).
plugins.push("expo-notifications");
}
return {
...base,
name: "Menivor TV",
slug: "menivor-watch",
scheme: "menivor-watch",
version: "1.0.0",
icon: "./assets/icon.png",
orientation: tv ? "landscape" : "default",
userInterfaceStyle: "dark",
ios: {
bundleIdentifier: "com.arhansuba.menivor.watch",
supportsTablet: true,
associatedDomains: ["applinks:menivor.com"],
},
android: {
package: "com.menivor.watch",
adaptiveIcon: { foregroundImage: "./assets/adaptive-icon.png", backgroundColor: "#0a0a0b" },
intentFilters: [
{
action: "VIEW",
autoVerify: true,
data: [{ scheme: "https", host: "menivor.com", pathPrefix: "/c/" }],
category: ["BROWSABLE", "DEFAULT"],
},
],
},
plugins,
experiments: { typedRoutes: false },
extra: {
apiBase: env.EXPO_PUBLIC_API_BASE || API_BASE_DEFAULT,
scribaseViewersUrl: env.EXPO_PUBLIC_SCRIBASE_VIEWERS_URL || "",
scribaseViewersAnonKey: env.EXPO_PUBLIC_SCRIBASE_VIEWERS_ANON_KEY || "",
tv,
externalCheckoutIos: env.EXPO_PUBLIC_EXTERNAL_CHECKOUT_IOS === "1",
eas: { projectId: env.EAS_PROJECT_ID || "" },
},
};
}