A type safe way to handle realm queries in Android
Top level build file:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath "io.realm:realm-gradle-plugin:2.2.0" //for realm
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" } //for jitpack repo
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}app module build file dependencies:
provided 'com.github.quarkworks.RealmTypeSafeQuery-Android:annotationprocessor:version-number'
compile 'com.github.quarkworks.RealmTypeSafeQuery-Android:query:version-number'