mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-07 03:20:19 -06:00
modify loading name and version from package.json
This commit is contained in:
@@ -3,14 +3,12 @@ import { useQuery } from "@tanstack/react-query";
|
||||
import { getDeviceNameSync, getUniqueIdSync } from "react-native-device-info"
|
||||
import { QueryKeys } from "../enums/query-keys";
|
||||
import { useCredentials } from "./queries/keychain";
|
||||
|
||||
let clientName : string = require('root-require')('../package.json').name
|
||||
let clientVersion : string = require('root-require')('../package.json').version
|
||||
import { name, version } from "../package.json"
|
||||
|
||||
export const client : Jellyfin = new Jellyfin({
|
||||
clientInfo: {
|
||||
name: clientName,
|
||||
version: clientVersion
|
||||
name: name,
|
||||
version: version
|
||||
},
|
||||
deviceInfo: {
|
||||
name: getDeviceNameSync(),
|
||||
|
||||
Reference in New Issue
Block a user