Files
Jellify/api/info.ts
Violet Caulfield 5754a3d236 Upgrade to React Native's New Architecture (#302)
Makes the UI operate more synchronously (read: fast 🔥🔥🔥)

Upgrades several dependencies
2025-04-30 03:30:24 -05:00

21 lines
494 B
TypeScript

import { Jellyfin } from '@jellyfin/sdk'
import { getModel, getUniqueIdSync } from 'react-native-device-info'
import { name, version } from '../package.json'
import { capitalize } from 'lodash'
console.debug(`Building Jellyfin Info`)
/**
* Client object that represents Jellify on the Jellyfin server.
*/
export const JellyfinInfo: Jellyfin = new Jellyfin({
clientInfo: {
name: capitalize(name),
version: version,
},
deviceInfo: {
name: getModel(),
id: getUniqueIdSync(),
},
})