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

[Bug]: Methods Usage Incompatible with Android API Level 21 (Target SDK Version) #5521

Closed
shashankiitbhu opened this issue Feb 6, 2024 · 1 comment · Fixed by #5525
Closed
Assignees
Labels

Comments

@shashankiitbhu
Copy link
Contributor

shashankiitbhu commented Feb 6, 2024

This is an issue because using methods unavailable in the target Android API level (In our project - API level 21) can lead to compatibility issues and potential runtime errors on devices running versions below the specified API level. It violates the principle of maintaining backward compatibility, which ensures that an Android application runs smoothly on a wide range of devices.

Currently, I have found 2 Issues like this in this Project :

  1. In the UploadMediaDetailAdapter the removeDescription() Method uses stream() , filter , count methods which requires API Level 24
Screenshot 2024-02-06 at 11 18 09 AM
  1. In the CommonsDateUtil the getIso8601DateFormatTimestamp() uses Pattern which also requires API Level 24
Screenshot 2024-02-06 at 11 17 53 AM

In Both of these cases, alternative solutions can be used that will give the same results and will also be compatible with our Target SDK Version (21).

I am willing to work on this solution and I will fix these in my next PR

@nicolas-raoul
Copy link
Member

Great catches, thanks! :-)

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

Successfully merging a pull request may close this issue.

2 participants