Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Constants for Groovy code #6

Open
bkodirov opened this issue Jul 29, 2016 · 1 comment
Open

Constants for Groovy code #6

bkodirov opened this issue Jul 29, 2016 · 1 comment

Comments

@bkodirov
Copy link

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"

@kingamajick
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants