Update version

This commit is contained in:
Hillel Coren 2018-08-22 15:17:36 -07:00
parent e1f60319e8
commit 29ff8f415e
5 changed files with 23 additions and 7 deletions

View File

@ -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"
}

View File

@ -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';

View File

@ -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)));
*/
}
}

View File

@ -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:

View File

@ -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: