akwizgran
020e4df8d9
Added boilerplate bundle encryption code to HelloWorldActivity.
...
It would be nice to be able to put this code in a superclass, since in
the case of an activity like this it only deals with superclass state.
2013-02-19 00:54:21 +00:00
akwizgran
d136964bea
Fixed a logging message in the bundle decrypting code.
2013-02-19 00:43:36 +00:00
akwizgran
9215537d80
Refactored bundle encryption code.
2013-02-19 00:41:50 +00:00
akwizgran
f33348ff98
Use static injection to allow superclass state to be encrypted.
...
Mutable static fields should be avoided, but this is the only way to
make the bundle encrypter available before calling
RoboActivity.onCreate(), which needs to be passed the decrypted state.
2013-02-19 00:11:10 +00:00
akwizgran
51db9ce1fd
Encrypt bundles in case the OS writes them to unencrypted storage.
...
Only the bundle contents created by Briar classes are encrypted.
2013-02-18 18:56:00 +00:00
akwizgran
49e6113e5d
Allow binding to the local BriarService instance.
2013-02-18 18:54:07 +00:00
akwizgran
00c0729f10
Add the new contact to the DB when the invitation process completes.
2013-02-18 17:47:34 +00:00
akwizgran
b8cf58c426
Key manager should listen for TransportRemovedEvent and erase keys.
2013-02-18 15:55:41 +00:00
akwizgran
d1fedaed57
Replaced InvitationManager with a generic ReferenceManager for Android.
2013-02-14 13:04:51 +00:00
akwizgran
4307d516a6
Use net.sf.briar namespace for all bundle keys.
2013-02-12 20:33:18 +00:00
akwizgran
6c5cba2768
Fixed a typo.
2013-02-12 20:22:05 +00:00
akwizgran
9bf96d4c5a
Converted MessageHeader from an interface to a value class.
2013-02-12 17:42:58 +00:00
akwizgran
96f8e49d64
Added names to contacts, created Contact class in API.
2013-02-12 17:38:49 +00:00
akwizgran
79fc630ab7
Use mocks rather than real plugins for better coverage of error cases.
2013-02-12 16:25:08 +00:00
akwizgran
d18fc1330b
Plugin manager must add transports to the DB before activating them.
2013-02-12 16:04:22 +00:00
akwizgran
d3a8dae583
Set android:allowBackup to false, updated target API version to 17.
2013-02-12 15:54:36 +00:00
akwizgran
e6de8efed2
Show an ongoing notification so the background service isn't killed.
2013-02-12 15:43:18 +00:00
akwizgran
e3c90f56ed
Updated Roboguice module list.
2013-02-12 14:20:19 +00:00
akwizgran
e0f6948bc4
Fixed injection problems with plugin and reliability modules.
2013-02-12 14:18:43 +00:00
akwizgran
78d6100262
Limit the number of subscriptions per user.
...
This limit is necessary to limit the size of subscription update
packets; it can be lifted when incremental subscription updates are
implemented.
2013-02-07 18:13:58 +00:00
akwizgran
f4675c3edd
Added more DatabaseComponent unit tests, tightened up existing tests.
2013-02-07 00:29:30 +00:00
akwizgran
3af077a4d8
Refactored exponential backoff code out of JdbcDatabase and added tests.
2013-02-06 23:51:23 +00:00
akwizgran
379d6ed220
Retransmission with exponential backoff (untested).
2013-02-06 20:07:08 +00:00
akwizgran
4c5657321d
Retransmission without backoff for messages and updates.
2013-02-06 19:06:14 +00:00
akwizgran
bec8543bfa
Replaced Collections.singletonList() with more concise Arrays.asList().
2013-02-06 15:17:47 +00:00
akwizgran
9558bd88df
Retransmit messages based on maximum latency of transport.
2013-02-06 15:11:55 +00:00
akwizgran
5150737476
Replaced the Status enum with a seen flag and an expiry time.
2013-02-04 17:48:30 +00:00
akwizgran
30a0269652
Code cleanup: import static, use == to compare enum values.
2013-02-01 22:40:36 +00:00
akwizgran
adff37481f
Code cleanup: don't use L for long constants unless it's necessary.
2013-02-01 20:40:57 +00:00
akwizgran
a73d9d05f2
Added getMaxLatency() method to transport plugins.
2013-02-01 20:19:23 +00:00
akwizgran
14177e51f6
Renamed some variables to match renamed classes.
2013-02-01 19:44:43 +00:00
akwizgran
0229d94531
Removed unnecessary fake transport properties from integration test.
2013-02-01 18:11:20 +00:00
akwizgran
48cc55c43b
Upgraded Silvertunnel to version 0.15.
2013-02-01 18:05:29 +00:00
akwizgran
3356a22c81
Check for space before writing packets to simplex connections.
2013-01-31 13:13:09 +00:00
akwizgran
3e9d6113a2
Use the multi-threading option with H2.
2013-01-31 12:22:50 +00:00
akwizgran
43e1014d6c
Use database events to trigger transmission of packets.
2013-01-30 20:28:52 +00:00
akwizgran
520b6da5ac
Exposed message handling methods through DatabaseComponent interface.
2013-01-30 18:23:53 +00:00
akwizgran
9a78071bde
Refactoring: renamed package 'protocol' -> 'messaging'.
2013-01-30 17:48:43 +00:00
akwizgran
d7a7e9ab96
Converted UnverifiedMessage from an interface to a value class.
2013-01-30 17:37:18 +00:00
akwizgran
c1d2891763
Updated simplex and duplex connections to handle the new packet types.
2013-01-30 15:35:35 +00:00
akwizgran
f5ec5b9569
Fixed an ambiguous column name in getRetentionUpdate().
2013-01-30 15:35:08 +00:00
akwizgran
b4818228c4
Fixed remaining unit tests, refactored tests for refactored classes.
2013-01-30 14:56:28 +00:00
akwizgran
e379f11698
Fixed existing unit tests for DatabaseComponentImpl, and two bugs.
2013-01-30 14:39:13 +00:00
akwizgran
fe153b0815
Merged flags table into messages table (they now use the same lock).
2013-01-29 17:51:54 +00:00
akwizgran
ea339e76d6
Added getVisibleSubscriptions() method for managing group visibility.
2013-01-29 17:09:06 +00:00
akwizgran
33d0f19f26
Fixed existing unit tests for H2Database; new tests are needed.
2013-01-29 16:43:41 +00:00
akwizgran
7ecda94340
Renamed some methods, fixed SQL typo bugs in JdbcDatabase.
2013-01-29 16:43:13 +00:00
akwizgran
61a6931643
Renamed ContactTransport -> Endpoint, added more database exceptions.
2013-01-29 15:24:34 +00:00
akwizgran
54067763a6
Cleaned up imports.
2013-01-29 14:46:19 +00:00
akwizgran
81397ef1c2
Added database events for retention updates.
2013-01-29 14:45:05 +00:00