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

Setting xcodeTargetsManualConfig to false for a multi-module project fails #602

Open adil-hussain-84 opened 8 years ago

adil-hussain-84 commented 8 years ago

I have two Java modules in my project which are to be translated to Objective-C and used by my iOS module. Unfortunately the dependency tree in the generated Podfile does not reflect the dependency tree in the build.gradle files of my Java modules (see issue here). I was hoping I could set xcodeTargetsManualConfig to false and configure the calls to the generated pod methods in my Podfile myself. The problem when I build my project is that it adds the pod method for the first Java module and then tries to do a pod update before adding the pod method for the second Java module. Naturally the build fails.

adil-hussain-84 commented 8 years ago

I know I can add the following to my build.gradle files to get the build to pass...

j2objcXcode {
    enabled = false
}

... but I kind of assumed that the build would pass without the above given if it passes when xcodeTargetsManualConfig is set to true.

brunobowden commented 8 years ago

I'm seeing some issues myself with that task. I don't know why exactly... something's changed and I can't figure out what it is.

On Wed, Feb 24, 2016 at 5:02 AM Adil Hussain notifications@github.com wrote:

I know I can add the following to my build.gradle files to get the build to pass...

j2objcXcode { enabled = false }

... but I kind of assumed that the build would pass without the above given if it passes when xcodeTargetsManualConfig is set to true.

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