Closed vazquezjm closed 5 years ago
What is the purpose of adding a library.json file when this library already has a library.properties file, which is supported by PlatformIO as an alternative to library.json?: https://docs.platformio.org/en/latest/userguide/lib/cmd_register.html#description
Having two metadata files only doubles the maintenance burden and makes it likely that two two will end up out of sync with no benefit that I can see. Since the Arduino IDE does not support library.json, it seems the obvious choice is to just use a single library.properties file.
@per1234 Thanks for that... gonna have to do a PR on the docs to fix that... as it clearly states that the library manifest file is the only requirement to register a library... but only mentions the json file... not that others are supported.
The only one requirement is library’s manifest file - library.json.
Hi @bremme! Is there any chance that you could merge this PR? This file will let PlatformIO user add the library from Visual Studio Code among other things. Thanks!
@vazquezjm did you miss what I said in my previous reply about library.json being unnecessary due to this library already having a library.properties file? Or is there something I don't understand about PlatformIO that makes it still necessary to have a library.json file?
library.json is a manifest file of development library for PlatformIO. PlatformIO Library Crawler uses library.json manifest to extract source code from developer’s location and keeps a cleaned library in own Library Registry. https://docs.platformio.org/en/latest/librarymanager/config.html#library-json