Library Status

This page lists the available libraries, links to repos, and the status of those
libraries. Below that we also have a “wish list” of things to be added in the
future.

Libraries

Gson

https://github.com/doppllib/gson-doppl

Very stable and performant in general. A few unit test issues with TimeZone as it comes from underlying iOS data, and not 100% the same (although these are extreme cases).

2.6.2 - 💚

Dagger

https://github.com/doppllib/dagger

No issues

2.5 - 💚

Retrofit 1

https://github.com/doppllib/retrofit-doppl

Works well in all general cases. Removed Apache and OKHttp clients. Just uses
Http(s)UrlConnection. Requires extended Android runtime for async calls.

1.9.0 - 💚

Retrofit 2

This is not working now, due to dependency on OKHttp. Discussed below.

🔴

OKHttp

Also not working. Non-ssl seems to work fine, but ssl connections require either
more security implementation in j2objc, or a different solution for ssl sockets.

🔴

RxAndroid

https://github.com/doppllib/RxAndroid

Works fine, but need to set up repo. All work done locally.

1.2.1 - 💚

RxJava 1

https://github.com/doppllib/RxJava

Functionally works well. Handful of test failures, but obscure issues. However, several memory cycles exist. Generally
not a huge problem in application code, but compounds significantly in unit tests.

1.2.1 - 💛

EventBus

https://github.com/doppllib/EventBus-doppl

Tests don’t (yet) work on command line due to threading complications. Work fine
running in Xcode manually.

2.4.0 - 💚

Squeaky

https://github.com/doppllib/Squeaky-doppl

Code works fine, but an Android ORM that we wrote then didn’t really promote, so
not a generally recommended option (but it works).

0.5.0 - 💚

SqlDelight

https://github.com/doppllib/sqldelight

This works well, but needs testing setup.

0.6.1 - 💛

greenDAO

https://github.com/doppllib/greenDAO

Works OK, but needs more testing. There are 2 different artifacts. One is without encryption, and one with.

3.2.2 - 💛

SqlCipher

Works, but could use more testing. The actual encrypting side
is standard iOS SqlCipher, so testing will be more around full support of Android/jni
bridge and no memory leaks (no current known issues, though)

3.5.7 - 💛

Doppl Versions

This is a personal cheat sheet for current Doppl versions as we update various sample apps.

Core - 0.8.0.0

Gson - 2.6.2.3

RxJava - 1.2.1.4

Retrofit 1 - 1.9.0.5

Dagger - 2.5.4

Sqldelight - 0.6.1.3

EventBus - 2.4.0.4

Squeaky - 0.5.3.0

Magicthreads - 0.9.3.0

GreenDAO - 3.2.2.1

Sqlcipher (Android) - 3.5.7.1

RoomDB - 1.0.0.2-alpha1

Truth - 0.0.2

Wish List

Frameworks

Doppl libraries should be packageable as iOS Frameworks. Ideally they’d be distributed with something like Carthage. There are a number of issues with setting this up, but Frameworks will make Swift much simpler to use (ie. no bridging headers). J2objc distributes with Frameworks, but something about their config is not set up 100% correctly.

OKHttp

This is currently the biggest todo. Assuming this is solved with no performance issues, Retrofit 2
would be trivial. There’s been some solid community interest in getting this figured out, so
hopefully mid-summer.

Retrofit 2

See above

RxJava 1 & 2

RxJava 1 has been working well for a while in apps. However, because ObjC is reference counted
and not garbage collected, and because J2objc doesn’t try to fight that, there are significant
memory cycles in RxJava. Need to find an RxJava/J2objc expert, or an RxJava expert who wants to
come hang out and/or answer lots of questions about which object owns which in a cycle.

For general use, though, RxJava 1 has been fine.

Mockito

J2objc ships with a mockito implementation. However, there are two general issues. The lesser of the
two is Mockito is pegged to v 1.9.5. More problematic, only ‘mock’ is supported. ‘spy’ will fail. We have created
a hacky workaround for now. An annotation processor that creates mock classes with mock and spy support.
For a number of reasons, this is not ideal.

What is really needed is an ObjectiveC/J2objc implementation of dexmaker

https://github.com/linkedin/dexmaker

Then a separate version of mockito so we can have different versions available. Also probably easymock?

Consistent Header Names

Doppl has flat header names to make coordination with Xcode easier. However, core J2objc still uses file paths. Modifying
J2objc to build all code in the same manner would make the whole thing easier.

All ARC or non-ARC

We’ve had issues enabling ARC on generated code. ARC presumably adds some performance overhead, but I imagine some folks would
desire ARC on everything for simplicity. Should explore that as an option on all builds and dependencies, as they’re currently
also included as source.