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

Add the @avaialble directive to restrict the code being able to execute only under iOS 13 and above and add Authorization support. #3

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

olegbraginontarget
Copy link

@olegbraginontarget olegbraginontarget commented Oct 25, 2022

Name of the PR

Enhance restriction of supported iOS version 13 and above in code. And allow proving the http requests with authorisation header.

♻️ Current situation

The package lacks the @avaialble directive and doesn't built under Xcode 14 and authorisation support

💡 Proposed solution

Added the @available(iOS 13, *) for the whole LogstashLogHandler struct.
Added Authorizable protocol and a default structure implementing it, so that http request for uploading the logs can use authorisation.

Testing

Test for @avaialble directive were not changed, since it was only a compile time issue.
Test for Authorisation support are not added, since it requires more work, because current tests are not emulating the upload process itself. Tests for that are coming soon.

Reviewer Nudging

From the beginning.

@olegbraginontarget olegbraginontarget changed the title Add the @avaialble directive to restrict the code being able to execute only under iOS 13 and above. Add the @avaialble directive to restrict the code being able to execute only under iOS 13 and above and add Authorization support. Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant