Skip to content

Instantly share code, notes, and snippets.

@rickyngk
Created April 4, 2016 02:33
Show Gist options
  • Save rickyngk/90c9ac5ed247a89d1a9d71b81639ad24 to your computer and use it in GitHub Desktop.
Save rickyngk/90c9ac5ed247a89d1a9d71b81639ad24 to your computer and use it in GitHub Desktop.
Enable data binding
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.rickyngk.databinding.sample1"
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment