Cristian Maglie
67e38bc80a
LibraryInstaller now autodetects if a library is being replaced
...
It's no more required to pass this information from outside,
just library that is being installed is now sufficient.
2019-07-18 10:37:36 +02:00
Cristian Maglie
4266b3a700
Lib installer: factored out method to perform lib installation
...
The new method will be used in next commits to handle installations
of multiple libraries.
This commit fix also minor bug in progress bar.
2019-07-18 10:37:36 +02:00
Cristian Maglie
d6f561bd53
Added library-dependency resolver
2019-07-18 10:37:36 +02:00
Cristian Maglie
1ebdb02954
Added helper methods to compare versions
2019-07-18 10:37:36 +02:00
Cristian Maglie
d72cb2350d
Renamed ContributedLibraryReference to ContributedLibraryDependency
2019-07-18 10:37:36 +02:00
Cristian Maglie
894b1abd8a
Improved lib equality check
2019-07-18 10:37:36 +02:00
Martino Facchin
ef8d669f6a
Don't report an exception if waitForUploadPort fails after successfull upload
...
Fixes #8851
2019-07-18 10:11:43 +02:00
Martino Facchin
fb9ce0ade3
Update jssc to arduino4
...
Repackage jssc-2.8.0-arduino1 and add aarch64 lib instead than plain jssc
Fixes #9062
2019-07-16 11:03:02 +02:00
Martino Facchin
d518d7683c
Fix NPEs if no hardware core is installed
...
Fixes #8229
2019-05-06 15:10:42 +02:00
Cristian Maglie
72330aaddd
Fix .classpath: commons-lang3-3.3.2 -> commons-lang3-3.8.1.jar
2019-04-02 16:36:08 +02:00
Mattia Bertorello
eb055cc4c0
Add user agent in the connection to api-builder.arduino.cc/builder/v1/boards/
2019-04-02 15:32:37 +02:00
Martino Facchin
05de5c9593
Follow symlinks when saving sketch
...
Fixes #8535
2019-04-02 15:05:08 +02:00
Pieter12345
442007a926
Remove unused FileUtils methods
...
Remove unused FileUtils methods without obvious use case or for which a replacement exists in the Files or File class.
2019-03-26 18:46:09 +01:00
Pieter12345
4c2fca6457
Replace some FileUtils calls with direct methods
...
Not wrapping these calls in FileUtils methods makes the code cleaner and easier to understand (FileUtils is very poorly documented, whereas direct calls contain proper documentation).
2019-03-26 18:46:09 +01:00
Pieter12345
6d9dd975be
Remove StringUtils class
...
The functionality in this class has been replaced with the Apache commons.lang3 dependency.
2019-03-26 18:46:09 +01:00
Pieter12345
09e466a4a2
Replace StringUtils.join() with library call
...
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Pieter12345
a08908a90f
Replace StringUtils.stringContainsOneOf() with library call
...
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Pieter12345
e6e10cdeb9
Update commons-lang3 from 3.3.2 to 3.8.1
...
Updated due to new API methods than can be useful for this project.
The license remained the same.
2019-03-26 18:46:09 +01:00
Pieter12345
91c262dc0e
Replace SSHUploader file filter
...
- The file names in FILES_NOT_TO_COPY are full names and not partial names, so the check should not check if a file name contains such a name, but rather whether a file name fully matches such a name.
- Replaced the FILES_NOT_TO_COPY by a HashSet since this provides O(1) lookups, rather than O(n) lookups where n is the size of the set.
2019-03-26 18:46:09 +01:00
Martino Facchin
f119590d84
Starting 1.8.10
2019-03-25 11:25:48 +01:00
Cristian Maglie
82a6a404c2
Update translations
2019-03-15 14:23:43 +01:00
Cristian Maglie
54ca2235cc
pluggable discovery: Debugging messages under 'discovery.debug' preference
2019-03-15 14:15:50 +01:00
Martino Facchin
dd58a7254c
Replace usages of jssc-2.8.0-arduino2.jar with arduino3
2019-03-11 17:05:06 +01:00
Martino Facchin
8ad6d0efcf
Update aarch64 shared library in jssc
...
Fixes https://github.com/arduino/Arduino/issues/7302#issuecomment-422539496
2019-03-11 17:01:18 +01:00
Martino Facchin
d4bbf71b30
Match wildcard property "." with board fqbn/name
2019-03-07 14:11:06 +01:00
Martino Facchin
be1a8403f0
Add TargetBoard.getFQBN helper
2019-03-07 14:11:06 +01:00
Martino Facchin
feb863dfc9
PluggableDiscovery: allow patterns to contain runtime variables
2019-03-07 12:41:27 +01:00
Cristian Maglie
e1caaf1c45
Perform port selection after initializing packages
...
Fix #8400
2019-01-23 15:46:41 +01:00
Cristian Maglie
7bc086a301
PluggableDiscovery: correct synchronization on 'portList' access
2019-01-23 13:51:41 +01:00
Cristian Maglie
4ae740ad66
PluggableDiscovery: BoardPort.label sanity check in the correct place
2019-01-23 13:51:41 +01:00
Cristian Maglie
4c188c9374
PluggableDiscovery: Factored out method to umarshal BoardPort from JSON
2019-01-23 13:51:41 +01:00
Cristian Maglie
8e9f0cfd76
PluggableDiscovery: added a 'port' field in json messages
...
The new format of 'add' and 'remove' actions is changed from:
{
"eventType": "add",
"address": "/dev/ttyACM0",
"label": "/dev/ttyACM0",
"prefs": {
"vendorId": "0x2341"
"productId": "0x0043",
"serialNumber": "85235353137351018160",
},
"identificationPrefs": {
"vid": "0x2341"
"pid": "0x0043",
},
"protocol": "serial",
"protocolLabel": "Serial Port"
}
to:
{
"eventType": "add",
"port": {
"address": "/dev/ttyACM0",
"label": "/dev/ttyACM0",
"prefs": {
"vendorId": "0x2341"
"productId": "0x0043",
"serialNumber": "85235353137351018160",
},
"identificationPrefs": {
"vid": "0x2341"
"pid": "0x0043",
},
"protocol": "serial",
"protocolLabel": "Serial Port"
}
}
2019-01-23 13:51:41 +01:00
Cristian Maglie
7186213034
Slightly changed pluggable discovery json parsing
...
The json input is now parsed into a JsonTree that can probed for the
'eventType' node value so we can understand the type of message to
decode to.
2019-01-23 13:51:41 +01:00
Cristian Maglie
349af4b5cf
Added BoardPort.protocolLabel and simplified port menu rendering
2019-01-23 13:51:41 +01:00
Cristian Maglie
c03a8bc175
Minor fix in indentation and style
2019-01-23 13:51:41 +01:00
Cristian Maglie
cfd3cf2b27
Use correctly the setBoardName() method in NetworkDiscovery
2019-01-23 13:51:41 +01:00
Cristian Maglie
9ba172b0db
Show BoardName.boardName field in 'Ports' menu
...
...instead of putting it into the 'label' field during discovery.
2019-01-23 13:51:41 +01:00
Cristian Maglie
ec4787a92b
Fixed board identification in BoardPort
2019-01-23 13:51:41 +01:00
Cristian Maglie
5bc96652e6
Slightly optimized method by removing redundant boolean flag
2019-01-23 13:51:41 +01:00
Cristian Maglie
80fb9a0b38
Optimized forceRefresh() method by removing redundant boolean paramater
2019-01-23 13:51:41 +01:00
Cristian Maglie
3ccb2d97e1
Merged SerialDiscovery and SerialBoardLister
...
They perform basically the same task, SerialDiscovery just used to proxy
the calls to SerialBoardLister
2019-01-23 13:51:41 +01:00
Cristian Maglie
8d6fa72667
Removing fixed fields in BoardPort
2019-01-23 13:51:41 +01:00
PaulStoffregen
d7143d6859
Add BoardPort identificationPrefs and searchMatchingBoard
2019-01-23 13:51:41 +01:00
PaulStoffregen
05092bf17f
Move BoardPort fixed fields into prefs
2019-01-23 13:51:41 +01:00
PaulStoffregen
e029acc699
Add PluggableDiscoveryMessage for BoardPort change metadata
2019-01-23 13:51:41 +01:00
PaulStoffregen
b6066573b9
PluggableDiscovery check for START_SYNC not supported
2019-01-23 13:51:41 +01:00
PaulStoffregen
5ba56abc80
Initial PluggableDiscovery using BoardPort for JSON
2019-01-23 13:51:41 +01:00
PaulStoffregen
f5bf6e5e7a
Add BoardPort copy constructor
2019-01-23 13:51:41 +01:00
Cristian Maglie
f81798badf
Pluggable discovery: search in platform.txt (WIP)
2019-01-23 13:51:41 +01:00
Martino Facchin
e9ecaa70f7
Check for containing folder existence before listing files
...
Fix #8389
2019-01-18 10:12:16 +01:00