diff --git a/README.md b/README.md index d48a5753..1e9aa64e 100644 --- a/README.md +++ b/README.md @@ -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' diff --git a/smoothie-sample/build.gradle b/smoothie-sample/build.gradle index 691ddea9..f883a60a 100644 --- a/smoothie-sample/build.gradle +++ b/smoothie-sample/build.gradle @@ -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