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

Fix for the issue of wrong OTP codes #126

Merged
merged 6 commits into from
May 2, 2024
Merged

Fix for the issue of wrong OTP codes #126

merged 6 commits into from
May 2, 2024

Conversation

Artelas
Copy link
Contributor

@Artelas Artelas commented Apr 26, 2024

Fix for the issue of wrong OTP codes
Removed other warnings in project

@emiliopavia
Copy link

Hi! Any plan for releasing this? We're facing this issue in production when building the app with Xcode 15.3.

@Artelas Artelas requested a review from Widcket May 1, 2024 19:20
@@ -23,7 +23,7 @@
import Foundation

struct PushCredentials: Codable {
let service = "APNS"
private(set) var service = "APNS"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this being modified somewhere?

Copy link
Contributor Author

@Artelas Artelas May 2, 2024

Choose a reason for hiding this comment

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

It produces warning because of conforming to Codable. It is modified in the process of state restoring. There are several ways to fix the warning (like providing default value in init), but private setter is the best option here.

@Artelas Artelas merged commit d2dc745 into master May 2, 2024
9 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.

4 participants