Created
March 13, 2014 17:33
-
-
Save jpotts18/9533039 to your computer and use it in GitHub Desktop.
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.cpgen.generator.*; | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.1" | |
defaultConfig { | |
minSdkVersion 14 | |
targetSdkVersion 19 | |
versionCode 1 | |
versionName "1.0" | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_6 | |
targetCompatibility JavaVersion.VERSION_1_6 | |
} | |
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('cp-gen.jar') | |
} | |
} | |
dependencies { | |
compile files('cp-gen.jar') | |
compile 'com.android.support:gridlayout-v7:19.0.1' | |
compile 'com.android.support:support-v4:19.0.1' | |
compile 'com.android.support:appcompat-v7:19.0.1' | |
compile 'com.jakewharton:butterknife:4.0.1' | |
compile 'com.mobsandgeeks:android-saripaar:1.0.2' | |
compile 'com.google.code.gson:gson:2.2.4' | |
compile 'com.squareup.picasso:picasso:2.2.0' | |
compile 'com.squareup.retrofit:retrofit:1.4.1' | |
// Please add license information for any dependencies | |
// https://github.com/JakeWharton/butterknife - Apache 2.0 | |
// https://github.com/ragunathjawahar/android-saripaar - Apache 2.0 | |
// https://github.com/gabrielemariotti/cardslib - Apache 2.0 | |
// https://github.com/square/picasso - Apache 2.0 | |
// https://github.com/eluleci/FlatUI - Apache 2.0 | |
// https://code.google.com/p/google-gson/ - Apache 2.0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment