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

New plugin to setup a native objective c library for use with j2objc? #451

Open advayDev1 opened 9 years ago

advayDev1 commented 9 years ago

In order to setup a native library (that you have objc headers and source for) in a way that can be linked with your j2objc project, you have to get a few things right.

Should users have to setup their native projects to do this correctly themselves? Or can we help them out? It turns out the code to do that is quite similar to the native build process within j2objc-gradle itself. In fact https://gist.github.com/advayDev1/2bdf04f05c2bafd7df25 uses a lot of that code.

Should we clean that up and make it another plugin within this plugin bundle?

brunobowden commented 9 years ago

So you'd have another plugin for doing a separate objc build? That sounds reasonable to me. I don't understand this well enough to give good feedback but I trust your judgement @advayDev1.

advayDev1 commented 9 years ago

exactly (still within this bundle)/

confile commented 9 years ago

+1

advayDev1 commented 9 years ago

this will take me a while and i won't have time to do it for 0.5.0

brunobowden commented 9 years ago

Are you suggesting a separate Gradle plugin? Or part of the existing plugin? I'd prefer to keep them all together.

On Mon, Sep 14, 2015, 11:17 PM Michael Gorski notifications@github.com wrote:

+1

— Reply to this email directly or view it on GitHub https://github.com/j2objc-contrib/j2objc-gradle/issues/451#issuecomment-140291734 .

advayDev1 commented 9 years ago

It has to be a separate plugin. The current main one is a Java plugin. This new one would be an Objective C plugin. They would share nearly all code (including a subset of the existing tasks). Just a separate Plugin class and a different NativeCompilation. Still this GitHub repo. Still published to plugins.gradle.org in the same single plugin bundle.

brunobowden commented 9 years ago

Ok, this make sense.

On Wed, Sep 16, 2015 at 5:57 AM Advay Mengle notifications@github.com wrote:

It has to be a separate plugin. The current main one is a Java plugin. This new one would be an Objective C plugin. They would share nearly all code (including tasks). Just a separate Plugin class. Still this GitHub repo. Still published to plugins.gradle.org in the same single plugin bundle.

— Reply to this email directly or view it on GitHub https://github.com/j2objc-contrib/j2objc-gradle/issues/451#issuecomment-140626694 .

advayDev1 commented 8 years ago

I am the only person who seems to want this :) Punting post-1.0 unless at least one other user comments that they want here.

readying my internal plugin to be a part of this overall plugin is quite a bit of work and I don't have the time for it right now.