diff options
author | Ansh <anshnanda10@gmail.com> | 2023-06-02 13:27:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 13:27:59 -0700 |
commit | ba4bb46c3fc3d670e565c69bdf71dbb4510b51f0 (patch) | |
tree | cb48529f6fcf6553d0b8697aeb66d405d4124166 /src/lib/app-info.ts | |
parent | ad4eaf5ed2e35233ecc7b29ddcafc52c2001dcd1 (diff) | |
download | voidsky-ba4bb46c3fc3d670e565c69bdf71dbb4510b51f0.tar.zst |
[APP-107] OTA updates (#587)
* add 1000ms fallbackToCacheTimeout * add listener via useOTAUpdate hook and show modal if update is available * finish expo-updates setup * setup useOTAUpdate hook * add 1000ms fallbackToCacheTimeout * add listener via useOTAUpdate hook and show modal if update is available * finish expo-updates setup * setup useOTAUpdate hook * add OTA updates * Update build.md * temporarily disable ota updates * refactor useOTAUpdate code
Diffstat (limited to 'src/lib/app-info.ts')
-rw-r--r-- | src/lib/app-info.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/app-info.ts b/src/lib/app-info.ts index a365e7e9f..3f026d3fe 100644 --- a/src/lib/app-info.ts +++ b/src/lib/app-info.ts @@ -1,2 +1,5 @@ import VersionNumber from 'react-native-version-number' +import * as Updates from 'expo-updates' +export const updateChannel = Updates.channel + export const appVersion = `${VersionNumber.appVersion} (${VersionNumber.buildVersion})` |