Skip to content

Commit

Permalink
Merge pull request #1 from EmergeTools/update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
noahsmartin authored Feb 3, 2024
2 parents 047fd17 + 9f95cb1 commit 630c7f3
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 1,495 deletions.
25 changes: 0 additions & 25 deletions Package.resolved

This file was deleted.

40 changes: 1 addition & 39 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,12 @@ let package = Package(
.iOS(.v13),
],
products: [
// Core + SnapshotTesting for image comparison
.library(
name: "AccessibilitySnapshot",
targets: ["AccessibilitySnapshot"]
),
.library(
name: "FBSnapshotTestCase+Accessibility",
targets: [
"FBSnapshotTestCase+Accessibility",
"FBSnapshotTestCase+Accessibility-ObjC",
]
),
.library(
name: "AccessibilitySnapshotCore",
targets: ["AccessibilitySnapshotCore"]
),
],
dependencies: [
.package(
name: "iOSSnapshotTestCase",
url: "https://github.com/uber/ios-snapshot-test-case.git",
.upToNextMajor(from: "8.0.0")
),
.package(
name: "SnapshotTesting",
url: "https://github.com/pointfreeco/swift-snapshot-testing.git",
.upToNextMajor(from: "1.8.0")
),
],
dependencies: [],
targets: [
.target(
name: "AccessibilitySnapshotCore-ObjC",
Expand All @@ -49,20 +26,5 @@ let package = Package(
dependencies: ["AccessibilitySnapshotCore-ObjC"],
path: "Sources/AccessibilitySnapshot/Core/Swift"
),
.target(
name: "AccessibilitySnapshot",
dependencies: ["AccessibilitySnapshotCore", "SnapshotTesting"],
path: "Sources/AccessibilitySnapshot/SnapshotTesting"
),
.target(
name: "FBSnapshotTestCase+Accessibility",
dependencies: ["AccessibilitySnapshotCore", "iOSSnapshotTestCase"],
path: "Sources/AccessibilitySnapshot/iOSSnapshotTestCase/Swift"
),
.target(
name: "FBSnapshotTestCase+Accessibility-ObjC",
dependencies: ["AccessibilitySnapshotCore", "iOSSnapshotTestCase", "FBSnapshotTestCase+Accessibility"],
path: "Sources/AccessibilitySnapshot/iOSSnapshotTestCase/ObjC"
),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import Foundation
extension String {

func localized(key: String, comment: String, locale: String?, file: StaticString = #file) -> String {
let bundle = StringLocalization.preferredBundle(for: locale)

return bundle.localizedString(forKey: key, value: self, table: nil)
return self
}

}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 630c7f3

Please sign in to comment.