- Jan 20, 2016
-
-
akwizgran authored
Metadata for groups. #221 See merge request !69
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
Run hooks when contacts/identities are added/removed. #209 Now that the sync layer is separated from its clients, actions that used to occur within the DatabaseComponent, such as adding or removing private groups when adding or removing a contact, have to be handled by clients. This patch adds a mechanism for clients to register hooks with the Contact/IdentityManager to be run when contacts/identities are being added/removed. The MessagingManager uses ContactManager hooks for adding and removing private groups, and the ContactManager uses IdentityManager hooks for removing contacts when an identity is removed. I've also changed the way some components register with the LifecycleManager and EventBus. This merge request depends on !64 - I'll merge them at the same time. Closes #209. See merge request !68
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
Whether or not a class needs to run as a service is an implementation decision.
-
akwizgran authored
Separate the sync layer from its clients. #112 This patch contains most of the work for #112. MessagingManager and ForumManager have been converted to BSP clients, and the sync layer's message and group formats no longer contain any client-specific data. Each client has a MessageValidator that's called by the ValidationManager to validate messages belonging to the client. A new MessageValidatedEvent informs listeners when a message has been validated. This required some changes to the UI, especially the notification manager. While working on the notification manager I realised it was calling Android API methods from background threads, which may be unsafe, and the notification logic was split across BriarService and AndroidNotificationManagerImpl. So I refactored those classes, along with AndroidExecutorImpl, which was using an unnecessary background thread. Still to do: * Synchronise blocks, not messages * Add message type field to message header as per BSP spec * Convert TransportPropertyManager into a BSP client * Convert SubscriptionUpdates/Acks into forum client messages See merge request !64
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
-
akwizgran authored
ENH: Replaces transport config with namespaced settings This MR contains the following: * Adds a new guice module: SettingsManager, that abstracts the settings interface from the underlying database * Uses SettingsManager to replace the db.getConfig/mergeConfig calls in the Settings activity * Replaces the getSettings and mergeSettings calls in the database modules to include a namespace parameter. Updates the corresponding queries in the Jdbc module * Removes the TransportConfig module, as it is not used anymore * Updates the DuplexPlugin interface, to reflect this change in schemas and calls * Updates the calls in the corresponding plugins, for both briar-android and briar-desktop * Updates the hardcoded plugins in the tests to reflect these changes and updates the unit tests. See merge request !65
-
akwizgran authored
Fix adding contacts with Android 6 Adds `ACCESS_COARSE_LOCATION` permission to manifest. Since API 23 this is required for access to the Bluetooth APIs. See: https://developer.android.com/intl/ko/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id Closes #223 See merge request !67
-
Santiago Torres-Arias authored
-
- Jan 19, 2016
-
-
Torsten Grote authored
Since API 23 this is required for access to the Bluetooth APIs See: https://developer.android.com/intl/ko/about/versions/marshmallow/android-6.0-changes.html#behavior-hardware-id Closes #223
-
akwizgran authored
Do Bluetooth Adapter enabling/disabling in background thread Also set the default preferences in a background thread when app starts. Closes #184 See merge request !66
-
Torsten Grote authored
also run setting the default preferences in a background thread Closes #184
-
- Jan 18, 2016
-
-
akwizgran authored
Offer option to uninstall Briar in a panic event (#211) Due to the nature of how Android app uninstall works without root access, this requires manual confirmation after a panic event was triggered. See merge request !63
-
Torsten Grote authored
Due to the nature of how Android app install/uninstall works without root, this requires manual confirmation after a panic was triggered. Closes #211
-
akwizgran authored
Fix notifications for current conversation * Remove notification about private messages when viewing the conversation * Do not show a notification for a conversation the user is viewing Closes #195 See merge request !61
-
akwizgran authored
Remove upstream jar files from all modules except briar-desktop This also adds a script for running tests without the Android SDK installed I've tried to find a better way to do this by conditionally including the briar-android project in settings.gradle, but failed. Please note that gradle needs to be installed to run the tests by executing: ``` ./run-tests-without-android.sh ``` See merge request !59
-
akwizgran authored
-
akwizgran authored
-
Torsten Grote authored
I've tried to find a better way to do this by conditionally including the briar-android project in settings.gradle, but failed. Please note that gradle needs to be installed to run the tests by executing: gradle test
-
- Jan 15, 2016
-
-
Torsten Grote authored
Please note that this script uses the 'configuration on demand' feature which is still incubating, so not every test run is guaranteed to work correctly. However, there have not been any problems so far.
-
Torsten Grote authored
-
Torsten Grote authored
-
Torsten Grote authored
-
- Jan 14, 2016
-
-
akwizgran authored
Do not show messages as unread when the conversation is open * Only show them as unread when they arrive out of order * Mark all messages as read when sending a message Closes #201 See merge request !62
-
Torsten Grote authored
* Only show them as unread when they arrive out of order * Mark all messages as read when sending a message
-
akwizgran authored
Delete database as panic response even when signed out The method `runOnDbThread()` depends on an executor that's created by roboguice at startup. It requires to be signed in, so use a different thread instead. Closes #215 See merge request !60
-
- Jan 13, 2016
-
-
Torsten Grote authored
The method `runOnDbThread()` depends on an executor that's created by roboguice at startup. It requires to be signed in, so use a different thread instead.
-
akwizgran authored
-
akwizgran authored
Add tests for metadata encoder and parser as well as UTF-8 tests for BDF reader and writer This also includes a commit to fix issues found in the metadata encoder and parser. See merge request !58
-
akwizgran authored
-
akwizgran authored
Use @Test annotation to test for exceptions being thrown (#213) Please note that this commit only uses the @Test annotation where exceptions are thrown at the end of the test, because otherwise the test would not be executed completely. Examples for this are in DatabaseComponentImplTest where many exceptions are thrown in close succession or in ConnectionRegistryImplTest where an exception is thrown in the middle of the test. Closes #213 See merge request !57
-
akwizgran authored
Support for Destructive Panic Actions This MR is based on and requires !52. More details are available in the commit message. All known issues have now been fixed by new upstream releases. See merge request !54
-
akwizgran authored
-