From fad7840c5c583155492d114c4e3a552bb87ecd57 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 14 Jul 2021 11:23:18 +1000 Subject: [PATCH] v0.2.7 - Update release notes --- assets/release_notes.md | 5 +++++ ios/Flutter/flutter_export_environment.sh | 4 ++-- lib/api.dart | 5 ----- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/release_notes.md b/assets/release_notes.md index f8d1bc81..07573425 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -1,6 +1,11 @@ ## InvenTree App Release Notes --- +### 0.2.7 - July 2021 +--- + +- Fixed errors in error-handling code + ### 0.2.6 - July 2021 --- diff --git a/ios/Flutter/flutter_export_environment.sh b/ios/Flutter/flutter_export_environment.sh index 4b84d6e6..c4c0ae52 100644 --- a/ios/Flutter/flutter_export_environment.sh +++ b/ios/Flutter/flutter_export_environment.sh @@ -6,8 +6,8 @@ export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "FLUTTER_TARGET=lib\main.dart" export "FLUTTER_BUILD_DIR=build" export "SYMROOT=${SOURCE_ROOT}/../build\ios" -export "FLUTTER_BUILD_NAME=0.2.6" -export "FLUTTER_BUILD_NUMBER=14" +export "FLUTTER_BUILD_NAME=0.2.7" +export "FLUTTER_BUILD_NUMBER=15" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=false" export "TREE_SHAKE_ICONS=false" diff --git a/lib/api.dart b/lib/api.dart index 843ffc85..f8ad0da6 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -765,10 +765,6 @@ class InvenTreeAPI { return null; } - if (request == null) { - return null; - } - // Set connection headers request.headers.set(HttpHeaders.contentTypeHeader, 'application/json'); request.headers.set(HttpHeaders.authorizationHeader, _authorizationHeader()); @@ -776,7 +772,6 @@ class InvenTreeAPI { try { HttpClientResponse response = await request.close().timeout(Duration(seconds: 10)); - return response; } on TimeoutException catch (error) { diff --git a/pubspec.yaml b/pubspec.yaml index b3f634e2..ea2225a9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ description: InvenTree stock management # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.2.6+14 +version: 0.2.7+15 environment: sdk: ">=2.12.0 <3.0.0"