1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/packages/app-mobile/utils/getPackageInfo.ts
2024-04-25 13:53:46 +01:00

18 lines
418 B
TypeScript

import shim from '@joplin/lib/shim';
import { PackageInfo } from '@joplin/lib/versionInfo';
import ReactNativeVersionInfo from 'react-native-version-info';
const getPackageInfo = (): PackageInfo => {
const version = shim.appVersion();
return {
description: 'Joplin for Mobile',
name: 'Joplin',
version,
build: {
appId: ReactNativeVersionInfo.bundleIdentifier,
},
};
};
export default getPackageInfo;