Skip to content

Commit fb5e348

Browse files
committed
v6.9.0
1 parent 2744c8c commit fb5e348

File tree

6 files changed

+41
-12
lines changed

6 files changed

+41
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [6.9.0] - 2025-10-28
2+
3+
* Added new `makeFile` command to the ny_cli.dart file
4+
* pubspec.yaml updates
5+
16
## [6.8.18] - 2025-10-12
27

38
* pubspec.yaml updates

example/pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ packages:
194194
dependency: transitive
195195
description:
196196
name: flutter_local_notifications
197-
sha256: "7ed76be64e8a7d01dfdf250b8434618e2a028c9dfa2a3c41dc9b531d4b3fc8a5"
197+
sha256: "19ffb0a8bb7407875555e5e98d7343a633bb73707bae6c6a5f37c90014077875"
198198
url: "https://pub.dev"
199199
source: hosted
200-
version: "19.4.2"
200+
version: "19.5.0"
201201
flutter_local_notifications_linux:
202202
dependency: transitive
203203
description:
@@ -427,15 +427,15 @@ packages:
427427
path: ".."
428428
relative: true
429429
source: path
430-
version: "6.8.18"
430+
version: "6.9.0"
431431
nylo_support:
432432
dependency: transitive
433433
description:
434434
name: nylo_support
435-
sha256: e91b09c5d64ce6b65814d274cd78ad2e1ecf833643c8c3e9ec1f642a03b48f62
435+
sha256: abc85f1566fbf680ef39295de6b733c462fecd039bd30d240df762aaa580510f
436436
url: "https://pub.dev"
437437
source: hosted
438-
version: "6.36.0"
438+
version: "6.37.0"
439439
path:
440440
dependency: transitive
441441
description:

lib/metro/ny_cli.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
library nylo_framework;
22

33
import 'dart:async';
4+
import 'dart:convert';
45
import 'dart:io';
56
import 'package:args/args.dart';
67
import 'package:nylo_support/metro/metro_service.dart';
@@ -139,6 +140,29 @@ abstract class NyCustomCommand {
139140
await MetroService.addPackages(packages, dev: dev);
140141
}
141142

143+
/// Create a file with the given content
144+
/// [overrideFile] - whether to override the file if it already exists
145+
/// [fileMode] - the file mode to use when creating the file
146+
/// [encoding] - the encoding to use when writing the file
147+
/// [flush] - whether to flush the file after writing
148+
Future<bool> makeFile(
149+
String path,
150+
String content, {
151+
bool overrideFile = false,
152+
FileMode fileMode = FileMode.write,
153+
Encoding encoding = utf8,
154+
bool flush = false,
155+
}) async {
156+
return await MetroService.createFile(
157+
path,
158+
content,
159+
overrideFile: overrideFile,
160+
fileMode: fileMode,
161+
encoding: encoding,
162+
flush: flush,
163+
);
164+
}
165+
142166
/// Prints a message in blue color
143167
info(String message) {
144168
// Print info message in blue

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.18';
32+
const String nyloVersion = 'v6.9.0';

pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ packages:
202202
dependency: transitive
203203
description:
204204
name: flutter_local_notifications
205-
sha256: "7ed76be64e8a7d01dfdf250b8434618e2a028c9dfa2a3c41dc9b531d4b3fc8a5"
205+
sha256: "19ffb0a8bb7407875555e5e98d7343a633bb73707bae6c6a5f37c90014077875"
206206
url: "https://pub.dev"
207207
source: hosted
208-
version: "19.4.2"
208+
version: "19.5.0"
209209
flutter_local_notifications_linux:
210210
dependency: transitive
211211
description:
@@ -441,10 +441,10 @@ packages:
441441
dependency: "direct main"
442442
description:
443443
name: nylo_support
444-
sha256: e91b09c5d64ce6b65814d274cd78ad2e1ecf833643c8c3e9ec1f642a03b48f62
444+
sha256: abc85f1566fbf680ef39295de6b733c462fecd039bd30d240df762aaa580510f
445445
url: "https://pub.dev"
446446
source: hosted
447-
version: "6.36.0"
447+
version: "6.37.0"
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.18
3+
version: 6.9.0
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: ^6.0.0
20-
nylo_support: ^6.36.0
20+
nylo_support: ^6.37.0
2121
theme_provider: ^0.6.0
2222
flutter_secure_storage: ^9.2.4
2323
skeletonizer: ^2.0.1

0 commit comments

Comments
 (0)