Skip to content

Commit

Permalink
fix(autoupdate): add update logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuKs committed Dec 3, 2019
1 parent c7f572c commit 132ef03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ export async function triggerUpdateIfNeeded() {
const fileAlreadyExists = await RNFS.exists(RNFS.CachesDirectoryPath + '/FluxUpgrade.apk');
if (fileAlreadyExists) {
try {
console.info('removing existing apk file.')
await RNFS.unlink(RNFS.CachesDirectoryPath + '/FluxUpgrade.apk');
BugReporter.breadcrumb('apk downloaded file unlink', 'log');
}
catch (e) {
console.error(e);
BugReporter.notify('upgrade: unlink failed');
BugReporter.breadcrumb('apk upgrade failure', 'log');
return;
Expand Down

0 comments on commit 132ef03

Please sign in to comment.