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

Watch network overhaul #857

Merged
merged 7 commits into from
Feb 19, 2025
Merged

Conversation

digitaldan
Copy link
Contributor

This overhauls the networking for the watch, removing alamo fire. I just could not get alamo working reliably on the watch, probably something i was doing wrong. In any case, this is now using the shared HTTP class with standard http swift networking.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan
Copy link
Contributor Author

Just FYi, i am still working on this, just getting SSL certificate prompting working , almost done.

@digitaldan digitaldan marked this pull request as draft January 24, 2025 19:06
@timbms
Copy link
Contributor

timbms commented Jan 25, 2025

Great. I was just addressing the painful github actions issues.

@digitaldan
Copy link
Contributor Author

Thank you for doing that, and your right, it is painful !

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
@digitaldan digitaldan marked this pull request as ready for review February 19, 2025 00:14
@digitaldan
Copy link
Contributor Author

@timbms thanks for those fastlane fixes as this just passed ! If there are no objections this is ready to merge in, i tested quite a bit with invalid certs, myopenhab, etc.. etc.. i think its ready to go.

@timbms
Copy link
Contributor

timbms commented Feb 19, 2025

LGTM.

@timbms
Copy link
Contributor

timbms commented Feb 19, 2025

Maybe we can migrate to async/await with URL Session in a next step. And then get rid of these complex completion handlers

@digitaldan
Copy link
Contributor Author

Yes, sounds good, I was reluctant to go further yet with network refactoring as i'm not sure what we want to do with #799 ? We will still need a basic http client in addition to you PR for non openAPI endpints , if we could get #799 merged , i was hoping we could refactor my little http client and the generated swift client to use a shared URLSession that would then use a common authentication, SSL handling, and client certificates handler/delegate. I would also then convert any non async code to async and finally get rid of alamo fire completely .

@digitaldan digitaldan merged commit e378b85 into openhab:develop Feb 19, 2025
3 checks passed
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.

2 participants