David PHAM-VAN

Update SWIFT code formatter to version 5

... ... @@ -63,7 +63,7 @@ format-clang: $(CLNG_SRC)
clang-format -style=Chromium -i $^
format-swift: $(SWFT_SRC)
which swiftformat && swiftformat --swiftversion 4.2 $^ || true
which swiftformat && swiftformat --swiftversion 5 $^ || true
.coverage:
which coverage || $(DART_BIN) pub global activate coverage
... ...
# Changelog
## 5.7.5
- Update SWIFT code formatter to version 5
## 5.7.4
- Fix orientation not changing
... ...
... ... @@ -54,7 +54,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
if dynamic {
semaphore.signal()
} else {
self.printing.onCompleted(printJob: self, completed: false, error: error as NSString?)
printing.onCompleted(printJob: self, completed: false, error: error as NSString?)
}
}
... ... @@ -109,7 +109,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
override public var numberOfPages: Int {
if dynamic {
self.printing.onLayout(
printing.onLayout(
printJob: self,
width: paperRect.size.width,
height: paperRect.size.height,
... ... @@ -131,7 +131,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
print("Unable to print: \(error?.localizedDescription ?? "unknown error")")
}
self.printing.onCompleted(printJob: self, completed: completed, error: error?.localizedDescription as NSString?)
printing.onCompleted(printJob: self, completed: completed, error: error?.localizedDescription as NSString?)
}
func printPdf(name: String, withPageSize size: CGSize, andMargin margin: CGRect, withPrinter printerID: String?, dynamically dyn: Bool) {
... ...
... ... @@ -6,7 +6,7 @@ description: >
homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing
repository: https://github.com/DavBfr/dart_pdf
issue_tracker: https://github.com/DavBfr/dart_pdf/issues
version: 5.7.4
version: 5.7.5
environment:
sdk: ">=2.12.0 <3.0.0"
... ...