Bug #2908

move webserver to its own Service

Added by hans almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:01/24/2014
Priority:NormalDue date:
Assignee:hans% Done:

0%

Category:-
Target version:Integrate Kerplapp into FDroid
Component:

Description

right now, the Kerplapp webserver is run in a thread off of the main UI thread. It should be run in its own Service so that it doesn't get killed by things like a screen rotate in KerplappActivity.

Associated revisions

Revision fd2fd8ae
Added by hans almost 4 years ago

force main screen to portrait mode to prevent crashes on rotate

This should be handled better, like having the webserver running in its own
Service. For now, we just force KerplappActivity to always be portrait,
then we don't need to think about screen rotation.

refs #2908

Revision aa3daf27
Added by hans over 3 years ago

move webserver to a service for hosting all swapping stuff

The webserver thread is now in a separate Service that is meant to host all
the stuff related to swapping repos and apps. Anything related to swapping
that needs to occur in the background so that the user can do whatever with
FDroid should go in this service. That then provides an easy way to start
and stop swapping as well as provide a notification for when swapping is
active.

fixes #2908 https://dev.guardianproject.info/issues/2908

Revision 6b9b5ce2
Added by hans over 3 years ago

create RESTART msg and wire it up to LocalRepoService

This is needed to restart the webserver when the wifi or IP address changes
so that it can bind to the new address. I added a STOP and START message
for good measure, they will be useful for controlling the webserver based
on the status of swapping.

fixes #2908 https://dev.guardianproject.info/issues/2908

Revision 95520608
Added by hans over 3 years ago

move LocalRepoService handling to FDroidApp

This provides very easy to use way to start, stop, and restart the local
repo from anywhere in the app, without needing any special context or info.

refs #2908 https://dev.guardianproject.info/issues/2908

Revision 8936ac04
Added by hans over 3 years ago

run LocalRepoService as a unkillable foreground Service

This also provides a unkillable notification. Since the local repo is only
supposed to be running while users are actively in the swap process, it
makes sense to make this a permanent, unclearable notification.

refs #2908 https://dev.guardianproject.info/issues/2908

History

#1 Updated by hans over 3 years ago

  • Status changed from New to Resolved

#2 Updated by hans over 3 years ago

Applied in changeset kerplapp|commit:aa3daf2703b2991cb84f668bf10eee11a9ad6aa6.

#3 Updated by hans over 3 years ago

Applied in changeset kerplapp|commit:6b9b5ce2a356035c7341fd83fc76ac7f34ae68dd.

#4 Updated by hans over 3 years ago

  • Status changed from Resolved to Closed
  • Assignee set to hans

Also available in: Atom PDF