2016-07-19 16:59:26 +00:00
|
|
|
import * as appJson from '../app.json';
|
2016-07-07 20:10:55 +00:00
|
|
|
|
2016-07-21 22:26:51 +00:00
|
|
|
export function getAppVersion () {
|
2016-07-07 20:10:55 +00:00
|
|
|
return appJson.version;
|
|
|
|
}
|
2016-07-07 22:06:18 +00:00
|
|
|
|
2016-07-21 22:26:51 +00:00
|
|
|
export function getAppLongName () {
|
|
|
|
return appJson.longName;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getAppName () {
|
|
|
|
return appJson.productName;
|
|
|
|
}
|
|
|
|
|
2016-07-21 21:55:03 +00:00
|
|
|
export function isMac () {
|
|
|
|
return process.platform === 'darwin';
|
|
|
|
}
|
|
|
|
|
2016-07-07 22:06:18 +00:00
|
|
|
export function isDevelopment () {
|
|
|
|
return process.env.NODE_ENV === 'development';
|
|
|
|
}
|