Skip to content

Commit

Permalink
Merge pull request #18 from playbook-ui/feat/support-newer-dependency…
Browse files Browse the repository at this point in the history
…-ver

Add support for AccessibilitySnapshot v0.5.0
  • Loading branch information
ra1028 authored May 19, 2022
2 parents d9a2bb1 + dba9d04 commit 03569df
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.3.0
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/cashapp/AccessibilitySnapshot.git",
"state": {
"branch": null,
"revision": "fb797dda564408b7da23349b25d192339402286e",
"version": "0.4.1"
"revision": "68f9270211893bcbb8a9b1b9d02e71303de35e26",
"version": "0.5.0"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/cashapp/AccessibilitySnapshot.git",
"state": {
"branch": null,
"revision": "fb797dda564408b7da23349b25d192339402286e",
"version": "0.4.1"
"revision": "68f9270211893bcbb8a9b1b9d02e71303de35e26",
"version": "0.5.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
.package(
name: "AccessibilitySnapshot",
url: "https://github.com/cashapp/AccessibilitySnapshot.git",
.upToNextMinor(from: "0.4.1")
.upToNextMinor(from: "0.5.0")
),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion PlaybookAccessibilitySnapshot.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '12.0'
spec.ios.source_files = 'Sources/**/*.swift'
spec.dependency 'PlaybookSnapshot', "~> 0.3.0"
spec.dependency 'AccessibilitySnapshot/Core', "~> 0.4.1"
spec.dependency 'AccessibilitySnapshot/Core', "~> 0.5.0"

spec.pod_target_xcconfig = {
'APPLICATION_EXTENSION_API_ONLY' => 'NO',
Expand Down
4 changes: 3 additions & 1 deletion Sources/AccessibilitySnapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public struct AccessibilitySnapshot: TestTool {
activationPointDisplayMode: .always
)

accessibilityView.parseAccessibility(useMonochromeSnapshot: false)
// Ignoring the error thrown by the parse function. It will be handled correctly
// once `PlaybookSnapshot` supports `viewPreprocessor` parameter to throw an error.
try? accessibilityView.parseAccessibility(useMonochromeSnapshot: false)
accessibilityView.sizeToFit()
return accessibilityView
}
Expand Down

0 comments on commit 03569df

Please sign in to comment.