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

Return correct OS version on iOS #3360

Merged
merged 1 commit into from
Sep 22, 2024
Merged

Conversation

ann0see
Copy link
Member

@ann0see ann0see commented Aug 26, 2024

Short description of changes

Returns correct OS version for iOS servers.

CHANGELOG: iOS: Return correct operating system version if run as server

Context: Fixes an issue?

Fixes: #3359

Does this change need documentation? What needs to be documented and how?

No

Status of this Pull Request

Review

What is missing until this pull request can be merged?

Tested on macOS and iOS, but I want to test the GitHub produced macOS build too.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@ann0see ann0see force-pushed the iOS/FixGetOs branch 3 times, most recently from 9617fbd to 2c7f06a Compare August 26, 2024 19:32
@ann0see ann0see added this to the Release 3.12.0 milestone Aug 26, 2024
@pljones
Copy link
Collaborator

pljones commented Sep 22, 2024

Tested on macOS and iOS, but I want to test the GitHub produced macOS build too.

Is checking the GitHub build done now?

@@ -1098,8 +1098,10 @@ class COSUtil
{
#ifdef _WIN32
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the Windows and Android ones okay? Is the Q_ a "Qt" thing that we can use for all platforms? What's the OT_ thing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the enum above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows and android are ok, but probably worth changing to the Qt style.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems as if we don't use Q_OS_WIN anywhere. Android is now in the same style as used in other places.

@ann0see
Copy link
Member Author

ann0see commented Sep 22, 2024

Is checking the GitHub build done now?

I‘ll need to re check.

@ann0see
Copy link
Member Author

ann0see commented Sep 22, 2024

Ok. The GitHub build works as expected.

Copy link
Member

@softins softins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MacOS Legacy artifact shows MacOS correctly. I can't test the iOS build, but the code looks sensible, and I'm happy to approve.

@ann0see
Copy link
Member Author

ann0see commented Sep 22, 2024

@pljones @softins last minute android changes. Please recheck.

Copy link
Collaborator

@pljones pljones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I like the "or" approach - but it should be okay. (And Android is barely supported...)

@ann0see
Copy link
Member Author

ann0see commented Sep 22, 2024

It's what I see throughout the code...

@ann0see ann0see merged commit d6c6fc7 into jamulussoftware:main Sep 22, 2024
9 checks passed
@ann0see ann0see deleted the iOS/FixGetOs branch September 22, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add iOS case for GetOperatingSystem() function in util.h for soundness on iOS
3 participants