Chateau icon indicating copy to clipboard operation
Chateau copied to clipboard

Constants for Groovy code

Open bkodirov opened this issue 9 years ago • 1 comments

I believe if you use constants in your gradle scripts instead of this

compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:recyclerview-v7:23.1.1'

Build script would be less error prone. You can store them in the gradle.properties file for example And use like below

compile "com.android.support:recyclerview-v7:$depAndroidSupportVersion" compile "com.android.support:design:$depAndroidSupportVersion" compile "com.android.support:recyclerview-v7:$depAndroidSupportVersion" compile "com.android.support:cardview-v7:$depAndroidSupportVersion"

bkodirov avatar Jul 29 '16 11:07 bkodirov

Hi, this is something we may look at as part of improving the build system, but we'd want to bring it in line with what were doing in internally. I can certainly see advantages of taking this approach.

kingamajick avatar Jul 29 '16 12:07 kingamajick