JChristensen / DS3232RTC

Arduino Library for Maxim Integrated DS3232 and DS3231 Real-Time Clocks
GNU General Public License v3.0
394 stars 137 forks source link

Specify library dependencies in library.properties #73

Closed per1234 closed 4 years ago

per1234 commented 4 years ago

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

JChristensen commented 4 years ago

Right. I read about that but just hadn't done anything with it yet, thanks. The version will also need to be bumped for the library manager to pick up the change, yes?

per1234 commented 4 years ago

You're welcome. That's correct that you will need to bump the version value in library.properties and create a new Git tag or GitHub release before the automatic dependency installation will be provided by Library Manager.