Skip to content

Instantly share code, notes, and snippets.

@patrykpoborca
Created May 30, 2015 21:25
Show Gist options
  • Save patrykpoborca/fec40b74c5cbf96fc40a to your computer and use it in GitHub Desktop.
Save patrykpoborca/fec40b74c5cbf96fc40a to your computer and use it in GitHub Desktop.
Data binding manifests
build.gradle (Project)
----------------------------------------------------------------------
// 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:1.3.+'
classpath "com.android.databinding:dataBinder:1.0-rc0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
----------------------------------------------------------------------
build.graddle (APP)
----------------------------------------------------------------------
apply plugin: 'com.android.application'
apply plugin: 'com.android.databinding'
android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc1"
defaultConfig {
applicationId "com.example.ppoborca.bindingtester"
minSdkVersion 22
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment