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

Updated installation instructions #744

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,28 @@ <h4 id="bonus">Bonus</h4>
<p>Add a static import for <code>ButterKnife.findById</code> and enjoy even more fun.</p>

<h3 id="download">Download</h3>
<h4>Gradle</h4>
<pre class="prettyprint">compile 'com.jakewharton:butterknife:<span class="version"><em>(insert latest version)</em></span>'
apt 'com.jakewharton:butterknife-compiler:<span class="version"><em>(insert latest version)</em></span>'</pre>
Configure your project-level build.gradle to include the 'android-apt' plugin:
<h4>Project-level build.gradle</h4>
<pre class="prettyprint">
buildscript {
repositories {
mavenCentral()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For buildscript repositories, you do not need mavenCentral(). Also, with the android gradle plugin 2.2.0 out, you do not need android-apt. You can use the annotation processor that comes with it.

}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
</pre>
Then, apply the 'android-apt' plugin in your module-level build.gradle and add the Butter Knife dependencies:
<h4>Module-level build.gradle</h4>
<pre class="prettyprint">
apply plugin: 'android-apt'

dependencies {
compile 'com.jakewharton:butterknife:<span class="version"><em>(insert latest version)</em></span>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put 8.4.0, the latest version.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is actually a piece of Javascript which loads the latest version automatically, but this is not working on GH pages, so hence better to add a fixed version.

apt 'com.jakewharton:butterknife-compiler:<span class="version"><em>(insert latest version)</em></span>'
}
</pre>
<h3 id="license">License</h3>
<pre class="license">Copyright 2013 Jake Wharton

Expand Down