Commit Graph
100 Commits
Author SHA1 Message Date
akwizgran f3ea731565 Always wait for latch before using background handler. 2016-09-19 10:46:25 +01:00
akwizgran 16ac73d002 Don't throw an exception if the client has no delivery hook. 2016-09-16 22:02:04 +01:00
akwizgran b4714b5360 Removed redundant message state check. 2016-09-12 12:09:21 +01:00
akwizgran 8a3e5bfb50 Refactor ValidationManager and fix some bugs. #619 2016-09-09 18:03:14 +01:00
akwizgran 74f9a0dd73 Use our own SOCKS implementation to talk to Tor. 2016-09-05 19:59:22 +01:00
akwizgran bb00412187 Added @UiThread annotations, minor code cleanups. 2016-09-02 11:53:16 +01:00
akwizgran 625276067a Define iteration order of BdfDictionary. 2016-08-26 10:57:57 +01:00
akwizgran 30f2c192c6 Added MAC function to crypto component. 2016-08-26 10:06:24 +01:00
akwizgran 4ad0df2640 Use Briar's IoUtils, not H2's IOUtils. 2016-08-25 11:57:21 +01:00
akwizgran 3bccdfa947 Upgraded gradle to 2.14.1 and gradle plugin to 2.1.3. 2016-08-24 11:06:49 +01:00
akwizgran ef02908082 Improved blog controller's caching. 2016-08-23 23:34:33 +01:00
akwizgran 3aa3811d1b Fix progress bar issues. 2016-08-23 17:04:48 +01:00
akwizgran 1f5de42844 Added hidden service address for dev reports. 2016-08-23 10:54:21 +01:00
akwizgran 18dd7d7aa9 Use socket timeout to limit number of open sockets. 2016-08-22 18:11:04 +01:00
akwizgran 5f86dd0207 Simple rate-limited server for saving dev reports. 2016-08-22 17:35:23 +01:00
akwizgran be84afc543 System.lineSeparator() doesn't exist in Java 6. 2016-08-22 16:20:38 +01:00
akwizgran c6c62cab6c Use one connection per dev report.
This allows simpler server-side code, and a failure part-way through sending won't require restarting from the beginning next time.
2016-08-22 16:12:57 +01:00
akwizgran d24e18a5d9 Use IoUtils.copy() in Tor plugin. 2016-08-22 16:05:15 +01:00
akwizgran 34a4a3f3c6 Renamed FIleUtils to IoUtils, added copy() method. 2016-08-22 15:29:13 +01:00
akwizgran 28be7d5de3 Added UI thread methods to AndroidExecutor. 2016-08-20 18:41:05 +01:00
akwizgran dbdf567d4e Overhaul notifications to fix various bugs.
Fixes #539, #564 and #568.
2016-08-20 18:40:59 +01:00
akwizgran 98337a16ec Make BlogController thread-safe. #555 2016-08-20 16:07:04 +01:00
akwizgran 7e086d0f4e Don't try to reuse already bound ports for key agreement. 2016-08-10 18:06:07 +01:00
akwizgran 55b7e95d35 Update Tor assets if they're older than the APK. #582 2016-08-05 15:37:39 +01:00
akwizgran 36d15358a1 Don't connect to Tor if it's already running.
Fixes #572, #578.
2016-08-05 13:59:25 +01:00
akwizgran 4a4366078a Moved briar-android tests into their respective packages. 2016-08-03 14:46:15 +01:00
akwizgran a51d2f47af Send messages in ascending order of timestamp.
The old behaviour was a leftover from the days of limited retention periods. The new behaviour will interact better with dependencies and message queues.
2016-08-01 18:49:24 +01:00
akwizgran 2c993b62c2 Made the logger and a constant static. 2016-08-01 14:38:58 +01:00
akwizgran 737f0dac1e Initialise adapter in onCreate() to avoid double refreshing. 2016-08-01 14:38:55 +01:00
akwizgran 0ffbc28792 Validator should call getMessageMetadataForValidator(). 2016-08-01 11:16:22 +01:00
akwizgran 38979ef504 Controllers should depend on ResultHandler not its impl. 2016-07-31 15:21:15 +01:00
akwizgran 5c186db4e4 Fixed a test that was broken by validation changes. 2016-07-31 15:18:14 +01:00
akwizgran 49437522f6 Fixed a test that was broken by my code cleanup. 2016-07-31 14:15:23 +01:00
akwizgran 1bfa1016b4 Code cleanup, added FIXMEs for bigger issues. 2016-07-30 16:43:15 +01:00
akwizgran fa0639d220 Overlay background colour as an alternative to setAlpha(). 2016-07-29 18:29:14 +01:00
akwizgran b818d6846c Don't close keyboard after sending private message. #355 2016-05-13 11:55:43 +01:00
akwizgran 950c6525f6 Bumped version to 0.12 and expiry date to 1 July 2016. 2016-05-13 11:52:11 +01:00
akwizgran 1528aa0d12 Code review nitpicks. 2016-05-12 18:29:09 +01:00
akwizgran f2ab0eff53 Simple metadata queries. #222
Added support for retrieving metadata that matches all key/value pairs in a query.
2016-05-12 17:40:11 +01:00
akwizgran 7412ca59ac Looks like we don't need Maven Central. 2016-05-12 14:25:00 +01:00
akwizgran ec083d617e Upgraded Gradle to 2.13, added local Maven repo. 2016-05-12 13:36:34 +01:00
akwizgran 8ceaabddf4 Fixed dependencies of ForumSharingIntegrationTest. 2016-05-11 17:23:53 +01:00
akwizgran 2f11f81582 Collect dev report data on a thread with a looper. #328 2016-05-11 15:41:22 +01:00
akwizgran 6873dbc493 UI code cleanup. 2016-05-11 13:52:40 +01:00
akwizgran 7a3bcc58ae Inject fragments. Fixes an NPE due to uninitialised fields. 2016-05-11 13:31:45 +01:00
akwizgran 2a980af69a Set border of author avatars to @color/briar_primary. 2016-05-11 11:54:40 +01:00
akwizgran 2cc621ed1b Bumped DB schema version.
Prevent old forum sharing messages from causing spurious exceptions.
2016-05-10 16:19:38 +01:00
akwizgran ef19f2ec48 Start plugins asynchronously.
This allows the lifecycle manager to continue starting other services while plugins are starting, and allows the plugin manager to stop each plugin as soon as it has started.
2016-05-06 12:14:47 +01:00
akwizgran 86f409d0bf Don't send dev reports until transport is enabled. 2016-05-06 12:14:47 +01:00
akwizgran e36d1c8954 Fixed possible NPE from uninitialised control connection. 2016-05-06 12:14:47 +01:00
akwizgran 2ecccc66d1 Ensure that Plugin instances aren't reused. 2016-05-06 12:14:38 +01:00
akwizgran 69f23ead9b Ensure that Service instances aren't reused. 2016-05-06 12:14:37 +01:00
akwizgran 57be439f08 Code cleanup and logging. 2016-05-06 12:11:40 +01:00
akwizgran e3bf20aed5 Reschedule polling when connections are opened or closed. 2016-05-06 12:11:40 +01:00
akwizgran 1bdd7ca761 Removed empty Poller interface. 2016-05-06 12:11:39 +01:00
akwizgran 5044f34ba9 Moved all automatic connection logic into poller. 2016-05-06 12:11:39 +01:00
akwizgran ff8301521c Replaced Timer with ScheduledExecutorService. #258 2016-05-06 12:11:34 +01:00
akwizgran 036c5d6753 No need to poll plugins before they're enabled. 2016-05-06 12:09:30 +01:00
akwizgran 1ae98ef2b5 Reduced polling intervals to improve connectivity. 2016-05-06 12:09:30 +01:00
akwizgran e5547a5a12 Removed extra logging for Tor connection failures. 2016-05-06 12:09:30 +01:00
akwizgran fbb3c0f9f2 Use exponential backoff for Tor polling. #314 2016-05-06 12:09:25 +01:00
akwizgran dd9bc74262 Try to reconnect on connection loss. #262 2016-05-06 12:07:56 +01:00
akwizgran 27b4d0ef1f Updated jtorctl binary with new patch. 2016-05-06 12:03:39 +01:00
akwizgran 5a84e0fe5c Added "Touch to open Briar" to ongoing notification. 2016-05-04 09:32:47 +01:00
akwizgran 7e755e260a Restored opaque background to progress wheels. #340 2016-05-03 18:46:45 +01:00
akwizgran 5fab9c383d Updated forum toasts and renamed delete icon. 2016-05-03 16:21:26 +01:00
akwizgran 400a11e3b0 Renamed circuit status method. 2016-05-03 15:41:59 +01:00
akwizgran 25b165ac1e Set ongoing notification to minimum priority. #154 2016-05-03 14:14:15 +01:00
akwizgran a0f22ec3d1 Refactored connection status variables into inner class. 2016-05-03 11:55:49 +01:00
akwizgran f58ee13244 Reset connection status when enabling network. 2016-05-03 11:53:27 +01:00
akwizgran 63d849b684 Hold partial wake lock to keep Tor connections alive. 2016-05-03 11:53:23 +01:00
akwizgran c35cad9719 Fixed name of Tor mobile data setting. #316 2016-05-03 11:43:25 +01:00
akwizgran 7ad21708fe Reinitialise viewfinder when camera view is shown. #331 2016-05-03 09:53:09 +01:00
akwizgran ea973b61c6 Bumped expiry date to 1 June 2016. 2016-05-02 17:02:01 +01:00
akwizgran 237a89d5c2 Upgraded support library to 23.2.1. 2016-05-02 16:54:41 +01:00
akwizgran 0a088af010 Use IoExecutor for background IO tasks. 2016-05-02 16:54:40 +01:00
akwizgran c21854fbe4 Use AndroidExecutor for background tasks that make API calls. 2016-05-02 16:54:35 +01:00
akwizgran c72e5be804 Removed old user feedback activity. #336 2016-04-29 22:54:37 +01:00
akwizgran 860d06cefa Revert to support library 23.1.1. 2016-04-29 13:40:00 +01:00
akwizgran 9b060c74b6 Upgraded build tools. 2016-04-29 11:34:56 +01:00
akwizgran 3bfef877ec Upgraded support library. 2016-04-27 18:17:50 +01:00
akwizgran efd9976ade Upgraded Gradle to 2.10, Android plugin to 2.1.0. 2016-04-27 18:03:00 +01:00
akwizgran 4464a66463 Upgrade to Java 1.7 where possible. 2016-04-27 13:18:55 +01:00
akwizgranandstr4d f2fc0a43c9 Don't delete unsent reports on application start 2016-04-27 22:22:21 +12:00
akwizgranandstr4d d06a6e25cb Check that result of File#listFiles() is not null. 2016-04-27 22:22:21 +12:00
akwizgran 8630f6f24f Don't allow 'this' to escape the constructor. 2016-04-26 10:03:28 +01:00
akwizgran 141d6497ef Removed unused layout code and imports. 2016-04-26 09:34:48 +01:00
akwizgran e9f77ecd37 Use assertEquals() for more informative failure messages. 2016-04-25 17:05:22 +01:00
akwizgran d414e12fb5 Don't return transport properties for inactive contacts.
This avoids wasted connection attempts to contacts that are in the process of being introduced.
2016-04-25 16:12:24 +01:00
akwizgran 2fddec85dd Don't activate contacts on incoming streams.
This leaves the contact and the introduction session in inconsistent states.
2016-04-25 16:11:15 +01:00
akwizgran 3b8689f892 Tweaked introduction wording, use Collections.emptyList(). 2016-04-25 13:14:22 +01:00
akwizgran b5fc7cf724 Use consistent styling for dialogs. #296 2016-04-25 12:52:28 +01:00
akwizgran 9b5d3ecb7a Added public key and placeholder onion address. 2016-04-21 16:07:51 +01:00
akwizgran 5457588dbd Placeholder test was causing tests to fail in AS 2.0. 2016-04-21 12:20:26 +01:00
akwizgranandstr4d 28086cd359 ECIES encryption for feedback and crash reports. 2016-04-21 11:38:46 +12:00
akwizgranandstr4d 94cca59249 Use Bouncy Castle for encoding public keys. 2016-04-21 11:38:46 +12:00
akwizgran 53eb67b153 Removed Tor binaries from repo. #203 2016-04-18 12:50:34 +01:00
akwizgran 0927bd5b01 Moved zxing dependency to briar-android. 2016-04-15 17:51:22 +01:00
akwizgran 6197f5a44c Catch runtime exceptions from QR code decoder. #298 2016-04-15 17:06:05 +01:00
akwizgran 98b6b1f471 Don't use inverse style for progress bars. #286 2016-04-15 15:20:32 +01:00