-
Notifications
You must be signed in to change notification settings - Fork 777
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
Fix nullability annotation for -[OIDExternalUserAgentIOS init] #727
Fix nullability annotation for -[OIDExternalUserAgentIOS init] #727
Conversation
-[OIDExternalUserAgentIOS init]
-[OIDExternalUserAgentIOS init]
NSObject init doesn't have any nullability annotation, which is equivalent to null_unspecified. The straightforward solution would be to remove the annotation here to get in sync with the base class, but this would be incorrect: In line 34, NS_ASSUME_NONNULL_BEGIN is used, which would make the annotation default to nonnull instead of null_unspecified.
259065d
to
e5851da
Compare
@petea, is there anything I can improve here to make it more likely to get this merged? I'm working on bringing down the number of build warnings in the project I'm working on to zero so that new warnings in our own code stick out. |
@tiwoc I'm waiting for the next major release to address the handful of nullability annotation issues that we have since the fixes cause breaking API surface changes on the Swift side. In the meantime, have you signed the contributor agreements? |
Thanks for letting me know.
👍 |
Any updates on this ? Thank you ! |
I too would like this addressed. |
hey can we get this merged? I'm looking to use this framework for an enterprise app but this issue has been going on in the background for the last few years. please get this resolved? its literally 3 lines of code and we don't need anyone to take credit for it, we just need it fixed please!!! |
Hi @petea, we would also like to see this warning to vanish from our project. Is there a timeframe for the next major release? |
This looks to be approved but not merged? It would be great to get this in a new release so can get rid of this warning. |
Hi @petea. Is it intended that this pull request will be merged and included in a release? |
Hi! Please release these trivial changes or at least let us know why can't it be merged 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lgtm. We don't have immediate plans for a release, but will have to make one soon (sometime in mid Q4, perhaps) to add a privacy manfiest. This change will be included in that release.
openid#727)" This reverts commit b376a87.
@HadesPTIT Could you please explain that revert? The warning is especially annoying for pods relying on AppAuth, as by default we want to block the release if there are warnings (and this is a good rule). |
@CarlSarkisS The revert happened on the |
@tiwoc, oh, ok, I had missed that :) |
I wish I knew. |
Bumping it up as still affected by this issue on
|
+1 looking forward to a new release with this fix. We were in the process of switching to SPM to install this dependency, but it looks like we may be sticking with CocoaPods since we can't find a way to prevent the warning from failing our CI builds which treat swift warnings as errors. |
This will come out in an upcoming release with AppAuth's privacy manifest. I do not have a specific date, but it will be before Apple's spring 2024 deadline for privacy manifests. |
This PR fixes this build warning:
Unfortunately, this warning is misleading.
-[NSObject init]
doesn't have any nullability annotation, which is equivalent tonull_unspecified
, but-[OIDExternalUserAgentIOS init]
has the conflictingnullable
annotation.The straightforward solution would be to remove the annotation here to get in sync with the base class, but this would be incorrect: In line 34,
NS_ASSUME_NONNULL_BEGIN
is used, which would make the annotation default tononnull
instead ofnull_unspecified
, which is whynull_unspecified
has to be used explicitly.To verify the fix, run the iOS tests in this repository with and without this PR. With this PR applied, the warning will no longer show up.
Fixes #442