Skip to content
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

Compatibility with ButterKnife #6

Closed
Archinamon opened this issue Dec 28, 2015 · 5 comments
Closed

Compatibility with ButterKnife #6

Archinamon opened this issue Dec 28, 2015 · 5 comments
Assignees

Comments

@Archinamon
Copy link
Owner

Needs to remove wrong generated files destination (now puts them into the project's root) and setup properly dest-dir.

@Archinamon
Copy link
Owner Author

Temporarily solution to use ButterKnife with AspectJ-Gradle plugin is to use snapshot version of ButterKnife plugin. To upgrade project to use snapshot simple add a Sonotype repo:
repositories { maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } }

And change dependencies to use standalone preprocessor compiler:
dependencies { compile 'com.jakewharton:butterknife:8.0.0-SNAPSHOT' apt 'com.jakewharton:butterknife-compiler:8.0.0-SNAPSHOT' }

Notice, that you should use apt plugin to enable snapshot.

@renaudcerrato
Copy link

Hey! Thanks, that's what I ended up to do - but ButterKnife 8 isn't production-ready yet (no ButterKnife.destroy() yet for example), so I'll wait a little bit before using Aspect-J/your plugin in production.

Thanks for everything, I will keep you updated for sure.

@renaudcerrato
Copy link

Hi Edgar!

I've some news for you: I discovered that gradle plugin for Dagger2 which uses AspectJ under the hood and which is fully working on my project (using ButterKnife 7!). That's very strange, isn't it?

Any clue?

@Archinamon
Copy link
Owner Author

Hello!

Interesting behavior. Think dagger2metrics works fine due to using aspectj-annotation syntax, not native. But that's only my thoughts. I'll look closely how it'll "friend" with native aspectj syntax, maybe on this week or on holidays :)

Thank's for your reply!

@renaudcerrato
Copy link

FYI, no more issues using Butterknife 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants