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:
Gustaf Järgren authored and GitHub committed 2023-02-11 00:24:06 +11:00
1 parent 298ee24a9c
commit 6d4973deb8
51 files changed
+816 -592

No files matched your search

+7 -6
View File
@@ -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;
+2 -1
View File
@@ -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()}");
});