mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-16 05:51:57 +01:00
fix: conditionally load TV plugin based on build target
Moves TV-specific plugin configuration from static app.json to dynamic loading in app.config.js based on EXPO_TV environment variable. Ensures TV plugin only loads for TV builds while phone-specific plugins load for non-TV builds, preventing conflicts between different build targets.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
module.exports = ({ config }) => {
|
||||
if (process.env.EXPO_TV !== "1") {
|
||||
if (process.env.EXPO_TV === "1") {
|
||||
// Add TV-specific plugin for TV builds
|
||||
config.plugins.push("@react-native-tvos/config-tv");
|
||||
} else {
|
||||
// Add non-TV specific plugins for phone builds
|
||||
config.plugins.push("expo-background-task");
|
||||
|
||||
config.plugins.push([
|
||||
|
||||
Reference in New Issue
Block a user