Skip to content

Commit

Permalink
Update to Xcode 16 (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdmontgomery authored Oct 28, 2024
2 parents 669dad2 + 49c2826 commit 3cd03e3
Show file tree
Hide file tree
Showing 115 changed files with 57 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .buildkite/shared-pipeline-vars
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it.

export IMAGE_ID=$(echo "xcode-$(cat .xcode-version)")
export IMAGE_ID="xcode-16.0-v7"

export CI_TOOLKIT="automattic/a8c-ci-toolkit#3.2.2"
1 change: 0 additions & 1 deletion .xcode-version

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"originHash" : "89aad130e119d7a4b1dea1ad42b23e52b29cf016999eed5d14af43b0dc276ac1",
"originHash" : "cab169a94a31c97f09372f18f0273c26fba840650a7554746fd8b84545e30262",
"pins" : [
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "5b0c434778f2c1a4c9b5ebdb8682b28e84dd69bd",
"version" : "1.15.4"
"revision" : "42a086182681cf661f5c47c9b7dc3931de18c6d7",
"version" : "1.17.6"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax",
"location" : "https://github.com/swiftlang/swift-syntax",
"state" : {
"revision" : "6ad4ea24b01559dde0773e3d091f1b9e36175036",
"version" : "509.0.2"
Expand All @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/nicklockwood/SwiftFormat",
"state" : {
"revision" : "dd989a46d0c6f15c016484bab8afe5e7a67a4022",
"version" : "0.54.0"
"revision" : "86ed20990585f478c0daf309af645c2a528b59d8",
"version" : "0.54.6"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "2d82ed06a27431c1da79790f8b215b8abf6d2a7397f42f02e364c7a92f86a5ab",
"originHash" : "90e777ed5b0907a1af52392e32f74661a3874ff8582593fea55eaa7c7d9580c3",
"pins" : [
{
"identity" : "swift-snapshot-testing",
Expand All @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/nicklockwood/SwiftFormat",
"state" : {
"revision" : "dd989a46d0c6f15c016484bab8afe5e7a67a4022",
"version" : "0.54.0"
"revision" : "ab6844edb79a7b88dc6320e6cee0a0db7674dac3",
"version" : "0.54.5"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.54.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.8.1"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.54.5"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.17.6"),
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", exact: "0.56.2"),
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class DefaultAvatarProvider: AvatarProviding {
private func applyCornerRadius() {
guard !skipStyling else { return }
avatarImageView.layer.cornerRadius = avatarCornerRadius
avatarImageView.layer.cornerCurve = .circular
}

private func applyLength() {
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/AboutMeBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class AboutMeBuilderTests: XCTestCase {
let frameSmall = CGRect(x: 0, y: 0, width: 100, height: 200)
let palettesToTest: [PaletteType] = [.light, .dark]

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/DisplayNameBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class DisplayNameBuilderTests: XCTestCase {
let frameSmall = CGRect(x: 0, y: 0, width: 100, height: 200)
let palettesToTest: [PaletteType] = [.light, .dark]

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/LargeProfileSummaryViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class LargeProfileSummaryViewTests: XCTestCase {
static let width: CGFloat = 320
}

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/LargeProfileViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ final class LargeProfileViewTests: XCTestCase {

let palettesToTest: [PaletteType] = [.light, .dark]

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/PersonalInfoBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class PersonalInfoBuilderTests: XCTestCase {
let frameSmall = CGRect(x: 0, y: 0, width: 100, height: 200)
let palettesToTest: [PaletteType] = [.light, .dark]

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/ProfileButtonTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ final class ProfileButtonTests: XCTestCase {
let frame = CGRect(x: 0, y: 0, width: 100, height: 50)
let palettesToTest: [PaletteType] = [.light, .dark]

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/ProfileConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class TestProfileConfiguration: XCTestCase {
static let width: CGFloat = 320
}

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/ProfileSummaryViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class ProfileSummaryViewTests: XCTestCase {
static let width: CGFloat = 320
}

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/ProfileViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ final class ProfileViewTests: XCTestCase {
static let width: CGFloat = 320
}

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/ProvileViewSnapshots.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ final class ProfileViewSnapshots: XCTestCase {
static let width: CGFloat = 320
}

override func setUp() async throws {
try await super.setUp()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
7 changes: 4 additions & 3 deletions Tests/GravatarUITests/TestPlaceholderDisplayers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ final class TestPlaceholderDisplayers: XCTestCase {
static let containerWidth = elementSize.width * 2
}

override func setUpWithError() throws {
try super.setUpWithError()
// isRecording = true
override func invokeTest() {
withSnapshotTesting(record: .failed) {
super.invokeTest()
}
}

@MainActor
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3cd03e3

Please sign in to comment.