mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 12:15:31 +00:00
Updated dependencies (#255)
* Bump android compile and target version, also flutter dependencies and resolve issues * Remove deprecated splashscreen and added support for new Android 12 version. * Updated workflow action versions and flutter sdk * Resolved linting issues * Resolved test binding issues
This commit is contained in:
@ -223,8 +223,9 @@ class InvenTreeModel {
|
||||
|
||||
Future <void> goToInvenTreePage() async {
|
||||
|
||||
if (await canLaunch(webUrl)) {
|
||||
await launch(webUrl);
|
||||
var uri = Uri.tryParse(webUrl);
|
||||
if (uri != null && await canLaunchUrl(uri)) {
|
||||
await launchUrl(uri);
|
||||
} else {
|
||||
// TODO
|
||||
}
|
||||
@ -233,9 +234,9 @@ class InvenTreeModel {
|
||||
Future <void> openLink() async {
|
||||
|
||||
if (link.isNotEmpty) {
|
||||
|
||||
if (await canLaunch(link)) {
|
||||
await launch(link);
|
||||
var uri = Uri.tryParse(link);
|
||||
if (uri != null && await canLaunchUrl(uri)) {
|
||||
await launchUrl(uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -799,7 +800,7 @@ class InvenTreeAttachment extends InvenTreeModel {
|
||||
}
|
||||
}
|
||||
|
||||
return FontAwesomeIcons.fileAlt;
|
||||
return FontAwesomeIcons.fileLines;
|
||||
}
|
||||
|
||||
String get comment => (jsondata["comment"] ?? "") as String;
|
||||
|
@ -37,7 +37,7 @@ Future<Map<String, dynamic>> getDeviceInfo() async {
|
||||
"model": androidDeviceInfo.model,
|
||||
"device": androidDeviceInfo.device,
|
||||
"id": androidDeviceInfo.id,
|
||||
"androidId": androidDeviceInfo.androidId,
|
||||
"androidId": androidDeviceInfo.id,
|
||||
"brand": androidDeviceInfo.brand,
|
||||
"display": androidDeviceInfo.display,
|
||||
"hardware": androidDeviceInfo.hardware,
|
||||
@ -202,6 +202,7 @@ Future<void> sentryReportError(String source, dynamic error, dynamic stackTrace,
|
||||
Sentry.captureException(error, stackTrace: stackTrace).catchError((error) {
|
||||
print("Error uploading information to Sentry.io:");
|
||||
print(error);
|
||||
return SentryId.empty();
|
||||
}).then((response) {
|
||||
print("Uploaded information to Sentry.io : ${response.toString()}");
|
||||
});
|
||||
|
Reference in New Issue
Block a user