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

Introduce API level 26 requirements for systemZoneOffset and buildLocalDateTime #9

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

teogor
Copy link
Owner

@teogor teogor commented Feb 23, 2024

Introduce API level 26 requirements for systemZoneOffset and buildLocalDateTime

This pull request updates the BuildProfile object to require API level 26 (Android 8.0 Oreo) for accessing systemZoneOffset and buildLocalDateTime. These methods rely on features introduced in API level 26, and adding these requirements ensures proper functionality and compatibility across devices.

Changes:

  • Added @RequiresApi(Build.VERSION_CODES.O) annotations to both methods.
  • Updated documentation to reflect the API level requirements.

Benefits:

  • Improves compatibility with older devices by gracefully handling cases where the methods are not available.
  • Maintains code clarity by explicitly indicating the required API level.
  • Ensures that the plugin functions as expected on all supported devices.

@teogor teogor added this to the 1.0.0-alpha02 milestone Feb 23, 2024
@teogor teogor self-assigned this Feb 23, 2024
@teogor teogor merged commit 525b3c9 into main Feb 23, 2024
4 checks passed
@zeobot zeobot bot deleted the bugfix/api26-systemzoneoffset-buildlocaltime branch February 23, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant