j2objc-contrib / j2objc-gradle

This plugin is no longer actively maintained. J2ObjC Gradle Plugin: enables Java source to be part of an iOS application's build so you can write an app's non-UI code (such as application logic and data models) in Java, which is then shared by Android apps (natively Java) and iOS apps (using J2ObjC), all as part of your usual Android Gradle build.
https://github.com/j2objc-contrib/j2objc-gradle
Apache License 2.0
139 stars 43 forks source link

Is this project still active? #621

Open aminelaadhari opened 8 years ago

aminelaadhari commented 8 years ago

Hi @brunobowden @advayDev1, does this project still active ? could we securely rely on it? Thanks for the awesome job you did so far !

Buggaboo commented 8 years ago

You can certainly use it. But you need to patch a few things to make it work with the bleeding edge git branch of j2objc.

kirkvogen commented 8 years ago

The project does seem to be on a bit of a pause, but it is still usable. You can use j2objc-gradle 0.6.0-alpha with the latest version of J2ObjC 1.0.2 provided you add this to your j2objcConfig section in build.gradle:

j2objcConfig {
  j2objcVersion "1.0.2"
  .
  .
  .
}

Also, you have to stay at Android Studio 1.5.1 due to Gradle version incompatibilities. j2objc-gradle will only work with Gradle 2.8 or lower, but the Gradle Android plugin used by Android Studio 2.0 requires Gradle 2.10. If you stay at Android Studio 1.5.1 (and thus the older Gradle Android plugin), you can use Gradle 2.8 with it and j2objc-gradle. There is a workaround posted to this issue that allows you to use j2objc-gradle with Gradle 2.10. I haven't had a chance tried it.

One other note: if your project uses Guava directly a little workaround is needed.

efirestone commented 8 years ago

I think the answer is definitively "no" as of right now: https://groups.google.com/forum/#!topic/j2objc-discuss/jQ_eyW9nxmQ