Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update zap data type schema (#17645)
* Clean up for the new data type schema rework - Getting rid of StringHelper.js file from the chip repo into the zap repo and modifying the templates.json files accordingly - Updating the zcl.json files to include the definition of ZCL data types - Updating the xml files such that we do not have like named data types of the same type with a separate definition. - Updating the xml files with the removal of cluster code references which are no longer defined - JIRA: ZAPP-757 * rebasing chip repos master into my masster fork * Changes for cleaner regen - Making changes to ClusterHelper.js such that we return the correct enum and bitmap ItemTypes for enums and bitmaps based on size - In ClusterHelper.js , made changes to the handleString call in enhancedItem because I ran into some unresolved promise issue. Rest of the changes are a result of formatting using restyle-diff script - Some cleanup in ClusterTestGeneration.js - Moved StringHelper.js from outside the chip repo into the zap repo. Will need to do this for all the files eventually. This lead to a changes in a couple of files in the requires - Some changes to structure-member.zapt for displaying the type - Changes to cluster-enums.zapt, enums.zapt since the enuma dn bitmap tables no longer have type. Just the name. - Made changes to MatterIDL.zapt based on size - Made changes o channel-cluster.xml and ha.xml to avoid renaming of enums with different definitions. - The changes to the .h, cpp, .mm files is a result of the detection of enums, bitmaps correctly for attributes types and command args. - Updating the pointer to the zap repo - Changes made from some isString helper calls to if_is_string helper calls in zapt files because they were causing some application regens to pass successfully without generating - JIRA: ZAPP-757 * Updating the zap repo pointer JIRA: ZAPP-757 * Regening after rebase JIRA: ZAPP-757 * Reverting the changes on StringHelper and putting it back in the matter repo. JIRA: ZAPP-757 * Reverting the template changes for 2 apps and doing a regen Updating the pointer to zap JIRA: ZAPP-757 * Reverting the template changes for an app and doing a regen JIRA: ZAPP-757 * Reverting the changes to the zapt template files JIRA: ZAPP-757 * Reverting the changes to ClustersHelper.js and structure_member.zapt template JIRA: ZAPP-757 * Update helper.js Reverting the restyle diff changes * Update helper.js Removing unused require * Running a restyle diff on ClusterHelper.js * xml cleanup, Regen and zap repo update - Updating the cluster codes in types.xml. These were removed for some reason due the those cluster codes not existing for some meta data files. However I am not seeing that now so adding them back. - Doing a regen with the above change - Updating the zap repo - JIRA: ZAPP-757 * Cleaning up ClustersHelper.js JIRa: ZAPP-757 * running a restyle-diff on the js file JIRA: ZAPP-757 * cleanup JIRA: ZAPP-757 * cleanup JIRA: ZAPP-757 * Reverting the change in zll.xml on a cluster extension code which doesn't exist. This will be done on a spearate PR JIRa: ZAPP-757 * Regening after rebasing JIRA: ZAPP-757 * Renaming StatusEnums with cluster name prefix JIRA: ZAPP-757 * Regening after rebase JIRA: ZAPP-757 * minor clean up and defining Status in the types.xml because it is not determining the item referring to status type for ReadAttributeStatusRecord struct JIRA: ZAPP-757 * Rebasing upstream/master and regeing JIRA: ZAPP-757 * Returning the right c type when the data type is an enum or bitmap in src/app/zap-templates/templates/app/helper.js#zapTypeToClusterObjectType Regening all the apps with the above change JIRA: ZAPP-757 * Regen after rebase * Cleaning up for enum and bitmap size of 3 and 6 because they do not have equivalent c data types JIRA: ZAPP-757 * minor cleanup * Cleaning up the decodable_value.zapt templates to remove .Raw() for bitmaps JIRA: ZAPP-757 * Reverting the previous change JIRA: ZAPP-757 * Rebasing and regening JIRa: ZAPP-757 * Updating the zap repo and cleaning up a merge conflict I missed JIRA: ZAPP-757 * Cleaning up the Accessors by making sure the right ZCL attribute types are referred too. The corresponding change for this was made in the determineType helper in zcl-util.js(zap repo) JIRA: ZAPP-757 * Reverting the changes to helper.js such that baseline/atomic enums and bitmaps return uint and non-atomic/not-baseline enums and bitmaps return like they used to before Regening with the changes in helper.js JIRA: ZAPP-757 * Reverting the change in cluster-objects-struct.zapt which was not needed Cleaning up the helper.js to return the bitmaps correctly for not-baseline/non-atomic bitmaps Regening JIRA: ZAPP-757 * Making changes to helper.js such that baseline/atomic enums and bitmaps return uint and non-atomic/not-baseline enums and bitmaps return like they used to before Regening with the changes in helper.js JIRA: ZAPP-757 * Cleaning up atomic enums and bitmaps for generation JIRA: ZAPP-757 * - Cleaning up the atomic enums and bitmaps in the zapt templates > - Also taking an exception for vendor_id which is an enum and not a number in the case of cpp implementation > - Regening the sample apps > - JIRA: ZAPP-757 * Cleanup the atomic enum generation for python JIRa: ZAPP-757 * Cleaning up atomic enum generation JIRA: ZAPP-757 * Cleaning up atomic enum generation JIRA: ZAPP-757 * updating pigweed to the right commit. Changed by mistake during rebase JIRa: ZAPP-757 * Regening after rebase JIRa: ZAPP-757 * Reverting a change which may have happened by some formatting I do not know JIRa: ZAPP-757 * Cleaning up templates with newer helpers JIRa: ZAPP-757 * Minor cleanup JIRA: ZAPP-757 * Cleaning up the templates JIRA: ZAPP-757 * Moving the matter helpers from zap repo into helper.js for better visibility Cleaning up regex updating the zap repo JIRA: ZAPP-757 * Cleaning up naming and description JIRa: ZAPP-757 * Regening after rebase JIRA: ZAPP-757 * Regening after rebase JIRa: ZAPP-757 * Point efr32_sdk to where the main chip repo points too * Cleaning up the ChipCallbackBridge generated files so that we do get unnecessary diff JIRA: ZAPP-757 * Cleaning up the ChipTestCluster and ChipCallback generated files so that we do not get unnecessary diff JIRA: ZAPP-757 * Cleaning up the Command generated file so that we do not get unnecessary diff JIRA: ZAPP-757 * Cleaning up the Command generated file so that we do not get unnecessary diff JIRA: ZAPP-757 * Minor cleanup JIRa: ZAPP-757 * Regening after rebase JIRA: ZAPP-757 * Updating the zap repo after rebasing zap JIRA: ZAPP-757 * Cleanup by removing helpers which are not needed and adding comments as well as semicolons JIRa: ZAPP-757 * Cleaning up based on the new data type schema JIRa: ZAPP-757
- Loading branch information