akwizgran
4154119ea5
Convert to and from UTF-8 without catching impossible exceptions.
...
All JVMs must support UTF-8 encoding.
2014-02-07 22:02:02 +00:00
akwizgran
5c78b4808d
Use new IOException(String) for consistency with other calls.
2014-02-07 15:03:58 +00:00
Ximin Luo
217ff30c54
update classpath for jnotify
2014-02-06 17:52:43 +00:00
Ximin Luo
8ff2b60000
support an older Android API level
2014-01-30 12:37:18 +00:00
Ximin Luo
c000a69f5b
lazily load JNotify to avoid bloating the guice initialization
2014-01-30 12:37:18 +00:00
Ximin Luo
2bdccef705
upgrade to jnotify 0.94 (patched) for 64-bit support, and improve error reporting in tests
...
- add a UnixRemovableDriveMonitor.checkEnabled to pre-emptively check if it's loaded
- os.arch is always x86,x86_64 on windows, i386,amd64 on linux
- source: http://www.java-gaming.org/index.php/topic,14110
- we'll deal with freebsd support when we come to it, jnotify doesn't even do this atm
2014-01-30 12:37:18 +00:00
akwizgran
822392f9e7
Use strings rather than hashes to identify transports. Dev task #64 .
2014-01-24 10:39:34 +00:00
akwizgran
44bb9134d4
Reversing unintentionally pushed change: don't share Timer instances.
2014-01-16 19:31:28 +00:00
akwizgran
66619ec1e7
Use a single Timer instance.
2014-01-16 19:12:27 +00:00
akwizgran
6af3c54c28
Removed shouldFlush() from plugins, added missing PacketWriter method.
2014-01-15 17:10:25 +00:00
akwizgran
8886d954d7
Reorganised Guice modules. Contribute entropy to pool on Linux/Android.
2014-01-14 19:33:17 +00:00
akwizgran
832476412c
Changed the root package from net.sf.briar to org.briarproject.
2014-01-08 16:18:30 +00:00
akwizgran
dce70f487c
Merged clock and os packages, moved events into their own package.
2014-01-08 15:45:02 +00:00
akwizgran
26eebee8d9
Reverted some changes that were made for Java 1.5 compatibility.
...
Removed Commons IO, which we were only using as a replacement for
File.getFreeSpace() on desktop plaftorms.
Note: The Huawei U8210 (Android 2.1) doesn't have all the Java 1.6
standard library methods, and crashes if they're called. Specifically,
String.isEmpty() and NetworkInterface.supportsMulticast() are missing,
so the changes removing those methods were not reverted.
2013-11-22 12:49:20 +00:00
akwizgran
3b5769cf8a
Use Java 1.6 instead of 1.5. We no longer aim to support OS X 10.4.
2013-11-22 12:00:00 +00:00
akwizgran
c868764244
Separate FileUtils implementations for Android and desktop builds.
...
The method used by Commons IO to get the available disk space fails on
Android devices that lack a df binary - use the Android API instead.
2013-07-27 20:50:05 +01:00
akwizgran
d02266d827
Moved Android-specific plugin code into briar-android project.
...
This removes the other projects' dependency on the Android API.
2013-06-27 16:26:52 +01:00
akwizgran
473cec8735
Moved desktop-specific code into a separate project (other task #34 ).
2013-06-27 16:05:31 +01:00