Skip to content

Instantly share code, notes, and snippets.

@jpotts18
Created March 13, 2014 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpotts18/9533039 to your computer and use it in GitHub Desktop.
Save jpotts18/9533039 to your computer and use it in GitHub Desktop.
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