Skip to content

Instantly share code, notes, and snippets.

@shakil807g
Last active October 11, 2016 10:04
Show Gist options
  • Save shakil807g/085625cbc1da4bb744c762312f777b68 to your computer and use it in GitHub Desktop.
Save shakil807g/085625cbc1da4bb744c762312f777b68 to your computer and use it in GitHub Desktop.
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
// Apply plugin
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'com.fernandocejas.frodo'
apply plugin: 'realm-android'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.example.engro.engro"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//support
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:design:$rootProject.supportLibraryVersion"
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
//dagger2
apt "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"
compile "com.google.dagger:dagger:$rootProject.daggerVersion"
compile "com.android.support.constraint:constraint-layout:$rootProject.constraintLayoutVersion"
compile "com.jakewharton:butterknife:$rootProject.butterKnifeVersion"
compile "com.squareup.okhttp3:okhttp:$rootProject.okhttpVersion"
compile "com.squareup.picasso:picasso:$rootProject.picassoVersion"
compile "com.jakewharton.picasso:picasso2-okhttp3-downloader:$rootProject.picasso2Okhttp3DownloaderVersion"
compile 'com.squareup:otto:1.3.8'
compile "com.google.code.gson:gson:$rootProject.gsonVersion"
compile "com.android.volley:volley:$rootProject.volleyVerion"
//butterknife
apt "com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion"
compile 'com.mobsandgeeks:android-saripaar:2.0.3'
testCompile 'junit:junit:4.12'
provided 'javax.annotation:jsr250-api:1.0'
//rxjava
compile "io.reactivex:rxandroid:$rootProject.rxAndroidVersion"
compile "io.reactivex:rxjava:$rootProject.rxjavaVersion"
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'me.tatarka:gradle-retrolambda:3.3.0'
classpath 'com.fernandocejas.frodo:frodo-plugin:0.8.3'
classpath "io.realm:realm-gradle-plugin:2.0.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
allprojects {
repositories {
jcenter()
}
repositories {
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
versionCode = 1
versionName = "1.0"
// Sdk and tools
minSdkVersion = 15
targetSdkVersion = 23
compileSdkVersion = 23
buildToolsVersion = '23.0.3'
// App dependencies
supportLibraryVersion = '24.0.0'
okhttpVersion = '3.4.1'
butterKnifeVersion = '8.1.0'
picassoVersion = '2.5.2'
picasso2Okhttp3DownloaderVersion = '1.0.2'
constraintLayoutVersion = '1.0.0-alpha8'
gsonVersion = '2.7'
volleyVerion = '1.0.0'
daggerVersion = '2.6.1'
rxjavaVersion = '1.2.1'
rxAndroidVersion = '1.2.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment