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

WMSDK-411: Rename config JSON key #502

Merged
merged 2 commits into from
Feb 14, 2025
Merged

Conversation

justSmK
Copy link
Contributor

@justSmK justSmK commented Feb 13, 2025

[iOS]: Поддержать изменение контракта в секции slidingExpiration

Previous Pull Request

Основные изменения в
Mindbox/InAppMessages/Configuration/InAppConfigurationManager.swift
Mindbox/InAppMessages/Models/Config/SlidingExpirationModel.swift
Остальное в конфигах тестов и самих тестах. Где-то добавил проверки парсинга.

private func saveInappSessionToCache(inappSession: String?) {
SessionTemporaryStorage.shared.expiredInappSession = inappSession
Logger.common(message: "Saved slidingExpiration.inappSession - \(inappSession) to temporary storage.")
private func saveInappSessionToCache(config: String?) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Может тут переименовать название метода? saveMobileConfigSessionToCache к примеру
Метод getInappSession тоже может стоит переименовать?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

А как лучше поступить с InappSessionManager?
Думаю класс оставить называться также, расположение то же в InAppMessages, внутренние методы переименовать на updateInappSession, hideInappIfConfigSessionExpired, getConfigSession, logNearestConfigSessionExpirationTime.

А протокольный метод checkInappSession оставить как есть? Или тоже переименовать на checkConfigSession? Сейчас его вызов выглядит так inappSessionManager.checkInappSession().

Copy link
Contributor

Choose a reason for hiding this comment

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

Я бы не переименовывал InappSessionManager, так как он действительно отвечает исключительно за сессию инаппов.

@justSmK justSmK merged commit 9b4bdac into develop Feb 14, 2025
2 checks passed
@justSmK justSmK deleted the feature/WMSDK-411-rename-json-key branch February 14, 2025 11:59
justSmK added a commit that referenced this pull request Feb 14, 2025
* WMSDK-411: Rename config JSON key
Add tests
Renaming some properties and functions
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.

3 participants