2024-04-25 14:53:46 +02:00
|
|
|
import shim from '@joplin/lib/shim';
|
|
|
|
import { PackageInfo } from '@joplin/lib/versionInfo';
|
|
|
|
import ReactNativeVersionInfo from 'react-native-version-info';
|
2024-08-08 20:57:32 +02:00
|
|
|
const basePackageInfo = require('../packageInfo.js');
|
2024-04-25 14:53:46 +02:00
|
|
|
|
|
|
|
const getPackageInfo = (): PackageInfo => {
|
|
|
|
const version = shim.appVersion();
|
|
|
|
return {
|
2024-08-08 20:57:32 +02:00
|
|
|
...basePackageInfo,
|
|
|
|
|
|
|
|
// Android, iOS, and Web have independent versions -- fetch this
|
|
|
|
// information at runtime:
|
|
|
|
name: 'Joplin Mobile',
|
2024-04-25 14:53:46 +02:00
|
|
|
version,
|
|
|
|
build: {
|
|
|
|
appId: ReactNativeVersionInfo.bundleIdentifier,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default getPackageInfo;
|