3 Commits
Author SHA1 Message Date
l-jonas 5680c6c554 Use stable coroutines (#72)
* Move google to the top of allrepositories.google

This should fix build issues according to https://gitlab.com/fdroid/fdroiddata/issues/1423

* Update Kotlin and use stable coroutines

* Optimize imports

* Optimize imports again

* Remove some imports manually
2018-11-08 16:27:27 +01:00
l-jonas eaf948d3cd Refactor file downloading (#57)
* Make response handling more modular

* Remove shared state of the BlockPuller tasks

* Implement dispatching errors at the file downloading

* Remove unneeded locking

* Count sums as long

* Fix error caused by using notify without syncrhonized

* Add TODOs

* BlockPuller: Add timeout and concurrency limit

* Cache file blocks on disk during downloading

* Read downloaded files block by block

* Add function to delete temp data in bulk

* Implement deleting temp data at download failure

* Fix error in progress reporting

* Fix canceling

* Fix handling timeouts at block requests

* Run auto reformat

* Use status object for the block puller download progress

* Improve file downloading by the SyncthingProvider

* Fix NullPointerException when getting totalFileSize
2018-10-16 14:16:55 -05:00
l-jonas c257a730b0 Include syncthing java (#54)
* Import syncthing-java/master using the import gradle project wizard

* Update buildscripts for the current gradle version

* Add kotlin plugin to the library modules

* Use locale module instead of maven local

* Add Kotlin runtime library to all projects

* Add compiling protocol buffers

* Update module names

* Remove building the old syncthing-java in the CI

* Remove installing the protocol buffer compiler

* Fix building the default repository implementation
2018-10-04 13:25:41 -05:00