David PHAM-VAN

Add changelog and format

# Changelog
## 5.13.2
- Added new printing output type value on iOS [Matteo Ricupero]
## 5.13.1
- Fix Flutter SDK Minimum version
... ... @@ -39,7 +43,7 @@
- Fix raster crash on iOS and MacOS [Eduardo Vital Alencar Cunha]
- Fix wrong format in directPrintPdf [<AlhasanAlQaisi>]
- Add compatibility with Android Gradle Plugin 8.0 [asaarnak]
- Add compatibility with Flutter 3.10
- Add compatibility with Flutter 3.10
- Re-init UIPrinter cause issues with delegate [Hasan]
## 5.10.3
... ...
... ... @@ -151,9 +151,10 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
for paper in paperList {
if (paper.paperSize.width == currentSize!.width && paper.paperSize.height == currentSize!.height) ||
(paper.paperSize.width == currentSize!.height && paper.paperSize.height == currentSize!.width) {
(paper.paperSize.width == currentSize!.height && paper.paperSize.height == currentSize!.width)
{
return paper
}
}
}
let bestPaper = UIPrintPaper.bestPaper(forPageSize: currentSize!, withPapersFrom: paperList)
... ...
... ... @@ -60,10 +60,9 @@ public class PrintingPlugin: NSObject, FlutterPlugin {
let marginBottom = CGFloat((args["marginBottom"] as! NSNumber).floatValue)
let printJob = PrintJob(printing: self, index: args["job"] as! Int)
let dynamic = args["dynamic"] as! Bool
let outputType: UIPrintInfo.OutputType
switch (args["outputType"] as! Int) {
switch args["outputType"] as! Int {
case 0:
outputType = UIPrintInfo.OutputType.general
case 1:
... ...