We should have a option to stop all incoming updates. I just broke a project, and trying to revert back. This is related to the ESP32 v3.0.0 that cause breaking changes in code using LVGL and LovyanGFX libraries. In one project I need the project the feature on the earlier library, but do not care in others.
We should be able to force usage of a particular library version. As an example, either in the include statement #includelvgl.h:9.2.2
or by a define
define lvgl.h.Version = "9.2.2"
or a separate file that contains the version number. If no version is included, then use the installed version.
p.s. note it would be ok to generate this file as a function on a successful complied application. That is list all of the libraries used and their version as a record. This would be most useful when working on a project in different computers.
This capability is available when using Arduino CLI, which is the official command line tool for working with Arduino sketches. When using Arduino CLI, you can define all the dependencies of a sketch as a build profile:
When you compile a sketch using a build profile, an isolated dependencies environment containing only the dependencies defined in the build profile is used. This means that any changes you make in the globally installed boards platforms and libraries can't have any impact on your project.
You can do this by adding the --dump-profile flag to an arduino-cli compile command: