mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Reverts commits d58c1a77 (feat: ios widget) and 08fe871d (wip: widget) that were accidentally merged from feat/ios-widget-build-target branch.
25 lines
671 B
JavaScript
25 lines
671 B
JavaScript
module.exports = ({ config }) => {
|
|
if (process.env.EXPO_TV !== "1") {
|
|
config.plugins.push("expo-background-task");
|
|
|
|
config.plugins.push([
|
|
"react-native-google-cast",
|
|
{ useDefaultExpandedMediaControls: true },
|
|
]);
|
|
|
|
// KSPlayer for iOS (GPU acceleration + native PiP)
|
|
config.plugins.push("./plugins/withKSPlayer.js");
|
|
}
|
|
|
|
// Only override googleServicesFile if env var is set
|
|
const androidConfig = {};
|
|
if (process.env.GOOGLE_SERVICES_JSON) {
|
|
androidConfig.googleServicesFile = process.env.GOOGLE_SERVICES_JSON;
|
|
}
|
|
|
|
return {
|
|
...(Object.keys(androidConfig).length > 0 && { android: androidConfig }),
|
|
...config,
|
|
};
|
|
};
|