Organize dependency versioning in gradle files.
Currently we have a disorganized management of dependency versions in our gradle files.
e.g.
testImplementation 'androidx.test:core-ktx:1.2.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation "org.mozilla.telemetry:glean-forUnitTests:$project.ext.glean_version"
Here we have:
- a bare version string
- a variable referencing an
extvariable containing the version string. - an unnecessarily complicated version of the same.
This issue requires a motivated Android engineer to bring order to this chaos of versioning.
For example, Fenix and Android Components use kotlin files for Dependency strings and Version strings.
testImplementation Dependencies.androidx_test_core
In Dependencies.kt
const val androidx_test_core = "androidx.test:core-ktx:${Versions.AndroidX.test}"
Then in Versions.kt:
object AndroidX {
// …
const val test = "1.3.0"
}
┆Issue is synchronized with this Jira Task
Working in this one!
I am an Outreachy applicant. Can I work on this issue?
I am an Outreachy applicant. Can I work on this issue?
That sounds good to me! @lucastosetto mentioned working on this 1.5 months ago, but there's been no update since then, so I suspect it's not happening - @lucastosetto, please let us know if there's an update. but otherwise I think it's yours!
Thank you for the response!
Hi @mhammond! Is this fixed? If not I'd like to work on this issue. Also where do i need to make this changes to? All the gradle files and then just have a common Dependencies.kt and Versions.kt for it?
This is still open. If there's something you don't understand in the initial description, please be specific about what it is.
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1866337
Change performed by the Move to Bugzilla add-on.