Showing
4 changed files
with
9 additions
and
5 deletions
@@ -63,7 +63,7 @@ format-clang: $(CLNG_SRC) | @@ -63,7 +63,7 @@ format-clang: $(CLNG_SRC) | ||
63 | clang-format -style=Chromium -i $^ | 63 | clang-format -style=Chromium -i $^ |
64 | 64 | ||
65 | format-swift: $(SWFT_SRC) | 65 | format-swift: $(SWFT_SRC) |
66 | - which swiftformat && swiftformat --swiftversion 4.2 $^ || true | 66 | + which swiftformat && swiftformat --swiftversion 5 $^ || true |
67 | 67 | ||
68 | .coverage: | 68 | .coverage: |
69 | which coverage || $(DART_BIN) pub global activate coverage | 69 | which coverage || $(DART_BIN) pub global activate coverage |
@@ -54,7 +54,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -54,7 +54,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
54 | if dynamic { | 54 | if dynamic { |
55 | semaphore.signal() | 55 | semaphore.signal() |
56 | } else { | 56 | } else { |
57 | - self.printing.onCompleted(printJob: self, completed: false, error: error as NSString?) | 57 | + printing.onCompleted(printJob: self, completed: false, error: error as NSString?) |
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
@@ -109,7 +109,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -109,7 +109,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
109 | 109 | ||
110 | override public var numberOfPages: Int { | 110 | override public var numberOfPages: Int { |
111 | if dynamic { | 111 | if dynamic { |
112 | - self.printing.onLayout( | 112 | + printing.onLayout( |
113 | printJob: self, | 113 | printJob: self, |
114 | width: paperRect.size.width, | 114 | width: paperRect.size.width, |
115 | height: paperRect.size.height, | 115 | height: paperRect.size.height, |
@@ -131,7 +131,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -131,7 +131,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
131 | print("Unable to print: \(error?.localizedDescription ?? "unknown error")") | 131 | print("Unable to print: \(error?.localizedDescription ?? "unknown error")") |
132 | } | 132 | } |
133 | 133 | ||
134 | - self.printing.onCompleted(printJob: self, completed: completed, error: error?.localizedDescription as NSString?) | 134 | + printing.onCompleted(printJob: self, completed: completed, error: error?.localizedDescription as NSString?) |
135 | } | 135 | } |
136 | 136 | ||
137 | func printPdf(name: String, withPageSize size: CGSize, andMargin margin: CGRect, withPrinter printerID: String?, dynamically dyn: Bool) { | 137 | func printPdf(name: String, withPageSize size: CGSize, andMargin margin: CGRect, withPrinter printerID: String?, dynamically dyn: Bool) { |
@@ -6,7 +6,7 @@ description: > | @@ -6,7 +6,7 @@ description: > | ||
6 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing | 6 | homepage: https://github.com/DavBfr/dart_pdf/tree/master/printing |
7 | repository: https://github.com/DavBfr/dart_pdf | 7 | repository: https://github.com/DavBfr/dart_pdf |
8 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues | 8 | issue_tracker: https://github.com/DavBfr/dart_pdf/issues |
9 | -version: 5.7.4 | 9 | +version: 5.7.5 |
10 | 10 | ||
11 | environment: | 11 | environment: |
12 | sdk: ">=2.12.0 <3.0.0" | 12 | sdk: ">=2.12.0 <3.0.0" |
-
Please register or login to post a comment