snapshot/lib/assets/SnapshotHelper.swift in fastlane-2.210.1 vs snapshot/lib/assets/SnapshotHelper.swift in fastlane-2.211.0
- old
+ new
@@ -179,11 +179,11 @@
let range = NSRange(location: 0, length: simulator.count)
simulator = regex.stringByReplacingMatches(in: simulator, range: range, withTemplate: "")
let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png")
#if swift(<5.0)
- UIImagePNGRepresentation(image)?.write(to: path, options: .atomic)
+ try UIImagePNGRepresentation(image)?.write(to: path, options: .atomic)
#else
try image.pngData()?.write(to: path, options: .atomic)
#endif
} catch let error {
NSLog("Problem writing screenshot: \(name) to \(screenshotsDir)/\(simulator)-\(name).png")
@@ -304,6 +304,6 @@
}
}
// Please don't remove the lines below
// They are used to detect outdated configuration files
-// SnapshotHelperVersion [1.28]
+// SnapshotHelperVersion [1.29]