Commit 4496e44c15
4496e44c1548b21cbcc23797c571169e43a71f6f
parent: 963ce3fb34
Unsigned
cmc <hello@cleberg.net> · 2026-08-02 06:46 UTC
update email
Layout: unified · split
DomainDig/AppLinks.swift
+1 −1
| @@ -12,7 +12,7 @@ enum AppLinks { |
| 12 | static let sourceCode = url("https://github.com/zerolabsco/domain-dig") |
12 | static let sourceCode = url("https://github.com/zerolabsco/domain-dig") |
| 13 | static let documentation = url("https://github.com/zerolabsco/domain-dig#readme") |
13 | static let documentation = url("https://github.com/zerolabsco/domain-dig#readme") |
| 14 | static let privacyPolicy = url("https://zerolabs.sh/domaindig/privacy-policy/") |
14 | static let privacyPolicy = url("https://zerolabs.sh/domaindig/privacy-policy/") |
| 15 | static let supportEmail = "hello@zerolabs.sh" |
15 | static let supportEmail = "root@krz.sh" |
| 16 | |
16 | |
| 17 | static var appStoreListing: URL { url("https://apps.apple.com/app/id\(appStoreID)") } |
17 | static var appStoreListing: URL { url("https://apps.apple.com/app/id\(appStoreID)") } |
| 18 | static var writeReview: URL { url("https://apps.apple.com/app/id\(appStoreID)?action=write-review") } |
18 | static var writeReview: URL { url("https://apps.apple.com/app/id\(appStoreID)?action=write-review") } |
DomainDigTests/AppInfoTests.swift
+4 −4
| @@ -7,21 +7,21 @@ final class AppInfoTests: XCTestCase { |
| 7 | |
7 | |
| 8 | func testMailURLEncodesSubjectAndBody() throws { |
8 | func testMailURLEncodesSubjectAndBody() throws { |
| 9 | let url = try XCTUnwrap(AppInfoView.mailURL( |
9 | let url = try XCTUnwrap(AppInfoView.mailURL( |
| 10 | to: "hello@zerolabs.sh", |
10 | to: "root@krz.sh", |
| 11 | subject: "DomainDig Issue Report", |
11 | subject: "DomainDig Issue Report", |
| 12 | body: "line one\nline two" |
12 | body: "line one\nline two" |
| 13 | )) |
13 | )) |
| 14 | |
14 | |
| 15 | XCTAssertEqual(url.scheme, "mailto") |
15 | XCTAssertEqual(url.scheme, "mailto") |
| 16 | let string = url.absoluteString |
16 | let string = url.absoluteString |
| 17 | XCTAssertTrue(string.hasPrefix("mailto:hello@zerolabs.sh?")) |
17 | XCTAssertTrue(string.hasPrefix("mailto:root@krz.sh?")) |
| 18 | XCTAssertTrue(string.contains("subject=DomainDig%20Issue%20Report")) |
18 | XCTAssertTrue(string.contains("subject=DomainDig%20Issue%20Report")) |
| 19 | XCTAssertTrue(string.contains("body=line%20one%0Aline%20two")) |
19 | XCTAssertTrue(string.contains("body=line%20one%0Aline%20two")) |
| 20 | } |
20 | } |
| 21 | |
21 | |
| 22 | func testMailURLOmitsEmptyQueryItems() throws { |
22 | func testMailURLOmitsEmptyQueryItems() throws { |
| 23 | let url = try XCTUnwrap(AppInfoView.mailURL(to: "hello@zerolabs.sh", subject: "", body: "")) |
23 | let url = try XCTUnwrap(AppInfoView.mailURL(to: "root@krz.sh", subject: "", body: "")) |
| 24 | XCTAssertEqual(url.absoluteString, "mailto:hello@zerolabs.sh") |
24 | XCTAssertEqual(url.absoluteString, "mailto:root@krz.sh") |
| 25 | } |
25 | } |
| 26 | |
26 | |
| 27 | func testVersionDisplayPairsMarketingVersionAndBuild() { |
27 | func testVersionDisplayPairsMarketingVersionAndBuild() { |
README.md
+1 −1
| @@ -105,4 +105,4 @@ This project is licensed under the MIT License. See `LICENSE`. |
| 105 | |
105 | |
| 106 | ## Contact |
106 | ## Contact |
| 107 | |
107 | |
| 108 | Questions or feedback: hello@zerolabs.sh |
108 | Questions or feedback: root@krz.sh |