dont download update until approved
This commit is contained in:
@@ -75,7 +75,6 @@ export function useApplyPullRequestOTAUpdate() {
|
|||||||
await setExtraParamsPullRequest(channel)
|
await setExtraParamsPullRequest(channel)
|
||||||
const res = await checkForUpdateAsync()
|
const res = await checkForUpdateAsync()
|
||||||
if (res.isAvailable) {
|
if (res.isAvailable) {
|
||||||
await fetchUpdateAsync()
|
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
'Deployment Available',
|
'Deployment Available',
|
||||||
`A deployment of ${channel} is availalble. Applying this deployment may result in a bricked installation, in which case you will need to reinstall the app and may lose local data. Are you sure you want to proceed?`,
|
`A deployment of ${channel} is availalble. Applying this deployment may result in a bricked installation, in which case you will need to reinstall the app and may lose local data. Are you sure you want to proceed?`,
|
||||||
@@ -88,6 +87,7 @@ export function useApplyPullRequestOTAUpdate() {
|
|||||||
text: 'Relaunch',
|
text: 'Relaunch',
|
||||||
style: 'default',
|
style: 'default',
|
||||||
onPress: async () => {
|
onPress: async () => {
|
||||||
|
await fetchUpdateAsync()
|
||||||
await reloadAsync()
|
await reloadAsync()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user