David PHAM-VAN

Update version and changelog

# Changelog
## 5.0.5
## 5.1.0
- Fix PdfPreview timer dispose [wwl901215]
- Remove unnecessary _raster call in PdfPreview [yaymalaga]
- Added subject, body and email parameters in sharePdf [Deepak]
- Subject, body and emails parameter to pdf preview [Deepak]
## 5.0.4
... ...
... ... @@ -208,7 +208,7 @@ public class PrintingJob extends PrintDocumentAdapter {
}
static void sharePdf(final Context context, final byte[] data, final String name,
final String subject, final String body, final ArrayList<String> emails) {
final String subject, final String body, final ArrayList<String> emails) {
assert name != null;
try {
... ... @@ -236,7 +236,8 @@ public class PrintingJob extends PrintDocumentAdapter {
shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
shareIntent.putExtra(Intent.EXTRA_TEXT, body);
shareIntent.putExtra(Intent.EXTRA_EMAIL, emails != null ? emails.toArray(new String[0]) : null);
shareIntent.putExtra(
Intent.EXTRA_EMAIL, emails != null ? emails.toArray(new String[0]) : null);
Intent chooserIntent = Intent.createChooser(shareIntent, null);
List<ResolveInfo> resInfoList = context.getPackageManager().queryIntentActivities(
chooserIntent, PackageManager.MATCH_DEFAULT_ONLY);
... ...
... ... @@ -198,7 +198,7 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate
}
let activityViewController = UIActivityViewController(activityItems: [fileURL, body], applicationActivities: nil)
activityViewController.setValue(subject , forKey: "subject")
activityViewController.setValue(subject, forKey: "subject")
if UI_USER_INTERFACE_IDIOM() == .pad {
let controller: UIViewController? = UIApplication.shared.keyWindow?.rootViewController
activityViewController.popoverPresentationController?.sourceView = controller?.view
... ...
... ... @@ -7,7 +7,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.0.5
version: 5.1.0
environment:
sdk: ">=2.12.0-0 <3.0.0"
... ...