We're nearly half-way into the APIs month of Summer Dev, and making great progress on a number of fronts. I'm happy to announce that the first of these is complete: the I2P client libraries are now available on Maven Central!
This should make it much simpler for Java developers to use I2P in their applications. Instead of needing to obtain the libraries from a current install, they can simply add I2P to their dependencies. Upgrading to new versions will similarly be much easier.
Come si usa
There are two libraries that you need to know about:
- net.i2p:i2p - The core I2P APIs; you can use these to send individual datagrams.
- net.i2p.client:streaming - A TCP-like set of sockets for communicating over I2P.
Add one or both of these to your project's dependencies, and you're good to go!
compile 'net.i2p:i2p:0.9.26' compile 'net.i2p.client:streaming:0.9.26'
<dependency> <groupId>net.i2p</groupId> <artifactId>i2p</artifactId> <version>0.9.26</version> </dependency> <dependency> <groupId>net.i2p.client</groupId> <artifactId>streaming</artifactId> <version>0.9.26</version> </dependency>
Android developers should use the I2P Android client library, which contains the same libraries along with Android-specific helpers. I'll be updating it soon to depend on the new I2P libraries, so that cross-platform applications can work natively with either I2P Android or desktop I2P.