Skip to content

Commit

Permalink
Issue-174: Update readme to use annotationPrecessor
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemures committed Jan 19, 2017
1 parent 95319a8 commit 7e77a4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -80,23 +80,22 @@ Currently Toothpick has 2 sets of examples :
## Setup
For Android :
```groovy
#android setup using apt
#android setup using gradle 2.2.3
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
...
apply plugin: 'com.neenbedankt.android-apt'
...
dependencies {
compile 'com.github.stephanenicolas.toothpick:toothpick-runtime:1.0.3'
// and for android -> compile 'com.github.stephanenicolas.toothpick:smoothie:1.0.3'
apt 'com.github.stephanenicolas.toothpick:toothpick-compiler:1.0.3'
annotationProcessor 'com.github.stephanenicolas.toothpick:toothpick-compiler:1.0.3'
//highly recommended
testCompile 'com.github.stephanenicolas.toothpick:toothpick-testing:1.0.3'
Expand Down
2 changes: 2 additions & 0 deletions smoothie-sample/build.gradle
Expand Up @@ -38,6 +38,8 @@ repositories {
dependencies {
compile project(':smoothie')
compile project(':toothpick-runtime')
// We cannot update to annotationProcessor for the sample as we need to keep compatibility with Java 7.
// However, it is possible to use it instead of apt.
apt project(':toothpick-compiler')
apt deps.butterknife_compiler
compile deps.butterknife
Expand Down

0 comments on commit 7e77a4c

Please sign in to comment.