Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify library dependencies in library.properties #17

Closed
wants to merge 1 commit into from
Closed

Specify library dependencies in library.properties #17

wants to merge 1 commit into from

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Dec 23, 2019

Specifying the library dependencies in the depends field of library.properties causes the Arduino Library Manager (Arduino IDE 1.8.10 and newer) to offer to install any missing dependencies during installation of this library.

arduino-cli lib install will automatically install the dependencies (arduino-cli 0.7.0 and newer).

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#libraryproperties-file-format

Specifying the library dependencies in the depends field of library.properties causes the Arduino Library Manager (Arduino IDE 1.8.10 and newer) to offer to install any missing dependencies during installation of this library. "arduino-cli lib install" will automatically install the dependencies (arduino-cli 0.7.0 and newer).
@tablatronix
Copy link

tablatronix commented May 2, 2020

YES! Specifically what version ? I do not think this is working with 6.x ?

@per1234
Copy link
Contributor Author

per1234 commented May 2, 2020

@tablatronix this feature was added in Arduino IDE 1.8.10 and Arduino CLI 0.7.0.

@tablatronix
Copy link

Yeah but I cannot find how to add the versioning to dependancies.

@per1234
Copy link
Contributor Author

per1234 commented May 2, 2020

Ah, now I understand what you mean by "version". Thanks for pointing that out! Will need to wait until either this library is updated to work with the modern ArduinoJson or Arduino adds support for specifying library dependency versions.

@per1234 per1234 closed this May 2, 2020
@per1234 per1234 deleted the depends branch May 2, 2020 15:38
@tablatronix
Copy link

It seems it might be able to handle versioning but I have not found the docs. I dont use arduino Ide

adafruit/DHT-sensor-library#118 (comment)

@per1234
Copy link
Contributor Author

per1234 commented May 2, 2020

Unfortunately not yet:

BTW these constraints are implemented on the indexer (so they are reported on the library_index.json) but not yet in the IDE (it will always install the latest version).

I'm sure we'll have that feature before too long.

The docs are here:
https://arduino.github.io/arduino-cli/library-specification/#libraryproperties-file-format

@tablatronix
Copy link

Yeah I saw they can only support one library folder atm so that is the problem I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants