-
Notifications
You must be signed in to change notification settings - Fork 24
Example build.gradle file
Tobias Preuss edited this page Mar 24, 2014
·
2 revisions
apply plugin: 'android'
import com.rain.utils.android.robocop.generator.*;
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
task contentProviderGen {
description = 'Generating a beautiful ContentProvider and required classes'
doLast {
System.out.println("Generating ContentProvider...")
String schemaFilename = 'schema/agenda_schema.json';
String baseOutputDir = 'src/main/java/';
ContentProviderGenerator.generateContentProvider(schemaFilename, baseOutputDir);
}
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath files('RoboCoP/RoboCoP-0.5-jar-with-dependencies.jar')
}
}
dependencies {
compile 'com.android.support:support-v4:19.0.+'
compile 'com.squareup:otto:1.3.2'
compile 'com.jakewharton:butterknife:4.0.1'
}