Release v0.8.0
This commit is contained in:
parent
912eb5c0e6
commit
bc234c3cd3
11
CHANGELOG.md
11
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)
|
||||
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "cordova-plugin-printer",
|
||||
"version": "0.8.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
11
package.json
11
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": {}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
<plugin id="cordova-plugin-printer"
|
||||
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
version="0.8.0.alpha">
|
||||
version="0.8.0">
|
||||
|
||||
<name>Printer</name>
|
||||
|
||||
|
@ -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 <Cordova/CDVPlugin.h>
|
||||
|
||||
@interface APPPrinter : CDVPlugin
|
||||
|
||||
- (void) check:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
- (void) types:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
- (void) pick:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
- (void) print:(CDVInvokedUrlCommand *)command;
|
||||
|
||||
@end
|
@ -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
|
Loading…
Reference in New Issue
Block a user