Update version
This commit is contained in:
parent
e1f60319e8
commit
29ff8f415e
|
|
@ -30,8 +30,8 @@ android {
|
|||
applicationId "com.invoiceninja.invoiceninja_flutter"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 27
|
||||
versionCode 9
|
||||
versionName "0.1.7"
|
||||
versionCode 11
|
||||
versionName "0.1.9"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
// This version must be updated in tandem with the pubspec version.
|
||||
const String kAppVersion = '0.1.7';
|
||||
const String kAppVersion = '0.1.9';
|
||||
|
||||
const String kSharedPrefEmail = 'email';
|
||||
const String kSharedPrefUrl = 'url';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import 'package:http/http.dart' as http;
|
|||
import 'package:invoiceninja_flutter/ui/app/dialogs/loading_dialog.dart';
|
||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:flutter_pdf_viewer/flutter_pdf_viewer.dart';
|
||||
//import 'package:flutter_pdf_viewer/flutter_pdf_viewer.dart';
|
||||
|
||||
Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
|
||||
final localization = AppLocalization.of(context);
|
||||
|
|
@ -19,6 +19,14 @@ Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
|
|||
throw localization.anErrorOccurred;
|
||||
}
|
||||
} else {
|
||||
final String url =
|
||||
'https://docs.google.com/viewer?url=' + invoice.invitationDownloadLink;
|
||||
if (await canLaunch(url)) {
|
||||
await launch(url, forceSafariVC: true, forceWebView: true);
|
||||
} else {
|
||||
throw localization.anErrorOccurred;
|
||||
}
|
||||
/*
|
||||
showDialog<SimpleDialog>(
|
||||
context: context,
|
||||
builder: (BuildContext context) => SimpleDialog(children: <Widget>[
|
||||
|
|
@ -30,5 +38,6 @@ Future<Null> viewPdf(InvoiceEntity invoice, BuildContext context) async {
|
|||
);
|
||||
navigator.pop();
|
||||
FlutterPdfViewer.loadBytes(base64Decode(response.body.substring(28)));
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,6 +155,13 @@ packages:
|
|||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "5.0.1"
|
||||
firebase_auth:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: firebase_auth
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.5.19"
|
||||
fixnum:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
name: invoiceninja_flutter
|
||||
description: Mobile app for Invoice Ninja
|
||||
version: 0.1.7
|
||||
version: 0.1.9
|
||||
author: Hillel Coren
|
||||
homepage: https://www.invoiceninja.com
|
||||
documentation: http://docs.invoiceninja.com
|
||||
|
|
@ -26,7 +26,7 @@ dependencies:
|
|||
flutter_pdf_viewer: ^0.0.2
|
||||
#flutter_html_view: ^0.5.2
|
||||
google_sign_in: ^3.0.4
|
||||
#firebase_auth: ^0.5.19
|
||||
firebase_auth: ^0.5.19
|
||||
|
||||
dev_dependencies:
|
||||
flutter_driver:
|
||||
|
|
|
|||
Loading…
Reference in New Issue