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

Add manual locale override capability #829

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

gersonnoboa
Copy link
Contributor

Jira issue:
https://glia.atlassian.net/browse/MOB-2798

What was solved?
The configuration accepts a manual locale override, which is nil by default. If the Core SDK returns an incorrect manual locale override, then the Widgets SDK also returns an error on configuration to let know the integrator about it. If the integrator provides a wrong site API key, this commit also makes sure to inform the integrator instead of hanging.

Also, the settings screen now includes the possibility to add a manual locale override visually. If it's empty, then it sends nil.

Release notes:

  • Feature
  • Ignore
  • Release notes (Is it clear from the description here?)
  • Migration guide (If changes are needed for integrator already using the SDK - what needs to be communicated? Add underneath please)

There's a new completion that is mandatory and that gives a Result, so that the integrator knows if there has been an issue with configuration instead of figuring it out when starting the engagement. Also, when creating the configuration, the integrator can add a manualLocaleOverride.

Additional info:

  • Tests fixed, added? Unit, acceptance, snapshots?
  • Logging necessary for future troubleshooting of customer issues added?

Screenshots:

TestingApp/ViewController/ViewController.swift Outdated Show resolved Hide resolved
@gersonnoboa
Copy link
Contributor Author

!squash

The configuration accepts a manual locale override, which is `nil` by default.
If the Core SDK returns an incorrect manual locale override, then the Widgets
SDK also returns an error on configuration to let know the integrator about it.
If the integrator provides a wrong site API key, this commit also makes sure to
inform the integrator instead of hanging.

Also, the settings screen now includes the possibility to add a manual locale
override visually. If it's empty, then it sends nil.

MOB-2798
@gersonnoboa gersonnoboa merged commit 0eb968d into development Nov 3, 2023
1 check passed
@gersonnoboa gersonnoboa deleted the MOB-2798-merged branch November 3, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants