Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App update #511

Merged
merged 17 commits into from Mar 20, 2023
Merged

App update #511

merged 17 commits into from Mar 20, 2023

Conversation

afischerdev
Copy link
Collaborator

The update is triggered from the issue 'update lookups' #468.

The app uses a download worker that runs in a foreground process (Android term since you can't see it, I'd say background).
So if you leave the app, the download process will continue even if you kill the app in the task list. When you re-enter the app you get in contact with the process again.

Process is stoppable from the status line or from the installer app.

The app should guide the user in the case of version differences (server, client) so that the update problem becomes clear and transparent.

It works with two dialogs

  • one for the main decision: update all. update only selected and drop others or cancel.
  • an other one for the situation lookups version is already new, some tiles have old version: update all old tiles, drop old files or cancel

For tests, a manageable number of tiles was generated with version 9 in lookups.dat and transferred manually to the phone.

Tests for the new apk:

Start User Action Result
lookups.dat version 9, 3 tiles version 9 select update for all tiles no dialog new lookups, 3 new tiles
lookups.dat version 9, 3 tiles version 9 select one tile for update option dialog: cancel start situation
lookups.dat version 9, 3 tiles version 9 select one tile for update option dialog: only selected new lookups, 1 new file
lookups.dat version 9, 3 tiles version 9 select one tile for update option dialog: select all new lookups, 3 new tiles
lookups.dat version 9, 3 tiles version 9 select one new tile option dialog: only selected new lookups, 1 new tile
lookups.dat version 9, 3 tiles version 9 select one new tile option dialog: select all new lookups, 4 new tiles
lookups.dat version 9, 3 tiles version 9 select all tiles for update no dialog, user breaks update, after one tile new lookups, 1 new, 2 old tiles
differences in versions
lookups.dat version 10, 2 tiles version 9, 1 tile version 10 select all tiles for update no dialog new lookups, 3 new tiles
lookups.dat version 10, 2 tiles version 9, 1 tile version 10 select one tile for update option dialog: cancel start situation
lookups.dat version 10, 2 tiles version 9, 1 tile version 10 select one tile for update option dialog: update all new lookups, 3 new tiles
lookups.dat version 10, 2 tiles version 9, 1 tile version 10 select one tile for update option dialog: drop old new lookups, 1 new tile

@afischerdev afischerdev temporarily deployed to BRouter March 14, 2023 16:52 — with GitHub Actions Inactive
@afischerdev afischerdev added this to the Version 1.6.4 milestone Mar 14, 2023
@afischerdev afischerdev temporarily deployed to BRouter March 15, 2023 18:23 — with GitHub Actions Inactive
@afischerdev afischerdev merged commit fc22892 into abrensch:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant