Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android studio not highlighting dependencies #2

Closed
aoben10 opened this issue Oct 19, 2020 · 2 comments
Closed

Android studio not highlighting dependencies #2

aoben10 opened this issue Oct 19, 2020 · 2 comments

Comments

@aoben10
Copy link

aoben10 commented Oct 19, 2020

I executed the shell script, and verified the versionlint file was in buildSrc. but how do I get android studio to highlight older dependencies? What step am I missing? Does the lint version and dependencies have to live in different files? Or can they be in the same file as different singleton objects

Android Studio 4.1
Kotlin Gradle DSL

@jeziellago
Copy link
Contributor

Hi @aoben10
The current version of VersionCheckerGradleLint needs different files to versions and libraries declaration.
Example:

// file: Versions.kt
object Versions {

    val kotlinVersion = "1.4.10"
   
}
// file: Libs.kt
object Libs {

    val kotlin = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlinVersion}"
}

@aoben10
Copy link
Author

aoben10 commented Oct 19, 2020

I see, thanks!

@aoben10 aoben10 closed this as completed Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants