chore: version

This commit is contained in:
Fredrik Burmester
2025-07-10 21:42:35 +02:00
committed by Alex Kim
parent 3e74bfdeee
commit bcd54718c7
2 changed files with 16 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
"files": { "files": {
"includes": [ "includes": [
"*", "**/*",
"!node_modules/**", "!node_modules/**",
"!ios/**", "!ios/**",
"!android/**", "!android/**",

View File

@@ -1,22 +1,16 @@
import "@/augmentations"; import "@/augmentations";
import { useInterval } from "@/hooks/useInterval";
import { JellyseerrApi, useJellyseerr } from "@/hooks/useJellyseerr";
import { useSettings } from "@/utils/atoms/settings";
import { writeErrorLog, writeInfoLog } from "@/utils/log";
import { storage } from "@/utils/mmkv";
import { store } from "@/utils/store";
import { type Api, Jellyfin } from "@jellyfin/sdk"; import { type Api, Jellyfin } from "@jellyfin/sdk";
import type { UserDto } from "@jellyfin/sdk/lib/generated-client/models"; import type { UserDto } from "@jellyfin/sdk/lib/generated-client/models";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api"; import { getUserApi } from "@jellyfin/sdk/lib/utils/api";
import { useMutation, useQuery } from "@tanstack/react-query"; import { useMutation } from "@tanstack/react-query";
import axios, { AxiosError } from "axios"; import axios, { AxiosError } from "axios";
import { router, useSegments } from "expo-router"; import { router, useSegments } from "expo-router";
import * as SplashScreen from "expo-splash-screen"; import * as SplashScreen from "expo-splash-screen";
import { atom, useAtom } from "jotai"; import { atom, useAtom } from "jotai";
import type React from "react"; import type React from "react";
import { import {
type ReactNode,
createContext, createContext,
type ReactNode,
useCallback, useCallback,
useContext, useContext,
useEffect, useEffect,
@@ -27,6 +21,12 @@ import { useTranslation } from "react-i18next";
import { Platform } from "react-native"; import { Platform } from "react-native";
import { getDeviceName } from "react-native-device-info"; import { getDeviceName } from "react-native-device-info";
import uuid from "react-native-uuid"; import uuid from "react-native-uuid";
import { useInterval } from "@/hooks/useInterval";
import { JellyseerrApi, useJellyseerr } from "@/hooks/useJellyseerr";
import { useSettings } from "@/utils/atoms/settings";
import { writeErrorLog, writeInfoLog } from "@/utils/log";
import { storage } from "@/utils/mmkv";
import { store } from "@/utils/store";
interface Server { interface Server {
address: string; address: string;
@@ -64,7 +64,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
setJellyfin( setJellyfin(
() => () =>
new Jellyfin({ new Jellyfin({
clientInfo: { name: "Streamyfin", version: "0.28.0" }, clientInfo: { name: "Streamyfin", version: "0.28.1" },
deviceInfo: { deviceInfo: {
name: deviceName, name: deviceName,
id, id,
@@ -80,9 +80,9 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
const [isPolling, setIsPolling] = useState<boolean>(false); const [isPolling, setIsPolling] = useState<boolean>(false);
const [secret, setSecret] = useState<string | null>(null); const [secret, setSecret] = useState<string | null>(null);
const [ const [
settings, _settings,
updateSettings, _updateSettings,
pluginSettings, _pluginSettings,
setPluginSettings, setPluginSettings,
refreshStreamyfinPluginSettings, refreshStreamyfinPluginSettings,
] = useSettings(); ] = useSettings();
@@ -93,7 +93,7 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
return { return {
authorization: `MediaBrowser Client="Streamyfin", Device=${ authorization: `MediaBrowser Client="Streamyfin", Device=${
Platform.OS === "android" ? "Android" : "iOS" Platform.OS === "android" ? "Android" : "iOS"
}, DeviceId="${deviceId}", Version="0.28.0"`, }, DeviceId="${deviceId}", Version="0.28.1"`,
}; };
}, [deviceId]); }, [deviceId]);
@@ -287,8 +287,8 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
mutationFn: async () => { mutationFn: async () => {
api api
?.delete(`/Streamyfin/device/${deviceId}`) ?.delete(`/Streamyfin/device/${deviceId}`)
.then((r) => writeInfoLog("Deleted expo push token for device")) .then((_r) => writeInfoLog("Deleted expo push token for device"))
.catch((e) => .catch((_e) =>
writeErrorLog("Failed to delete expo push token for device"), writeErrorLog("Failed to delete expo push token for device"),
); );