Skip to content

Commit 3b819e8

Browse files
Add note to generated file how to re-generate it.
1 parent 335144a commit 3b819e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

generator/lib/src/code_chunks.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ class CodeChunks {
1010
ModelInfo model, List<String> imports, Pubspec? pubspec) =>
1111
"""
1212
// GENERATED CODE - DO NOT MODIFY BY HAND
13+
// This code was generated by ObjectBox. To update it run the generator again:
14+
// With a Flutter package, run `flutter pub run build_runner build`.
15+
// With a Dart package, run `dart run build_runner build`.
16+
// See also https://docs.objectbox.io/getting-started#generate-objectbox-code
1317
1418
// ignore_for_file: camel_case_types
1519

objectbox/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## latest
22

3+
* Add note to `objectbox.g.dart` on how to re-generate (update) it.
4+
35
## 1.4.0 (2022-02-22)
46

57
* Support [ObjectBox Admin](https://docs.objectbox.io/data-browser) for Android apps to browse

0 commit comments

Comments
 (0)