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
2021-05-19 19:33:06 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ead69d81cef6ac737028e2bf226ef93fa6e9e367
ead69d81
1 parent
1816b8ea
Fix Linux build on Debian 9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
2 deletions
.github/workflows/dart.yaml
printing/CHANGELOG.md
printing/linux/print_job.cc
printing/linux/print_job.h
printing/linux/printing_plugin.cc
.github/workflows/dart.yaml
View file @
ead69d8
...
...
@@ -7,7 +7,7 @@ on:
branches
:
[
master
]
jobs
:
build
:
linux
:
runs-on
:
ubuntu-latest
steps
:
...
...
@@ -15,8 +15,10 @@ jobs:
-
uses
:
subosito/flutter-action@v1
with
:
channel
:
stable
-
name
:
Enable Linux for flutter
run
:
flutter config --enable-linux-desktop
-
name
:
Install utils
run
:
sudo apt install poppler-utils imagemagick
run
:
sudo apt install poppler-utils imagemagick
clang cmake ninja-build pkg-config libgtk-3-dev
-
name
:
Run analysis
run
:
make analyze
-
name
:
Run tests
...
...
@@ -27,3 +29,11 @@ jobs:
run
:
test -z "$(git status --porcelain)"
-
name
:
Push to codecov
run
:
bash <(curl -s https://codecov.io/bash)
-
name
:
Prepare build
run
:
cd printing/example; flutter create -t app --no-overwrite --org net.nfet --project-name example .
-
name
:
Build example for Linux
run
:
cd printing/example; flutter build -v linux
-
name
:
Build example for Android
run
:
cd printing/example; flutter build -v apk
-
name
:
Build demo for Web
run
:
cd demo; flutter build -v web
...
...
printing/CHANGELOG.md
View file @
ead69d8
...
...
@@ -4,6 +4,7 @@
-
Fix raster crash on all OS.
-
Improve PdfPreview widget
-
Fix Linux build on Debian 9
## 5.2.1
...
...
printing/linux/print_job.cc
View file @
ead69d8
...
...
@@ -20,6 +20,7 @@
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <cstring>
#include <string>
#include <fpdfview.h>
...
...
printing/linux/print_job.h
View file @
ead69d8
...
...
@@ -17,6 +17,10 @@
#ifndef PRINTING_PLUGIN_PRINT_JOB_H_
#define PRINTING_PLUGIN_PRINT_JOB_H_
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <gtk/gtkunixprint.h>
...
...
printing/linux/printing_plugin.cc
View file @
ead69d8
...
...
@@ -16,6 +16,7 @@
#include "include/printing/printing_plugin.h"
#include <cstring>
#include <memory>
#include <flutter_linux/flutter_linux.h>
...
...
Please
register
or
login
to post a comment