Skip to content

Commit

Permalink
[readme] update version display in readme, also remove apt in favor o…
Browse files Browse the repository at this point in the history
…f annotationProcessor config. `
  • Loading branch information
agrosner committed Dec 11, 2016
1 parent e527534 commit 3c521c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,9 @@ Changes exist in the [releases tab](https://github.com/Raizlabs/DBFlow/releases)
For more detailed usage, check out it out [here](/usage2/Intro.md)

# Including in your project
If you use KAPT (Kotlin's APT), then skip this first step.

We need to include the [apt plugin](https://bitbucket.org/hvisser/android-apt) in our classpath to enable Annotation Processing:

```groovy
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
allProjects {
repositories {
// required to find the project's artifacts
Expand All @@ -53,15 +41,16 @@ Add the library to the project-level build.gradle, using the apt plugin to enabl

```groovy
apply plugin: 'com.neenbedankt.android-apt'
def dbflow_version = "4.0.0-beta2"
def dbflow_version = "4.0.0-beta3"
// or dbflow_version = "develop-SNAPSHOT" for grabbing latest dependency in your project on the develop branch
// or 10-digit short-hash of a specific commit. (Useful for bugs fixed in develop, but not in a release yet)
dependencies {
apt "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
// use kapt for kotlin apt
annotationProcessor "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
// use kapt for kotlin apt if you're a Kotlin user
kapt "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
Expand Down
1 change: 0 additions & 1 deletion usage2/Relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ This can allow you to combine a relationship of objects to a single `Model` to h

```java

@ModelContainer
@Table(database = ColonyDatabase.class)
public class Queen extends BaseModel {

Expand Down

0 comments on commit 3c521c1

Please sign in to comment.