Skip to content
Arasthel edited this page Aug 21, 2014 · 16 revisions

Introduction. What is SwissKnife?

SwissKnife is a multi-purpose library based -only in behavior, not in code- on other libraries such as ButterKnife or AndroidAnnotations.

A swiss army knife is like a Dagger, but although it may be less sharp, it can be more handy 😉.

This library is only compatible with Groovy language as it uses its Ast processing to generate the final code. If you don't use Groovy on your Android projects yet, you can find some info about how to use it here.

Don't be afraid to use Groovy, Android Studio supports it really well, its syntax is almost the same as Java's, it's compatible with Dalvik and ART and can be mixed with your existing Java code. Also, most times turning a Java class into a Groovy one is as easy as changing the file extension from .java to .groovy.

How to use the annotations