-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add plugins version #1123
Add plugins version #1123
Conversation
1b036db
to
7c0ea0e
Compare
7c0ea0e
to
1c30614
Compare
Btw ktlint check fails on CI |
Yeah, that's benchmark-check. it will be fixed by internal ticket. |
@ank27 shouldn't we actually add generated asset files as part of this PR? |
As discussed offline seems answer is no. I believe correct solution for now will be updating our release template with a step of not forgetting to specify correct version in |
@@ -6,6 +6,7 @@ plugins { | |||
kotlin("android") | |||
id("com.jaredsburrows.license") | |||
id("org.jetbrains.dokka") | |||
id("com.mapbox.android.sdk.versions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently we only apply the version plugin to the sdk module, however we could discuss if we want to add it to all our plugins, as mentioned in https://github.com/mapbox/android-sdk-versions-plugin#about-android-sdk-versions-plugin
All Mapbox android SDK modules that incorporate the Telemetry SDK and meant to be released as libraries(artifacts) should apply this plugin to facilitate the Telemetry SDK access all Mapbox library versions at run time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline with @nagineni
we should be adding the dependency only to the core module.
We can discuss more if we want to add it to plugins as well, but we will iterate this in future releases. currently, core doesn't have a parsing logic in place and they are working on another solution as well.
We do update the VERSION_NAME inside our CI when building the release tag: mapbox-maps-android/.circleci/config.yml Line 170 in b05fa61
We could document updating the version name in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, could we test it out and validate the asset file is generated correctly?
No, unfortunately this is not correct. But it's a good point to consider in the new plugin: project.name is not enough, probably we have to use |
These information are all available in the sdk-registry plugin, probably we can combine the versions plugin to the sdk-registry plugin by adding a separate task? |
Good idea! |
14748fa
to
83a1ecd
Compare
83a1ecd
to
4b19e0b
Compare
Summary of changes
User impact (optional)
Pull request checklist:
@JvmOverloads
,@file:JvmName
, etc).mapbox-maps-android
changelog:<changelog>Added sdk versions plugin v1.1.3.</changelog>
.v10.3
release branch fix / enhancement, merge it tomain
firstly and then port tov10.3
release branch.Fixes: < Link to related issues that will be fixed by this pull request, if they exist >
PRs must be submitted under the terms of our Contributor License Agreement CLA.