Fix for PDF

This commit is contained in:
Hillel Coren 2018-08-29 18:19:54 -07:00
parent 22f6ad4a74
commit f877c4d4a9
4 changed files with 6 additions and 5 deletions

View File

@ -30,8 +30,8 @@ android {
applicationId "com.invoiceninja.invoiceninja_flutter" applicationId "com.invoiceninja.invoiceninja_flutter"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 27 targetSdkVersion 27
versionCode 11 versionCode 12
versionName "0.1.9" versionName "0.1.10"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }

View File

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// This version must be updated in tandem with the pubspec version. // This version must be updated in tandem with the pubspec version.
const String kAppVersion = '0.1.9'; const String kAppVersion = '0.1.10';
const String kSharedPrefEmail = 'email'; const String kSharedPrefEmail = 'email';
const String kSharedPrefUrl = 'url'; const String kSharedPrefUrl = 'url';

View File

@ -22,7 +22,8 @@ Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
final String url = final String url =
'https://docs.google.com/viewer?url=' + invoice.invitationDownloadLink; 'https://docs.google.com/viewer?url=' + invoice.invitationDownloadLink;
if (await canLaunch(url)) { if (await canLaunch(url)) {
await launch(url, forceSafariVC: true, forceWebView: true); await launch(url,
forceSafariVC: false, forceWebView: false);
} else { } else {
throw localization.anErrorOccurred; throw localization.anErrorOccurred;
} }

View File

@ -1,6 +1,6 @@
name: invoiceninja_flutter name: invoiceninja_flutter
description: Mobile app for Invoice Ninja description: Mobile app for Invoice Ninja
version: 0.1.9 version: 0.1.10
author: Hillel Coren author: Hillel Coren
homepage: https://www.invoiceninja.com homepage: https://www.invoiceninja.com
documentation: http://docs.invoiceninja.com documentation: http://docs.invoiceninja.com