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
2019-11-26 03:57:30 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
54dcd599a65fbd084ae37f616410a9da24ae432d
54dcd599
1 parent
3c8ec178
Simplify iOS code
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
49 deletions
printing/CHANGELOG.md
printing/ios/Classes/PrintingPlugin.h
printing/ios/Classes/PrintingPlugin.m
printing/ios/Classes/SwiftPrintingPlugin.swift → printing/ios/Classes/PrintingPlugin.swift
printing/ios/printing.podspec
printing/CHANGELOG.md
View file @
54dcd59
# Changelog
## 2.2.0
-
Simplify iOS code
## 2.1.9
-
Add Markdown example
...
...
printing/ios/Classes/PrintingPlugin.h
deleted
100644 → 0
View file @
3c8ec17
/*
* Copyright (C) 2017, David PHAM-VAN <dev.nfet.net@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import <Flutter/Flutter.h>
@interface
PrintingPlugin
:
NSObject
<
FlutterPlugin
>
@end
printing/ios/Classes/PrintingPlugin.m
deleted
100644 → 0
View file @
3c8ec17
/*
* Copyright (C) 2017, David PHAM-VAN <dev.nfet.net@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import "PrintingPlugin.h"
#import <printing/printing-Swift.h>
@implementation
PrintingPlugin
+
(
void
)
registerWithRegistrar
:(
NSObject
<
FlutterPluginRegistrar
>*
)
registrar
{
[
SwiftPrintingPlugin
registerWithRegistrar
:
registrar
];
}
@end
printing/ios/Classes/
Swift
PrintingPlugin.swift → printing/ios/Classes/PrintingPlugin.swift
View file @
54dcd59
...
...
@@ -18,7 +18,7 @@ import Flutter
import
UIKit
import
WebKit
public
class
Swift
PrintingPlugin
:
NSObject
,
FlutterPlugin
,
UIPrintInteractionControllerDelegate
{
public
class
PrintingPlugin
:
NSObject
,
FlutterPlugin
,
UIPrintInteractionControllerDelegate
{
private
var
channel
:
FlutterMethodChannel
?
private
var
renderer
:
PdfPrintPageRenderer
?
private
var
urlObservation
:
NSKeyValueObservation
?
...
...
@@ -31,7 +31,7 @@ public class SwiftPrintingPlugin: NSObject, FlutterPlugin, UIPrintInteractionCon
public
static
func
register
(
with
registrar
:
FlutterPluginRegistrar
)
{
let
channel
=
FlutterMethodChannel
(
name
:
"net.nfet.printing"
,
binaryMessenger
:
registrar
.
messenger
())
let
instance
=
Swift
PrintingPlugin
(
channel
)
let
instance
=
PrintingPlugin
(
channel
)
registrar
.
addMethodCallDelegate
(
instance
,
channel
:
channel
)
}
...
...
printing/ios/printing.podspec
View file @
54dcd59
...
...
@@ -8,12 +8,11 @@ Pod::Spec.new do |s|
s
.
description
=
<<-
DESC
Plugin that allows Flutter apps to generate and print documents to android or ios compatible printers
DESC
s
.
homepage
=
'http
://example.com
'
s
.
homepage
=
'http
s://github.com/DavBfr/dart_pdf/tree/master/printing
'
s
.
license
=
{
:file
=>
'../LICENSE'
}
s
.
author
=
{
'
Your Company'
=>
'email@example
.com'
}
s
.
author
=
{
'
David PHAM-VAN'
=>
'dev.nfet.net@gmail
.com'
}
s
.
source
=
{
:path
=>
'.'
}
s
.
source_files
=
'Classes/**/*'
s
.
public_header_files
=
'Classes/**/*.h'
s
.
dependency
'Flutter'
s
.
ios
.
deployment_target
=
'8.0'
...
...
Please
register
or
login
to post a comment