From 34775f3b4a6c4744105b404893809870534edea6 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 8 Jan 2025 10:46:45 +0100 Subject: [PATCH 1/2] Flatten a nested localized string to avoid `genstrings` failure --- .../Utility/WebViewController/WebKitViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/Classes/Utility/WebViewController/WebKitViewController.swift b/WordPress/Classes/Utility/WebViewController/WebKitViewController.swift index 977f338193ce..5604f8c42a36 100644 --- a/WordPress/Classes/Utility/WebViewController/WebKitViewController.swift +++ b/WordPress/Classes/Utility/WebViewController/WebKitViewController.swift @@ -57,7 +57,7 @@ class WebKitViewController: UIViewController, WebKitAuthenticatable { style: .plain, target: self, action: #selector(share)) - button.title = NSLocalizedString(SharedStrings.Button.share, comment: "Button label to share a web page") + button.title = NSLocalizedString("webKit.button.share", value: "Share", comment: "Button label to share a web page") return button }() @objc lazy var safariButton: UIBarButtonItem = { From b49185818bb2e6b44e21b00a1781ab130d8bd1c1 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 8 Jan 2025 11:02:12 +0100 Subject: [PATCH 2/2] Import `WordPressUI` in `SiteIconViewModelTests` Otherwise, it won't build --- WordPress/WordPressTest/SiteIconViewModelTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/WordPressTest/SiteIconViewModelTests.swift b/WordPress/WordPressTest/SiteIconViewModelTests.swift index c9bfb2fc67f8..433f565e8116 100644 --- a/WordPress/WordPressTest/SiteIconViewModelTests.swift +++ b/WordPress/WordPressTest/SiteIconViewModelTests.swift @@ -1,6 +1,6 @@ import UIKit import XCTest - +import WordPressUI @testable import WordPress final class SiteIconViewModelTests: XCTestCase {