From 4449376031014ad9bc2746591d9625afd4c03b00 Mon Sep 17 00:00:00 2001 From: Carlos Martinez Date: Tue, 15 Jun 2021 21:24:42 -0400 Subject: [PATCH] Add: Enable viewbinding and databinding --- app/build.gradle | 14 ++++++++------ base.gradle | 5 +++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e9486af..d08b275 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,10 +1,7 @@ -plugins { - id 'com.android.application' - id 'kotlin-android' - id 'kotlin-kapt' -} - apply from: '../versions.gradle' +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-kapt' android { compileSdkVersion build_versions.target_sdk @@ -51,6 +48,11 @@ android { lintOptions { abortOnError false } + + buildFeatures { + viewBinding true + dataBinding true + } } dependencies { diff --git a/base.gradle b/base.gradle index e238a3c..6b9694a 100644 --- a/base.gradle +++ b/base.gradle @@ -29,6 +29,11 @@ android { lintOptions { abortOnError false } + + buildFeatures { + viewBinding true + dataBinding true + } } dependencies {