summaryrefslogtreecommitdiff
path: root/tools/InterfaceGenerator
Commit message (Collapse)AuthorAgeFilesLines
* Fix SDL crash on validation of numeric schemas with type overflow (#3750)Andrii Kalinich (GitHub)2021-08-251-4/+19
| | | | | | | | | * Added handling of cases with type overflow * Update generator logic and schema validation * Add validation info Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* manage schema objects in each API class to allow for recursive objects in ↵Collin2021-05-211-23/+15
| | | | the API without leaking memory (#3703)
* [SDL-0296] Possibility to update video streaming capabilities during ↵Iryna Lytvynenko (GitHub)2021-02-121-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ignition cycle (#3468) * Temporary commit to change URL of rpc_spec repository * Change rpc_spec reference according to the new changes in the rpc_spec repo * Add the new OnAppCapabilityUpdated RPC with appropriate types to the HMI_API * Add the smart objects keys for the new parameters * Add OnAppCapabilityUpdatedNotification and BCOnAppCapabilityUpdatedNotification * Add Unit tests for the OnAppCapabilityUpdated RPCs * Fix code generation for recursive structures Currently InterfaceGenerator is not able to generate recursive structures i.e. one or several structure attributes have its own type e.g.: struct VideoStreamingCapability { ... VideoStreamingCapability additionalVideoStreamingCapabilities; } because structure type fully defined only when all of it attributes are defined. Otherwise param with type of structure will have AlwaysFalseSchema for validation so this param will never be validated successfully. With this commit InterfaceGenerator is able to handle such problem. * Update OnBCSystemCapabilityUpdatedNotificationFromHMITest Unit tests Add the checking of the SystemCapabilityType::VIDEO_STREAMING in the message and setting it into the HMICapabilities. * Add additionalVideoStreamingCapabilities to default hmi_capabilities * Add Processing OnSystemCapabilityUpdated with videoStreamingCapabilities * Update Unit tests for OnSystemCapabilityUpdated notifications * Add app_id to OnAppCapabilityUpdated notification to HMI * Updates during code review * Update logger * Update link to rpc_spec * Return back the driverDistractionCapability that was missed during conflicts resolving * Fix functionality that was broken during conflicts resolving * Updates during code review * Update link to rpc_spec * Revert "Fix streamer activity in case of suspend (#3488)" This reverts commit 42721d5c56dfc26e3d69f7d80d7806110e570cac. * Adjust old fix for all streaming transports * Change commit to rpc_spec * Update rpc_spec * Mark function as deprecated * Updates during code review * Remove trailing whitespaces * Update link to rpc_spec * Update rpc_spec Co-authored-by: Igor Gapchuk <igapchuck@luxoft.com> Co-authored-by: YarikMamykin <ymamykin@gmail.com> Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com> Co-authored-by: Dmitriy Boltovskiy <dboltovskyi@luxoft.com>
* Add Ubuntu 20.04 support (#3625)Jacob Keeler2021-02-052-12/+12
| | | | | | | | | | | | * Fix build warnings and errors for Ubuntu version 20.04 - Apply macro fix for GTEST_DISALLOW_ASSIGN_ and GTEST_DISALLOW_COPY_AND_ASSIGN_ from googletest project - Fix usage of deprecated functions in openssl 1.1.0 - Include deprecated `sysctl.h` only in QNX build - Fix warnings in InterfaceGenerator scripts * Add 20.04 to supported platforms * Remove broken tests after openssl1.1 update
* Add versioning information for functions in InterfaceGenerator script (#3474)Jacob Keeler2020-08-201-8/+115
|
* #3211 [SDL 0234] Proxy Library RPC Generation (#3213)Vladyslav Mustafin2020-02-0624-2482/+724
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #3211 [SDL 0234] Proxy Library RPC Generation * Split existing `InterfaceGenerator` into `InterfaceParser` and `InterfaceGenerator` * Moved InterfaceParser into `smartdevicelink/rpc_spec` * Rejoined `InterfaceParser` as `tools/rpc_spec` Git submodule from `smartdevicelink/rpc_spec` * Refactored `InterfaceGenerator` to use Parser from `tools/rpc_spec` Git submodule and be compatible with Python 3.5 * Replaced url SSH to HTTPS in submodule * refactoring according to comments in pull/202 * move common parsers to rpc_spec repo * change cmake argument * fix cmake argument list * fix cmake argument list * fix cmake argument list * small refactoring as requested in code review * adding *.xsd * adding *.xsd * xmlschema dependency added for python interface generator * align changes from parser rpc_spec * align changes from parser rpc_spec * align with rpc_spec * moved xmlschema python dependency installation to build script * installing all python requirements * Corrected requirements file * Additional dependencies for requirements * Correcting requirements * adding jsoncpp submodule * fixing unit tests * fixing unit tests * rename CodeFormatAndQuality * updated rpc_spec reference Co-authored-by: Aleksandr Mishchenko <amishchenko@luxoft.com> Co-authored-by: Kostiantyn Sologubov <ksologubov@luxoft.com>
* Update generated copyright for API filesfix/update_generated_copyrightsJacob Keeler2019-10-211-6/+6
|
* Update generated copyright in generated_msg_version.hJacob Keeler2019-10-211-4/+4
|
* Add history tag to SetDisplayLayout (#3067)JackLivio2019-10-101-1/+1
|
* [SDL 0173] - Read Generic Network Signal Data Implementation (#2977)Alexander Kutsan (GitHub)2019-08-3012-191/+1013
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Generate policy enums from MOBILE_API Policy manager HMI level enum reorder * Add RPC vehicle data and endpoint_properties to sdl_preloaded_pt Set default version of custom vehicle data mapping * Add VehicleDataItem to policy table SQL storage implementation for VehicleDataItems Fix validation of double values in policy table Change isDouble to isNumeric during validation double values "0" should be validated as correct double value Add validation vehicle data during PTU Send in PT snapshot only version of custom VDI - During snapshot generation remove vehicle data items section - Add validation for Policy table depended on PT type Fix wrong check for vehicle data snapshot Allow empty vehicle data in PTU Change max value of string for URL from 255 to INT_MAX * Make Policy Handler forward declared to avoid high coupling * Add vehicle_info_command_params for vehicle info plugin Vehicle info params added to hmi commands * Process CustomVehicleData in GetVehicleData request * CustomVehicleDataManager implementation * Process Custom vehicle data subscriptions Refactored code. Extracted CheckFrequency to separate method in class * Check update of content of functional groups Fixes https://github.com/smartdevicelink/sdl_core/issues/2962 Add additional check for functional group content before OnPermissionChangeNotification. * rename comparing functions to make more clear their return value sense * change variable names * extra check for null values in HasNewGroups() New unit test to cover changes within functional group * Add GetPolicyConfigurationData GetPolicyCOnfigurationData Implementation * Add CustomVehicleData functionality for POLICY_EXTERNAL flow Change max value url for external policy fixes for external flow * since unti validation for the database * empty vehicle data validation * Convert data_type to VehicleDataType enum value * Validation of VehicleDataItem name and key Introduces validation of vehicle_data_item name and key validation: * they should not contain spaces; * they should not be empty or consist only spaces; * they should not contain invalid chars like '!@#$%^&*'. * Add engineOilLife to HMI_API * Remove deprecated RPC GetUrls due to major version update * Add ability to extend Smart schema with parameters Extract SMember from CObjectSchemaItem Add methods to ISchemaItem (Using composite pattern) - GetMemberSchemaItem - AddMemberSchemaItem Add implementation of VehicleDataItemSchema class Add appropriate unit tests Add creation of vehicle_data items schemes on policy event
* fixup! Update Mobile & HMI API with new data types and parametersmked-luxoft2019-08-201-1/+1
|
* Fix build failures from rearranged includesjacobkeeler2019-04-301-0/+1
|
* Fix namespace case structure in projectfix/namespace_casejacobkeeler2018-08-299-157/+157
|
* Remove log in parserJacob Keeler2018-08-141-1/+0
|
* Address commentsJackLivio2018-08-141-1/+1
|
* Address CommentsJackLivio2018-08-131-5/+0
|
* Update parserJackLivio2018-08-131-4/+4
|
* Updated parser based on commentsJackLivio2018-08-101-10/+35
|
* Update Parsing of warningsJackLivio2018-08-051-3/+1
|
* Fixes for parsing enum history elementsJackLivio2018-08-041-10/+42
|
* Add enum history support to generatorJackLivio2018-08-043-7/+76
|
* Add support for struct param historyJackLivio2018-08-033-32/+159
|
* Add support for mandatory and removed versioningJackLivio2018-08-014-29/+219
|
* Replace utils::SharedPtr with std::shared_ptr, remove non-standard usageConlain Kelly2018-07-181-9/+8
|
* Update MOBILE_API.xml to match `rpc_spec` repofix/update_mobile_api_4.4.0jacobkeeler2017-09-221-1/+5
| | | Includes fixes to build issues resulting from this update.
* Added mandatory flag to all parameters in Mobile and HMI APIsfeature/mandatory_flagjacobkeeler2017-06-151-2/+6
|
* Add patch version to Mobile and HMI APIsfeature/API_patch_versionJacob Keeler2017-04-271-7/+9
|
* SDL must retrieve the current version from MOBILE_APIdtrunov2016-04-082-1/+93
| | | | | | | Changed cod generator in order to generate file with actual mobile api version Relates to APPLINK-18839
* Add double datatype in APIAlexander2016-03-291-1/+2
| | | | Add supporing of generation API with Double Data types
* Correct all dependent from .hpp include directivesKozoriz2016-01-111-2/+2
| | | | | Corrected all include directives in files where was included .hpp files
* SDL 3.8!Justin Dickow2014-10-2034-0/+7850
Signed-off-by: Justin Dickow <jjdickow@gmail.com>