1

I am trying to use object box in flutter application. It gives two files on pub run one objectbox.g.dart and other one objectbox-model.json.

The former file is ignored in gitignore.

Now that we are trying to use Code Magic to implement CD, we are facing the problem as generated file is not available in Code magic cloud. How to let Code Magic use this generated file. Also, how to update it when this file changes.

raphire
  • 198
  • 9

1 Answers1

1

You should add the code generation task to your codemagic.yaml:

workflows:
  default-workflow:
    [...]
    scripts:
      [...]
       - flutter packages pub get
       - flutter pub run build_runner build
      [...]
[...]
frank
  • 11
  • 2
  • 3
  • Your answer could be improved by adding additional information on what the code does and how it helps the OP. – Tyler2P Mar 31 '22 at 15:18
  • 1
    I think this is very basic and a flutter developer should be capable to understand a that simple example. At least in my opinion – frank May 18 '22 at 10:44