1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-12 06:54:24 +01:00

7308 Commits

Author SHA1 Message Date
Cristian Maglie
8cf4d20493 Updated cli java bindings 2020-07-24 12:37:53 +02:00
Cristian Maglie
a27aad37fd Using GRPC enumerations for LibraryLayout 2020-07-24 12:37:53 +02:00
Martino Facchin
8757f7c6ed INITIAL: integrate compile with arduino-cli 2020-07-24 12:37:53 +02:00
Martino Facchin
a0d73d3bf6 LibManager: avoid throwing an exception to allow correct error handling 2020-07-24 12:37:53 +02:00
Cristian Maglie
11847e6677 Fixed 'Installed' drop-down menu condition in library manager 2020-07-24 12:37:53 +02:00
Cristian Maglie
108a0c0994 Added missing fields in ContributedLibrary 2020-07-24 12:37:53 +02:00
Cristian Maglie
33d522fccf Added paths to grpc lib in build.xml 2020-07-24 12:37:53 +02:00
Cristian Maglie
60dd0945d6 Using enumerations for LibraryLocation 2020-07-24 12:37:53 +02:00
Cristian Maglie
decf40813c Update GRPC/arduino-cli to 0.8.0 2020-07-24 12:37:53 +02:00
Cristian Maglie
cdf8213558 Updated arduino-cli to 0.8.0 2020-07-24 12:37:53 +02:00
Cristian Maglie
b30379dfbc Updated GRPC/arduino-cli to version 0.7.2 2020-07-24 12:37:53 +02:00
Cristian Maglie
197992c8f5 Updated arduino-cli to 0.7.2 2020-07-24 12:37:53 +02:00
Cristian Maglie
2fd0d35a6e Small update to ProgressWrapper 2020-07-24 12:37:53 +02:00
Cristian Maglie
ce05a6831b Removed no more needed UserLibrary constructor/parser 2020-07-24 12:37:53 +02:00
Cristian Maglie
5295e106db Use Library.RealName for installed libraries 2020-07-24 12:37:53 +02:00
Cristian Maglie
3ba507ab43 Lib manager GUI: removed some static access to ArduinoCoreService 2020-07-24 12:37:53 +02:00
Cristian Maglie
bdd621786a Removed no more needed LibraryInstaller (it's now done via GRPC) 2020-07-24 12:37:53 +02:00
Cristian Maglie
401fe65418 Removed, no more needed, LibraryInstaller::updateIndex method 2020-07-24 12:37:53 +02:00
Cristian Maglie
0056cbc545 Removed the now useless UserLibraryFolder 2020-07-24 12:37:53 +02:00
Cristian Maglie
3c46af8d2c Removed the, now useless, library folder handling 2020-07-24 12:37:53 +02:00
Cristian Maglie
56bd779288 Installed libraries are now detected via GPRC calls 2020-07-24 12:37:53 +02:00
Cristian Maglie
7da6bd91aa Using Collection instead of List on some Library types
This helps in transitioning to GRPC on next commits.
2020-07-24 12:37:53 +02:00
Cristian Maglie
e5e1892037 Added GRPC libraryList command 2020-07-24 12:37:53 +02:00
Cristian Maglie
f6ca1f7b16 Library manager through arduino-cli (WIP, part 1)
- library index is now fetched arduino-cli
- ContributedLibraries and derivatives classes have been adapted
  to arduino-cli structure
- install/update/remove are temporary disabled
- library index updated is now done trough arduino-cli
- added progress wrapper

Next steps:

- detect installed libraries using arduino-cli
- implement install/update/remove using arduino-cli
2020-07-24 12:37:53 +02:00
Cristian Maglie
cc26e75e96 GRPC: Added lib index update command with progress wrapper 2020-07-24 12:37:53 +02:00
Cristian Maglie
84b9518776 GRPC: removed limit to max message size 2020-07-24 12:37:53 +02:00
Cristian Maglie
310a5df5e1 Rename ContributeLibrary and ContributeLibraryReleases
the classes have been renamed as:

  ContributedLibrary -> ContributedLibraryRelease
  ContributedLibraryReleases -> ContributedLibrary

The reason is that a ContributedLibrary will have a name and a list of
releases, each one containing the relative metadata. The changes to
reflect that will be made in the next commits.
2020-07-24 12:37:53 +02:00
Cristian Maglie
9500b34719 Added more GRPC commands 2020-07-24 12:37:52 +02:00
Cristian Maglie
a9681bd833 Added arduino-cli daemon startup and some basic control code 2020-07-24 12:37:52 +02:00
Cristian Maglie
6c7c24f25b GRPC binding to arduino-cli (EXPERIMENTAL) 2020-07-24 12:37:52 +02:00
Cristian Maglie
a381235aa0 Added arduino-cli 0.6.0 to the build 2020-07-24 12:37:52 +02:00
Cristian Maglie
8625b14de3 fixed some trivial warnings 2020-07-24 12:37:52 +02:00
Cristian Maglie
ab9ba6ad4b Use Optional<> for getting selected Board/Platform
Optionals should make explicit the possibility to get empty results from
BaseNoGui.getTargetBoard/Platform methods.
2020-07-24 12:37:52 +02:00
Cristian Maglie
bbb81671d6 Removed TargetBoard parameter from newUploader factory
The parameter is not used.
2020-07-24 12:37:52 +02:00
Cristian Maglie
80dc652ceb
Merge pull request #10541 from cmaglie/board-lib-manager-fixes
Fixed Boards and Libraries Manager "filters" persistence
2020-07-23 15:59:55 +02:00
Cristian Maglie
10bee204e6 Lib manager: added getContribModel() as in Boards manager 2020-07-23 12:10:45 +02:00
Cristian Maglie
851b5b14b1 Lib manager GUI is updated after installing/upgrading library 2020-07-23 12:10:45 +02:00
Cristian Maglie
a81772afc6 Boards Manager: update UI after an install/remove 2020-07-23 12:10:45 +02:00
Cristian Maglie
1361bce6bc Board manager: Update filters UI only if categories changes 2020-07-23 12:10:45 +02:00
Cristian Maglie
4c45ea8ecc Fixed NPE in buildProgrammersMenu
Some platforms may not define directly 'build.core' because it may be defined
through a custom menu.

For example, the arduboy platform has in the boards.txt:

   [...]
   menu.core=Core
   [...]
   # core #
   arduboy-homemade.menu.core.arduboy-core=Arduboy optimized core
   arduboy-homemade.menu.core.arduboy-core.build.core=arduboy
   arduboy-homemade.menu.core.arduino-core=Standard Arduino core
   arduboy-homemade.menu.core.arduino-core.build.core=arduino:arduino
   [...]

the build.core is determined only after applying the submenu options.
2020-07-23 11:00:44 +02:00
Cristian Maglie
bf24880d7c Merge branch 'lib_manager_filters_fix' of https://github.com/cmaglie/Arduino (#10440) 2020-07-15 17:23:02 +02:00
Martino Facchin
a0acb3ebcb Update WiFi101-Updater to 0.10.11 2020-07-13 17:19:12 +02:00
Cristian Maglie
b66ed5e5d7 LibraryManager: correctly apply "type" and "category" filters together
Previously changing "Category" would filter libraries by the selected
category but without applying the "Type" previously selected.
For instance selecting Type="Installed" and Category="Communication"
will display *all* the libraries belonging to "communication" instead of
the installed only.

This commit fix this behavior.
2020-06-29 17:27:11 +02:00
Cristian Maglie
3263967893 Removed unused include and clueless whitespaces 2020-06-29 17:13:43 +02:00
Cristian Maglie
42865229c2 Library manager: update filters combo box only if there are changes
The filters content is unlikely to change, so just prevent it from live
updating it because it has some side effects:

- it's slow
- it changes the selection back to the default and it's very tricky to
  make it re-select the previous selection.

Fixes #10439
2020-06-29 16:58:25 +02:00
Cristian Maglie
ea84e7383a Starting Arduino IDE 1.8.14 2020-06-24 12:48:12 +02:00
Cristian Maglie
5adf408270 update changelog 1.8.13 2020-06-16 11:37:49 +02:00
Martino Facchin
7e0df39c99
Merge pull request #10371 from cmaglie/fix_http_accept_header
Fixed invalid http accept header
2020-06-16 11:31:09 +02:00
Cristian Maglie
43da7400e4 Fixed invalid http accept header
This patch overrides the default JDK accept header that happens to be
invalid, as per RFC 7231.

Real issue: https://bugs.openjdk.java.net/browse/JDK-8163921

Fix https://github.com/arduino/Arduino/issues/10264
2020-06-15 18:14:07 +02:00
Cristian Maglie
5693423bfe Updated translations 2020-06-15 17:29:51 +02:00