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

MSAL: Update ios min version to ios 14.0 and macos to 10.13 #1594

Merged
merged 11 commits into from
Nov 17, 2022

Conversation

Veena11
Copy link
Contributor

@Veena11 Veena11 commented Nov 4, 2022

Proposed changes

Update ios min version to ios 14.0 and macos to 10.13

Type of change

  • [ x] Feature work
  • Bug fix
  • Documentation
  • Engineering change
  • Test
  • Logging/Telemetry

Risk

  • High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
  • [x ] Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
  • Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)

Additional information

@Veena11 Veena11 requested a review from a team as a code owner November 4, 2022 03:30
@Veena11 Veena11 changed the title WIP : Update ios min version to ios 14.0 and macos to 10.13 MSAL: Update ios min version to ios 14.0 and macos to 10.13 Nov 8, 2022
Copy link
Member

@oldalton oldalton left a comment

Choose a reason for hiding this comment

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

Please update MSAL.podspec and Package.swift targets as well. Code changes look good otherwise.

@Veena11
Copy link
Contributor Author

Veena11 commented Nov 8, 2022

Please update MSAL.podspec and Package.swift targets as well. Code changes look good otherwise.

Done

@Veena11 Veena11 merged commit bdf9f4d into dev Nov 17, 2022
if (error) *error = msidError;
return NO;
}
NSError *msidError = MSIDCreateError(MSIDErrorDomain, MSIDErrorInvalidDeveloperParameter, @"parentViewController is a required parameter on iOS 13.", nil, nil, nil, nil, nil, YES);

Choose a reason for hiding this comment

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

Shouldn't this error say ... required parameter on iOS 14 since that's the required minimum now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right, thanks . I have it fixed in this PR : #1630

@guidedways
Copy link

Is there any reason why iOS 13 could not be supported? I don't see anything specific in the changes

@@ -350,7 +350,7 @@ - (void)allAccountsFromDevice:(MSALAccountEnumerationParameters *)parameters
{
BOOL shouldCallBroker = NO;

if (@available(iOS 13.0, macOS 10.15, *))
if (@available(macOS 10.15, *))

Choose a reason for hiding this comment

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

Shouldn't this be if (@available(iOS 14.0, macOS 10.15, *)) else the code inside the condition would not compile for iOS anymore? The code would only run on macOS since iOS was omitted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i believe the "*" indicates that the code is also for all other platforms beyond the ones listed . So it should be available for iOS.

Choose a reason for hiding this comment

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

@Veena11 of course! Thanks :) Although is there API required that's no longer going to work on iOS 13? Xcode 14 seems to be otherwise okay with iOS 13 as a minimum target

@Veena11
Copy link
Contributor Author

Veena11 commented Dec 22, 2022

Is there any reason why iOS 13 could not be supported? I don't see anything specific in the changes

we intend to support last 3 versions (16, 15, 14) of iOS.

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

3 participants