Last active
August 29, 2015 13:57
-
-
Save dustin-graham/9495902 to your computer and use it in GitHub Desktop.
build.gradle file for using the ContentProviderGenerator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'android' | |
import com.rain.utils.android.cpgen.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('libs/ContentProviderGenerator-1.0-SNAPSHOT-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' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment