Update Compound. (#2906)

* Update Compound.

* Remove LFS hack from the docs.

* Fix preview tests

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
Doug 2024-06-07 10:25:24 +01:00 committed by GitHub
parent 2487895207
commit 8a52ed0cb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 26 additions and 27 deletions

View File

@ -55,7 +55,6 @@ Git LFS is used to store UI test snapshots. `swift run tools setup-project` will
``` ```
git lfs install git lfs install
ln -s "$(which git-lfs)" "$(git --exec-path)/git-lfs"
``` ```
### Snapshot Tests ### Snapshot Tests

View File

@ -7287,7 +7287,7 @@
repositoryURL = "https://github.com/BarredEwe/Prefire"; repositoryURL = "https://github.com/BarredEwe/Prefire";
requirement = { requirement = {
kind = upToNextMinorVersion; kind = upToNextMinorVersion;
minimumVersion = 2.0.4; minimumVersion = 2.7.0;
}; };
}; };
395DE6AE429B7ACC7C7FE31D /* XCRemoteSwiftPackageReference "KZFileWatchers" */ = { 395DE6AE429B7ACC7C7FE31D /* XCRemoteSwiftPackageReference "KZFileWatchers" */ = {
@ -7367,7 +7367,7 @@
repositoryURL = "https://github.com/siteline/SwiftUI-Introspect"; repositoryURL = "https://github.com/siteline/SwiftUI-Introspect";
requirement = { requirement = {
kind = upToNextMinorVersion; kind = upToNextMinorVersion;
minimumVersion = 0.9.0; minimumVersion = 1.1.4;
}; };
}; };
A08925A9D5E3770DEB9D8509 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = { A08925A9D5E3770DEB9D8509 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {
@ -7455,7 +7455,7 @@
repositoryURL = "https://github.com/element-hq/compound-ios"; repositoryURL = "https://github.com/element-hq/compound-ios";
requirement = { requirement = {
kind = revision; kind = revision;
revision = c1b9c32fef5f98f90bd1856cce327770297226b1; revision = 3cafe19060a31cb68aa4f530d2a37b3e5beac554;
}; };
}; };
F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = { F76A08D0EA29A07A54F4EB4D /* XCRemoteSwiftPackageReference "swift-collections" */ = {

View File

@ -5,8 +5,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-design-tokens", "location" : "https://github.com/element-hq/compound-design-tokens",
"state" : { "state" : {
"revision" : "c3fff1f2b042295cd5f4bcf8d4fe68ec47ca4061", "revision" : "5086370e2c8d6d23c761369c0ac6c3aef33fc5d6",
"version" : "1.2.0" "version" : "1.3.0"
} }
}, },
{ {
@ -14,7 +14,7 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/compound-ios", "location" : "https://github.com/element-hq/compound-ios",
"state" : { "state" : {
"revision" : "c1b9c32fef5f98f90bd1856cce327770297226b1" "revision" : "3cafe19060a31cb68aa4f530d2a37b3e5beac554"
} }
}, },
{ {
@ -175,8 +175,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/BarredEwe/Prefire", "location" : "https://github.com/BarredEwe/Prefire",
"state" : { "state" : {
"revision" : "608e7992dedc5ee409e59b3580010371ff0cef57", "revision" : "1ea1d76bb3c115a630c5d5d5f5d1c330f2f49982",
"version" : "2.0.4" "version" : "2.7.0"
} }
}, },
{ {
@ -193,8 +193,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/SFSafeSymbols/SFSafeSymbols", "location" : "https://github.com/SFSafeSymbols/SFSafeSymbols",
"state" : { "state" : {
"revision" : "7cca2d60925876b5953a2cf7341cd80fbeac983c", "revision" : "afd0a1da4ed62bab1413caa6dd6b60a7a7089ed2",
"version" : "4.1.1" "version" : "5.2.0"
} }
}, },
{ {
@ -265,8 +265,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/SwiftUI-Introspect", "location" : "https://github.com/siteline/SwiftUI-Introspect",
"state" : { "state" : {
"revision" : "b94da693e57eaf79d16464b8b7c90d09cba4e290", "revision" : "7dc5b287f8040e4ad5038739850b758e78f77808",
"version" : "0.9.2" "version" : "1.1.4"
} }
}, },
{ {

View File

@ -50,13 +50,13 @@ struct HomeScreenRoomList: View {
Button { Button {
context.send(viewAction: .markRoomAsRead(roomIdentifier: room.id)) context.send(viewAction: .markRoomAsRead(roomIdentifier: room.id))
} label: { } label: {
Text(L10n.screenRoomlistMarkAsRead) Label(L10n.screenRoomlistMarkAsRead, icon: \.markAsRead)
} }
} else { } else {
Button { Button {
context.send(viewAction: .markRoomAsUnread(roomIdentifier: room.id)) context.send(viewAction: .markRoomAsUnread(roomIdentifier: room.id))
} label: { } label: {
Text(L10n.screenRoomlistMarkAsUnread) Label(L10n.screenRoomlistMarkAsUnread, icon: \.markAsUnread)
} }
} }

View File

@ -1,6 +1,6 @@
test_configuration: test_configuration:
- template_file_path: PreviewTests.stencil - template_file_path: PreviewTests.stencil
- simulator_device: "iPhone15,2" - simulator_device: "iPhone15"
- required_os: 17 - required_os: 17
- snapshot_devices: - snapshot_devices:
- iPhone 15 - iPhone 15

View File

@ -53,7 +53,7 @@ packages:
# path: ../matrix-rust-sdk # path: ../matrix-rust-sdk
Compound: Compound:
url: https://github.com/element-hq/compound-ios url: https://github.com/element-hq/compound-ios
revision: c1b9c32fef5f98f90bd1856cce327770297226b1 revision: 3cafe19060a31cb68aa4f530d2a37b3e5beac554
# path: ../compound-ios # path: ../compound-ios
AnalyticsEvents: AnalyticsEvents:
url: https://github.com/matrix-org/matrix-analytics-events url: https://github.com/matrix-org/matrix-analytics-events
@ -110,7 +110,7 @@ packages:
minorVersion: 3.2.5 minorVersion: 3.2.5
Prefire: Prefire:
url: https://github.com/BarredEwe/Prefire url: https://github.com/BarredEwe/Prefire
minorVersion: 2.0.4 minorVersion: 2.7.0
Sentry: Sentry:
url: https://github.com/getsentry/sentry-cocoa url: https://github.com/getsentry/sentry-cocoa
minorVersion: 8.13.0 minorVersion: 8.13.0
@ -122,7 +122,7 @@ packages:
minorVersion: 6.0.0 minorVersion: 6.0.0
SwiftUIIntrospect: SwiftUIIntrospect:
url: https://github.com/siteline/SwiftUI-Introspect url: https://github.com/siteline/SwiftUI-Introspect
minorVersion: 0.9.0 minorVersion: 1.1.4
Version: Version:
url: https://github.com/mxcl/Version url: https://github.com/mxcl/Version
minorVersion: 2.0.0 minorVersion: 2.0.0