mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Some checks failed
🏗️ Build Apps / 🤖 Build Android APK (Phone) (push) Has been cancelled
🏗️ Build Apps / 🤖 Build Android APK (TV) (push) Has been cancelled
🏗️ Build Apps / 🍎 Build iOS IPA (Phone) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (actions) (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🚦 Security & Quality Gate / 📝 Validate PR Title (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (typecheck) (push) Has been cancelled
🕒 Handle Stale Issues / 🗑️ Cleanup Stale Issues (push) Has been cancelled
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
// react-native.config.js
|
|
//https://docs.expo.dev/modules/autolinking/
|
|
|
|
const isTV = process.env?.EXPO_TV === "1";
|
|
|
|
const disableForTV = (_moduleName) =>
|
|
isTV
|
|
? {
|
|
platforms: {
|
|
ios: null,
|
|
android: null,
|
|
},
|
|
}
|
|
: undefined;
|
|
|
|
module.exports = {
|
|
dependencies: {
|
|
"react-native-volume-manager": !isTV
|
|
? {
|
|
platforms: {
|
|
// leaving this blank seems to enable auto-linking which is what we want for mobile
|
|
},
|
|
}
|
|
: {
|
|
platforms: {
|
|
android: null,
|
|
},
|
|
},
|
|
"expo-notifications": disableForTV("expo-notifications"),
|
|
"react-native-image-colors": disableForTV("react-native-image-colors"),
|
|
"expo-sharing": disableForTV("expo-sharing"),
|
|
"expo-haptics": disableForTV("expo-haptics"),
|
|
"expo-brightness": disableForTV("expo-brightness"),
|
|
"expo-sensors": disableForTV("expo-sensors"),
|
|
"expo-screen-orientation": disableForTV("expo-screen-orientation"),
|
|
"react-native-ios-context-menu": disableForTV(
|
|
"react-native-ios-context-menu",
|
|
),
|
|
"react-native-ios-utilities": disableForTV("react-native-ios-utilities"),
|
|
"react-native-pager-view": disableForTV("react-native-pager-view"),
|
|
},
|
|
};
|