Skip to content

Instantly share code, notes, and snippets.

@Fi5t
Created February 26, 2015 13:06
Show Gist options
  • Save Fi5t/96385189079a8d307ed6 to your computer and use it in GitHub Desktop.
Save Fi5t/96385189079a8d307ed6 to your computer and use it in GitHub Desktop.
DBFlow with Gradle
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "ru.freedomlogic.dbflower"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
apt 'com.raizlabs.android:DBFlow-Compiler:1.6.0'
compile "com.raizlabs.android:DBFlow-Core:1.6.0"
compile "com.raizlabs.android:DBFlow:1.6.0"
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url "https://raw.github.com/Raizlabs/maven-releases/master/releases" }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.raizlabs:Griddle:1.0.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://raw.github.com/Raizlabs/maven-releases/master/releases" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment