Skip to content

Instantly share code, notes, and snippets.

@cesarferreira
Last active April 13, 2016 06:45
Show Gist options
  • Save cesarferreira/6b628a098e8b1cd6ab29 to your computer and use it in GitHub Desktop.
Save cesarferreira/6b628a098e8b1cd6ab29 to your computer and use it in GitHub Desktop.
A full build.gradle
apply plugin: 'android'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// Google Play Services
compile 'com.google.android.gms:play-services:4.4.52'
// Support Libraries
compile 'com.android.support:support-v4:20.+'
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.android.support:gridlayout-v7:19.1.0'
compile 'com.android.support:mediarouter-v7:19.1.0'
compile 'com.android.support:support-v13:20.+'
// GSON
compile 'com.google.code.gson:gson:2.2.4'
// koush ion
compile 'com.koushikdutta.ion:ion:1.2.4'
// image zoom
compile 'it.sephiroth.android.library.imagezoom:library:+'
// picasso
compile 'com.squareup.picasso:picasso:2.1.1'
// flat buttons
compile 'info.hoang8f:fbutton:1.0.1'
// quickutils
compile 'com.cesarferreira.quickutils:library:1.+'
// bootstrap
compile 'com.cesarferreira.androidbootstrap:library:1.+'
}
android {
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
compileSdkVersion 19
buildToolsVersion '19.1.0'
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
versionName project.VERSION_NAME
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
renderscriptTargetApi 19
renderscriptSupportMode true
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
ANDROID_BUILD_MIN_SDK_VERSION=15
ANDROID_BUILD_TARGET_SDK_VERSION=20
ANDROID_BUILD_TOOLS_VERSION=20
ANDROID_BUILD_SDK_VERSION=20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment