Skip to content

Commit

Permalink
Release ver_1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Unify Automated committed Feb 14, 2024
1 parent 4d72f4e commit 3b43b68
Show file tree
Hide file tree
Showing 10,729 changed files with 756,609 additions and 591,584 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 4 additions & 4 deletions .gitattributes
@@ -1,6 +1,6 @@
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
17 changes: 0 additions & 17 deletions .github/workflows/build.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -11,6 +11,10 @@ set(CMAKE_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/include/"
# ##############################################################################
# Include Configurations
# ##############################################################################
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "default build type: Debug" FORCE)
endif()

message(STATUS "Building Unify with BUILD_TYPE=${CMAKE_BUILD_TYPE}")

include(cmake/include/version.cmake)
Expand Down
56 changes: 56 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
@@ -0,0 +1,56 @@
@@@UnifyCore @naagarwa @mamehta @sushanka
@@@UnifyZWave @phcoval @jeboullo
@@@UnifyZigbee @jolitwin @mpbreton
@@@UnifyBT @tabenyhe @tahornos
@@@Documentation @naagarwa @mamehta @phcoval @jolitwin @mpbreton @nibertol @tabenyhe @jeboullo
@@@UnifyFwkServices @naagarwa @mamehta @sushanka
@@@UnifyIoTServices @naagarwa @sushanka @sepastuk
@@@CICD @naagarwa @dethammi @sushanka
@@@UnifyMultiProtcol @nibertol @supratap @frkillee @ismaghni @alautott

# Pipeline rule and scripts
Jenkinsfile @@CICD
scripts/ @@CICD

# Documentations
**/*.md @@Documentation
doc/ @@Documentation

components/ @@UnifyCore
docker/ @@UnifyCore
cmake/ @@UnifyCore
portable_runtime/ @@UnifyCore
applications/aox/ @@UnifyBT
applications/bt_host_empty/ @@UnifyBT
applications/cpc-hci-bridge/ @@UnifyBT
applications/cpcd/ @@UnifyMultiProtcol
applications/dev_ui/ @@UnifyIoTServices
applications/examples/ @@UnifyCore
applications/gms/ @@UnifyFwkServices
applications/home_assistant/ @@UnifyIoTServices
applications/image_provider/ @@UnifyFwkServices
applications/nal/ @@UnifyFwkServices
applications/openthread_border_router/ @@UnifyMultiProtcol
applications/upti_cap/ @@UnifyFwkServices
applications/upti_writer/ @@UnifyFwkServices
applications/upvl/ @@UnifyFwkServices
applications/zigbeed/ @@UnifyZigbee
applications/zigpc/ @@UnifyZigbee
applications/zpc/ @@UnifyZWave

CODEOWNERS @@UnifyCore



# If a group is involved, at least one reviewer of the group must approve
(Check(@@UnifyCore >= 1))
(Check(@@UnifyZigbee >= 1))
(Check(@@UnifyZWave >= 1))
(Check(@@UnifyBT >= 1))
(Check(@@UnifyFwkServices >= 1))
(Check(@@UnifyIoTServices >= 1))
(Check(@@UnifyMultiProtcol >= 1))
(Check(@@CICD >= 1))
(Check(@@Documentation >= 1))

OverallCheck(2)
96 changes: 96 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,96 @@
# Contributing to UnifySDK

## Reporting issues

Currently there is no way to report issue in the github project,
however supported @SiliconLabs customers can report cases individually.

## Git Branch naming conventions

There is no strong requirement for now, but user are encouraged to
track their changes by prefixing branch names with meaningful prefixes
such as "feature" or "bugfix".

If the change refers to existing context id, feel free to add it.

| Sl No | Type of Branch | Use Case | Example |
| ----- | -------------- | -------- |-------- |
| 1 | Feature Branches | For developing new features or functionalities. These branches are often used for longer-lived work and may be merged into the main branch when completed. |feature/user-authentication
| 2 | Bugfix Branches | For addressing specific issues or bugs. Bugfix branches are created to isolate and fix a problem, and they're often merged back into the main branch (or a release branch) once the fix is verified. | bugfix/GH-1234-fix-for-UMB-crash
| 3 | Experimental Branches | For highly experimental or uncertain work that may or may not make it into the main codebase. These branches allow team members to collaborate on new ideas without affecting the main development flow | experimental/GH-1234-migration-of-core
| 4 | Documentation Branches | For creating or updating documentation, such as README files, user guides, or API documentation. Separate documentation branches make it easier to manage documentation changes independently from code changes | docs/GH-1234-updates-readme
| 5 | Refactoring Branches | For making significant changes to the codebase that don't add new features or fix bugs but improve the code's structure, readability, or maintainability. Separate refactoring branches help keep refactoring efforts organized | refactor/GH-1234-refactors-authentication-module
| 6 | Test Branches | For adding or modifying test cases. These branches allow for the isolation of test-related changes and help maintain a robust testing suit | test/adds -thermostat-test-cases

## Commit message format

Commit message should not exceed 50 characters.

Within your commits, you can include a commit description,
allowing to add even more detail / context as to what you did.

Add an empty line underneath the commit message,
and begin writing a description from line 3.

Example:

```
GH-XYZ: Fix issue with login button not showing.
- Update login form validation
- Update login styling for showing the button
```

| Sl No | Commit Message Examples |
| ----- | ----------------------- |
| 1 | Add support for thermostat cluster |
| 2 | Remove python2 deprecated dependencies |
| 3 | Update rust dependencies to latest version |
| 4 | Fix portable runtime crash |
| 5 | Refactor core components into rust |
| 6 | Add unit tests for thermostat cluster |

## Pull request guidelines

### As a Developer

What to consider while raising a Pull Request

* Pull request naming

```
Context: <message clearing explaining what commit does>
```

* Write a useful description in the “details” section of the pull request. i.e, mention the root cause of problem and approach of the solution.
* Max size of Pull request should be < 300 lines (excluding autogenerated code)
* If Changes are greater than 300 lines, split the changes into logical groups using multiple PRs.
* Pull Request should be raised only after successful execution of the existing unit Test cases.
* One Pull Request should address only one issues (don’t combine multiple changes, this applies for indentation changes as well)
* Don’t change the code while reviewing, use "Draft" state for asking developers not to review the code or to block merging of code.
* Design the code in a modular fashion that allows functional tesing.

### As a Reviewer

What to consider while reviewing a Pull Request

* Does the code has successful build?
* Does the code follow unify coding guidelines?
* Does the code meet its objective / acceptance criteria?
* Does the code have unit test and documentation included?
* Does the code need any refactoring, considering security, performance or simply ease of reading?
* Use "Suggestion" feature which allows you to add a code suggestion directly into the comment, which can instantly be accepted and committed from within the PR.
* Write clear comments. Describe the issue, why you don’t agree (mistakes, errors, violations against conventions, performance risk, security issues, etc.), and propose other solutions to simplify and improve the code.
* If any of the comments need to be addressed mandatorily, mark the pull request as “Draft”

## Unit tests

All contributors have to manually run the unit test locally before raising the Pull request.

* Inside docker, build with -DBUILD_TESTING=ON.
* Then “ninja” and “ninja test” (this command runs all the tests.)

If you want to test individually
you can do by running test executables from shell

Build and unit tests are run from contributor fork using github actions.
Expand Up @@ -51,9 +51,9 @@ PROCESS_THREAD(ncp_process, ev, data)
while (1) {
switch (ev) {
case PROCESS_EVENT_INIT:
ncp_flush();
sl_log_info(LOG_TAG, "Reset NCP");
sl_bt_system_reset(sl_bt_system_boot_mode_normal);
ncp_flush();
break;
case BT_EVENT:
if (NULL != ncp_bt_on_event) {
Expand Down
45 changes: 32 additions & 13 deletions applications/cpc-hci-bridge/CMakeLists.txt
@@ -1,21 +1,40 @@
add_executable(cpc-hci-bridge cpc-hci-bridge.c)
find_package(GeckoSDK 4.3.0 REQUIRED)
find_package(CPCD 4.3.0 REQUIRED)

set(CPC_HCI_BRIDGE_SOURCE_FILES
${GeckoSDK_ROOT_DIR}/app/bluetooth/example_host/bt_host_cpc_hci_bridge/main.c
${GeckoSDK_ROOT_DIR}/app/common/util/app_log/app_log.c
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/iostream_mock/sl_iostream_handles.c
)

set(CPC_HCI_BRIDGE_INCLUDES
${GeckoSDK_ROOT_DIR}/app/bluetooth/example_host/bt_host_cpc_hci_bridge
${GeckoSDK_ROOT_DIR}/platform/common/inc
${GeckoSDK_ROOT_DIR}/protocol/bluetooth/bgstack/ll/utils/hci_packet/inc
${GeckoSDK_ROOT_DIR}/app/common/util/app_log
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/iostream_mock
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/app_log
${GeckoSDK_ROOT_DIR}/app/bluetooth/common_host/app_log/config
)

add_executable(cpc-hci-bridge ${CPC_HCI_BRIDGE_SOURCE_FILES})

target_include_directories(cpc-hci-bridge BEFORE PRIVATE
${CPC_HCI_BRIDGE_INCLUDES}
${cpcd_SOURCE_DIR}/lib
)

target_compile_definitions(cpc-hci-bridge PRIVATE
-DHOST_TOOLCHAIN
-DPOSIX
)

target_link_libraries(cpc-hci-bridge
cpc
unify
util
pthread
)

if(CPCD_LOCATION)
target_include_directories(cpc-hci-bridge PRIVATE ${CPCD_LOCATION}/include)
set_source_files_properties(
cpc-hci-bridge.c PROPERTIES COMPILE_FLAGS -Wno-error=unused-result
)
else()
get_target_property(CPC_SOURCE_DIR cpc SOURCE_DIR)
target_include_directories(cpc-hci-bridge PRIVATE ${CPC_SOURCE_DIR}/lib)
endif()
target_link_directories(cpc-hci-bridge PRIVATE ${cpcd_BINARY_DIR})

install(TARGETS cpc-hci-bridge RUNTIME DESTINATION "bin" COMPONENT uic-cpc-hci-bridge)

Expand Down Expand Up @@ -51,7 +70,7 @@ add_component_to_uic(
uic-cpc-hci-bridge
"Universal IOT controller - cpc-hci-bridge"
"${CMAKE_PROJECT_NAME}-cpc-hci-bridge"
""
"${CMAKE_PROJECT_NAME}-cpcd"
""
"${CMAKE_BINARY_DIR}/applications/aox/applications/cpc-hci-bridge/debconf/postinst;\
${CMAKE_BINARY_DIR}/applications/aox/applications/cpc-hci-bridge/debconf/prerm")

0 comments on commit 3b43b68

Please sign in to comment.