diff options
author | Hailey <me@haileyok.com> | 2024-04-04 21:19:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:19:28 -0700 |
commit | cddbbc4bd4aba10306cb828bebc46af3727a6fb6 (patch) | |
tree | ee163476ebc7f4d423b70e28588119b4c4997bd6 /src/lib/app-info.ts | |
parent | 0433f8ad68c6778d79d97b35f26ca03ffa9b0db9 (diff) | |
download | voidsky-cddbbc4bd4aba10306cb828bebc46af3727a6fb6.tar.zst |
migrate to `expo-application` (#3417)
* migrate to `expo-application` * replace additional usage
Diffstat (limited to 'src/lib/app-info.ts')
-rw-r--r-- | src/lib/app-info.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/app-info.ts b/src/lib/app-info.ts index 3071e031b..83406bf2e 100644 --- a/src/lib/app-info.ts +++ b/src/lib/app-info.ts @@ -1,9 +1,9 @@ -import VersionNumber from 'react-native-version-number' +import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application' export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development' export const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight' const UPDATES_CHANNEL = IS_TESTFLIGHT ? 'testflight' : 'production' -export const appVersion = `${VersionNumber.appVersion} (${ - VersionNumber.buildVersion -}, ${IS_DEV ? 'development' : UPDATES_CHANNEL})` +export const appVersion = `${nativeApplicationVersion} (${nativeBuildVersion}, ${ + IS_DEV ? 'development' : UPDATES_CHANNEL +})` |