Skip to content

Instantly share code, notes, and snippets.

@seanghay
Created October 25, 2020 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanghay/fb7d8f45d9516525d30e4d2362bc7891 to your computer and use it in GitHub Desktop.
Save seanghay/fb7d8f45d9516525d30e4d2362bc7891 to your computer and use it in GitHub Desktop.
Enable ViewBinding
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
defaultConfig {
...
}
+ buildFeatures {
+ viewBinding true
+ }
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment