sony / flutter-embedded-linux

Embedded Linux embedding for Flutter
BSD 3-Clause "New" or "Revised" License
1.16k stars 123 forks source link

Add JSON config/ini file to launch instead of command line only #282

Open Taha-Firoz opened 1 year ago

Taha-Firoz commented 1 year ago

I've worked in quiet a few designs in possible config files to launch the embedder from instead of the just command line parameters. It could help make it a lot clearer to start your application and configurations can be more detailed if we do.

HidenoriMatsubayashi commented 1 year ago

I think YAML is better than JSON for the config file.

Taha-Firoz commented 1 year ago

True YAML is easier to write but I was pitching JSON because you already have RapidJson in your project which we could use to parse the file with.

HidenoriMatsubayashi commented 1 year ago

RapidJson is too much to parse config files. And also we need to include it to the template of flutter-elinux if we use it.

Taha-Firoz commented 1 year ago

So we just do it through flutter-elinux since it has json parsing included in it, or can we pull in a yaml parsing dep?

HidenoriMatsubayashi commented 1 year ago

Technically, we have two options. First one is to parse the config file on flutter-elinux side and reflect it on the command line options. Second one is to implement a simple parser with embedder or template source code (Not flutter-elinux side).

Taha-Firoz commented 1 year ago

I actually want to add something more with the config file, basically I want to add more control over DKMS. I'm having a similar conversation over in the flutter-pi embedder right now. It would be slightly easier for me to work on this because I am more familiar with the flutter-embedded-linux because I've basically been working with this project over 5-6 months at this point.

HidenoriMatsubayashi commented 1 year ago

basically I want to add more control over DKMS

Please create another issue.