-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dagger2 with J2Objc #4
Comments
Just finished getting Guava integrated and working. Inject is now added. On Sun Feb 08 2015 at 8:37:17 PM Confile notifications@github.com wrote:
|
Just look at my example project it will save you a lot of time. The only thing which is missing is adding the dagger2 jar to J2Objc. This must be done via classpath. I did not understood how to add multiple jars to the classpath using your gradle plugin. If you did this I would be happy if you could post it to me. Here you can see how to configure your build.gradle for dagger2. Here is a simple dagger example you can copy and paste. Use it like this:
Hope this helps! |
I manage to translate a simple project which included dagger2. Using I created this pull request: https://github.com/brunobowden/j2objc-gradle/pull/10 so you can specify the source path of the annotation processor output. Here is the configuration I use:
My generated files in
(Based on this project: https://github.com/confile/GWT-Dagger2-Demo) Here is what I get while doing the translation:
Do you have any idea what to do here? Thank for your help. |
I should post my command line compile command as well. The following works perfect:
The generated file
I guess this is because of you $ sign. May be this causes you plugin to fail to translate too? |
@brunobowden Did you make any progress on this issue? |
I haven't done any additional work on this gem, and have no immediate On Wed, Mar 4, 2015 at 10:15 AM, Confile notifications@github.com wrote:
|
And what about you @brunobowden ? |
Hi @confile. I'm busy with some higher priority work right now and On Wed, Mar 4, 2015 at 7:53 AM Confile notifications@github.com wrote:
|
@brunobowden Hi Bruno, did you make any progress o this issue? |
@brunobowden This is a j2objc issue see google/j2objc#510 (comment) |
I reopened this issue because translation still raises error. See google/j2objc#513 |
@brunobowden I still struggling with this issue and I need help. Translating dagger and linking to Xcode works fine using the following configuration:
The only problem is that transpiling gives the following warning:
If I linke my translated files with Xcode I get the following compiler error:
If I do not use the Here is the code I use:
and
If you could solve this last part of the puzzle, then we are done. |
Here is the latest open issue: google/j2objc#517 |
@confile - excellent writeup on the bug, thanks for taking the time to do On Thu, Apr 9, 2015 at 2:33 PM Confile notifications@github.com wrote:
|
@brunobowden Well I would need a little help on this issue. |
@brunobowden How do you deal with java files generated with annotation processor which contains $$ |
@brunobowden This is fixed with my latest pull request. |
Did you make any progress on using Dagger2 with J2Objc?
I created a demo with made it work with GWT: https://github.com/confile/GWT-Dagger2-Demo
The text was updated successfully, but these errors were encountered: