From bc234c3cd32b98f5e8c55fae64610c90b90f63c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Fri, 1 Mar 2019 21:17:51 +0100 Subject: [PATCH] Release v0.8.0 --- CHANGELOG.md | 11 +++++-- package-lock.json | 5 ++++ package.json | 11 ++++--- plugin.xml | 2 +- src/osx/APPPrinter.h | 34 ---------------------- src/osx/APPPrinter.m | 69 -------------------------------------------- 6 files changed, 22 insertions(+), 110 deletions(-) create mode 100644 package-lock.json delete mode 100644 src/osx/APPPrinter.h delete mode 100644 src/osx/APPPrinter.m diff --git a/CHANGELOG.md b/CHANGELOG.md index 91c08eb..b73de8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ ## ChangeLog -#### Version 0.7.4 (not yet released) -- Fix broken _check_ and _pick_ on Android N and above + +#### Version 0.8.0 (01.03.2019) +- Most parts of the code has been rewritten +- Added support for Android 8+ +- Added support for iOS 10+ +- Added support for the browser platform +- Added support for header and foooter +- Added support to print PDF files, images, Base64 encoded images +- And many more, see the new README #### Version 0.7.3 (19.12.2016) - Fixed incompatibility with Android KitKat (4.4) diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..01bb4cc --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "cordova-plugin-printer", + "version": "0.8.0", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index a6387de..3446156 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "cordova-plugin-printer", - "version": "0.7.3", + "version": "0.8.0", "description": "Prints HTML documents", "cordova": { "id": "cordova-plugin-printer", "platforms": [ "ios", "android", - "windows" + "windows", + "browser" ] }, "repository": { @@ -21,7 +22,8 @@ "ecosystem:cordova", "cordova-ios", "cordova-android", - "cordova-windows" + "cordova-windows", + "cordova-browser" ], "engines": [ { @@ -42,5 +44,6 @@ "bugs": { "url": "https://github.com/katzer/cordova-plugin-printer/issues" }, - "homepage": "https://github.com/katzer/cordova-plugin-printer#readme" + "homepage": "https://github.com/katzer/cordova-plugin-printer#readme", + "dependencies": {} } diff --git a/plugin.xml b/plugin.xml index a267ea6..a1cab18 100644 --- a/plugin.xml +++ b/plugin.xml @@ -24,7 +24,7 @@ + version="0.8.0"> Printer diff --git a/src/osx/APPPrinter.h b/src/osx/APPPrinter.h deleted file mode 100644 index bee1606..0000000 --- a/src/osx/APPPrinter.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - Copyright 2013-2016 appPlant GmbH - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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 - -@interface APPPrinter : CDVPlugin - -- (void) check:(CDVInvokedUrlCommand *)command; - -- (void) types:(CDVInvokedUrlCommand *)command; - -- (void) pick:(CDVInvokedUrlCommand *)command; - -- (void) print:(CDVInvokedUrlCommand *)command; - -@end diff --git a/src/osx/APPPrinter.m b/src/osx/APPPrinter.m deleted file mode 100644 index 4f2b14b..0000000 --- a/src/osx/APPPrinter.m +++ /dev/null @@ -1,69 +0,0 @@ -/* - Copyright 2013 appPlant GmbH - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you 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. - */ - -#include "APPPrinter.h" - -@implementation APPPrinter - -#pragma mark - -#pragma mark Interface - -/* - * Checks if the printing service is available. - */ -- (void) check:(CDVInvokedUrlCommand *)command -{ - [self.commandDelegate runInBackground:^{ - - }]; -} - -/* - * List all printable document types (utis). - */ -- (void) types:(CDVInvokedUrlCommand *)command -{ - [self.commandDelegate runInBackground:^{ - - }]; -} - -/** - * Displays system interface for selecting a printer. - */ -- (void) pick:(CDVInvokedUrlCommand *)command -{ - [self.commandDelegate runInBackground:^{ - - }]; -} - -/** - * Sends the printing content to the printer controller and opens them. - */ -- (void) print:(CDVInvokedUrlCommand *)command -{ - [self.commandDelegate runInBackground:^{ - - }]; -} - -@end