Skip to content

Commit 33ece77

Browse files
committed
v6.8.5
1 parent 9e19074 commit 33ece77

File tree

7 files changed

+24
-13
lines changed

7 files changed

+24
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [6.8.5] - 2025-05-02
2+
3+
* Fix: postman imports
4+
* pubspec.yaml updates
5+
16
## [6.8.4] - 2025-04-30
27

38
* pubspec.yaml updates

example/pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,15 +427,15 @@ packages:
427427
path: ".."
428428
relative: true
429429
source: path
430-
version: "6.8.3"
430+
version: "6.8.5"
431431
nylo_support:
432432
dependency: transitive
433433
description:
434434
name: nylo_support
435-
sha256: "6173b14205061c045f23be098bbadcd738b5073b94d4c1da833aa032e9b547c4"
435+
sha256: "7432256c7df92b995506f793e30c0f6de61ac97df114c15e09d38e4d685ee322"
436436
url: "https://pub.dev"
437437
source: hosted
438-
version: "6.28.1"
438+
version: "6.28.2"
439439
path:
440440
dependency: transitive
441441
description:

lib/metro/metro.dart

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,12 @@ _makePostmanApiService(
897897
}
898898

899899
if (responseBody != null && modelName != null) {
900-
dynamic jsonResponseBody = jsonDecode(responseBody);
900+
dynamic jsonResponseBody;
901+
try {
902+
jsonResponseBody = jsonDecode(responseBody);
903+
} on Exception catch (_) {
904+
jsonResponseBody = null;
905+
}
901906

902907
// create a model in the users directory
903908
var generator = DartCodeGenerator(
@@ -1006,9 +1011,10 @@ _makePostmanApiService(
10061011
return "";
10071012
}
10081013

1009-
if (file.contains("final Map<Type, dynamic> apiDecoders =")) {
1010-
RegExp reg =
1011-
RegExp(r'final Map<Type, dynamic> apiDecoders = \{([^}]*)\};');
1014+
RegExp reg =
1015+
RegExp(r'final Map<Type, dynamic> apiDecoders = \{([^}]*)\};');
1016+
if (file.contains("final Map<Type, dynamic> apiDecoders =") &&
1017+
reg.allMatches(file).map((e) => e.group(1)).toList().isNotEmpty) {
10121018
String temp = """
10131019
final Map<Type, dynamic> apiDecoders = {${reg.allMatches(file).map((e) => e.group(1)).toList()[0]}
10141020
$apiServiceName: $apiServiceName(),

lib/metro/stubs/network_method_stub.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ String networkMethodStub({
1717
//$method\n${urlFullPath != null ? ' /// $urlFullPath' : ''}
1818
Future<${_getType(model, isList: isList, isOptional: true)}> $methodName(${_mapParams(queryParams, dataParams, pathParams)}) async => await network${_getType(model, isList: isList, returnDynamic: false, addBrackets: true)}(
1919
${_callBackType(headers: headerParams, method: method, path: path, queryParams: queryParams, dataParams: dataParams, pathParams: pathParams)}
20-
${urlFullPath != null ? 'baseUrl: "${Uri.parse(urlFullPath).origin}"' : ''}
20+
${urlFullPath != null ? 'baseUrl: "${Uri.tryParse(urlFullPath)?.origin}"' : ''}
2121
);
2222
''';
2323

lib/nylo_framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export 'package:date_field/date_field.dart';
2929
export 'package:dio/dio.dart';
3030

3131
/// Nylo version
32-
const String nyloVersion = 'v6.8.4';
32+
const String nyloVersion = 'v6.8.5';

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ packages:
441441
dependency: "direct main"
442442
description:
443443
name: nylo_support
444-
sha256: "6173b14205061c045f23be098bbadcd738b5073b94d4c1da833aa032e9b547c4"
444+
sha256: "7432256c7df92b995506f793e30c0f6de61ac97df114c15e09d38e4d685ee322"
445445
url: "https://pub.dev"
446446
source: hosted
447-
version: "6.28.1"
447+
version: "6.28.2"
448448
path:
449449
dependency: transitive
450450
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_framework
22
description: Micro-framework for Flutter that's built to simplify app development for Flutter projects.
3-
version: 6.8.4
3+
version: 6.8.5
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/framework/tree/6.x
66
issue_tracker: https://github.com/nylo-core/framework/issues
@@ -17,7 +17,7 @@ environment:
1717

1818
dependencies:
1919
flutter_dotenv: ^5.2.1
20-
nylo_support: ^6.28.1
20+
nylo_support: ^6.28.2
2121
theme_provider: ^0.6.0
2222
flutter_secure_storage: ^9.2.4
2323
dart_console: ^4.1.1

0 commit comments

Comments
 (0)