Skip to content

Instantly share code, notes, and snippets.

@tleyden
Created May 21, 2014 00:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tleyden/1e3497a1ee8af7a53a8f to your computer and use it in GitHub Desktop.
Save tleyden/1e3497a1ee8af7a53a8f to your computer and use it in GitHub Desktop.
Couchbase Lite Android HelloWorld build.gradle files
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
// workaround for "duplicate files during packaging of APK" issue
// see https://groups.google.com/d/msg/adt-dev/bl5Rc4Szpzg/wC8cylTWuIEJ
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
compile 'com.couchbase.lite:couchbase-lite-android:1.0.0'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
allprojects {
repositories {
mavenCentral()
maven {
url "http://files.couchbase.com/maven2/"
}
}
}
@PieroSilvestri
Copy link

Andate a cagare pezzi di merda!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment