-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Badge request: supported Android version #2156
Comments
👍 Sounds like you've already thought this through quite well.
Excellent. We welcome PRs from new contributors. We've got a tutorial on adding new badges that you can follow: https://github.com/badges/shields/blob/master/doc/TUTORIAL.md
It seems like the best idea here would be to make the path to the https://img.shields.io/jira/issue/https/issues.apache.org/jira/KAFKA-2896.svg How does that sound?
This is fine, but the structure will need to be a bit different from most of our other badges. Most of our service classes inherit from BaseJsonService or BaseXmlService but the |
Thank you for the update. Your explanations sound reasonable from a technical standpoint. I will take a look on how to implement that (not a native JavaScript developer though). |
These npm libraries would help to achieve the following tasks:
This looks interesting, I'd like to take this up soon |
The comment from @chris48s seems a little outdated, use with care. :) I'll share a few thoughts of my own to help design the work. We've got a lot of similar badges that integrate with dependency management tools, for example version-controlled package.json files (https://github.com/badges/shields/blob/master/services/github/github-package-json.service.js). However, they extend
Not authenticating for the badges being served by Shields.io is actually super valuable in this case: getting raw files from GitHub is not rate-limited! Being able to support other use cases than GitHub would be nice. However, if we wanted to deviate from
@badges/shields-maintainers am I making sense here, and do you have any shine any more light on this matter? |
Yeah that comment is from a long time ago. If we're going to allow an explicit URL to be passed we do it in the query param now i.e: A few thoughts (which don't completely provide an answer)
I think either approach is valid tbh. I guess if we use btw @profgrammer I notice you've had a few PRs merged recently and this is another issue you're looking into. Thanks for your work on the project 👍 If you want any help as you get into things feel free to join our discord https://discord.gg/HjJCwm5 and ask questions. |
@chris48s thanks for your inputs. I think it would be a good starting step to first add support for gradle files from GitHub repositories, and as you mentioned, if the need arises we can look at making the badge platform agnostic. |
sounds good 👍 |
📋 Description
Similar to the python badge, I would propose adding support for the following Android badges:
Please note: ranges will be dealt with in a separate issue.
🔗 Data
Data has to be gathered from a build.gradle file (example):
This has the following challenges:
build.gradle
is the only place to define it, since when you define the constants outside, you get the following errors (this holds true for Android Studio 3.2 and Gradle 28.0.2):The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
I would also be able to do the implementation.
The text was updated successfully, but these errors were encountered: