Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2022-03-20 08:47:37 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bcc07a34a4432ed18b740bab22c16072a85b4868
bcc07a34
1 parent
673a513b
Update SWIFT code formatter to version 5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
Makefile
printing/CHANGELOG.md
printing/ios/Classes/PrintJob.swift
printing/pubspec.yaml
Makefile
View file @
bcc07a3
...
...
@@ -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
...
...
printing/CHANGELOG.md
View file @
bcc07a3
# Changelog
## 5.7.5
-
Update SWIFT code formatter to version 5
## 5.7.4
-
Fix orientation not changing
...
...
printing/ios/Classes/PrintJob.swift
View file @
bcc07a3
...
...
@@ -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
)
{
...
...
printing/pubspec.yaml
View file @
bcc07a3
...
...
@@ -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"
...
...
Please
register
or
login
to post a comment