From 8e5babe0df747ff32b27241a55e9da8b486bff72 Mon Sep 17 00:00:00 2001 From: Simone Orru Date: Thu, 22 Aug 2024 14:16:35 +0200 Subject: [PATCH] Prepare pubblishing for ESP registry Signed-off-by: Simone Orru --- examples/aggregates/CMakeLists.txt | 2 -- examples/aggregates/main/idf_component.yml | 26 +++++++++++++++++++ examples/datastreams/CMakeLists.txt | 2 -- examples/datastreams/main/idf_component.yml | 26 +++++++++++++++++++ examples/encryption/CMakeLists.txt | 2 -- examples/encryption/main/idf_component.yml | 26 +++++++++++++++++++ examples/non_volatile_storage/CMakeLists.txt | 2 -- .../main/idf_component.yml | 26 +++++++++++++++++++ examples/properties/CMakeLists.txt | 2 -- examples/properties/main/idf_component.yml | 26 +++++++++++++++++++ examples/registration/CMakeLists.txt | 2 -- examples/registration/main/idf_component.yml | 26 +++++++++++++++++++ examples/toggle_led/CMakeLists.txt | 2 -- examples/toggle_led/main/idf_component.yml | 26 +++++++++++++++++++ idf_component.yml | 1 + 15 files changed, 183 insertions(+), 14 deletions(-) create mode 100644 examples/aggregates/main/idf_component.yml create mode 100644 examples/datastreams/main/idf_component.yml create mode 100644 examples/encryption/main/idf_component.yml create mode 100644 examples/non_volatile_storage/main/idf_component.yml create mode 100644 examples/properties/main/idf_component.yml create mode 100644 examples/registration/main/idf_component.yml create mode 100644 examples/toggle_led/main/idf_component.yml diff --git a/examples/aggregates/CMakeLists.txt b/examples/aggregates/CMakeLists.txt index 5affcf4e..1f4d1960 100644 --- a/examples/aggregates/CMakeLists.txt +++ b/examples/aggregates/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(aggregates) diff --git a/examples/aggregates/main/idf_component.yml b/examples/aggregates/main/idf_component.yml new file mode 100644 index 00000000..183a3ab1 --- /dev/null +++ b/examples/aggregates/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example for transmission and reception of aggregated datastreams +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/examples/datastreams/CMakeLists.txt b/examples/datastreams/CMakeLists.txt index 4d14a458..b561ecd7 100644 --- a/examples/datastreams/CMakeLists.txt +++ b/examples/datastreams/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(datastreams) diff --git a/examples/datastreams/main/idf_component.yml b/examples/datastreams/main/idf_component.yml new file mode 100644 index 00000000..8c232c9c --- /dev/null +++ b/examples/datastreams/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example for transmission and reception of individual datastreams +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/examples/encryption/CMakeLists.txt b/examples/encryption/CMakeLists.txt index 75b2420b..a1baaad4 100644 --- a/examples/encryption/CMakeLists.txt +++ b/examples/encryption/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(encryption) diff --git a/examples/encryption/main/idf_component.yml b/examples/encryption/main/idf_component.yml new file mode 100644 index 00000000..5b409ed5 --- /dev/null +++ b/examples/encryption/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example for the use of the Astarte device SDK with encrypted flash partitions +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/examples/non_volatile_storage/CMakeLists.txt b/examples/non_volatile_storage/CMakeLists.txt index 43c9196f..ad30fff8 100644 --- a/examples/non_volatile_storage/CMakeLists.txt +++ b/examples/non_volatile_storage/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(non-volatile-storage) diff --git a/examples/non_volatile_storage/main/idf_component.yml b/examples/non_volatile_storage/main/idf_component.yml new file mode 100644 index 00000000..247f1188 --- /dev/null +++ b/examples/non_volatile_storage/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example for the use of the Astarte device SDK with non volatile storage enabled +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/examples/properties/CMakeLists.txt b/examples/properties/CMakeLists.txt index a3cc5272..72a2b76c 100644 --- a/examples/properties/CMakeLists.txt +++ b/examples/properties/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(properties) diff --git a/examples/properties/main/idf_component.yml b/examples/properties/main/idf_component.yml new file mode 100644 index 00000000..9e0c9ade --- /dev/null +++ b/examples/properties/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example for setting and unsetting individual properties +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/examples/registration/CMakeLists.txt b/examples/registration/CMakeLists.txt index 85277e93..bb0e12c4 100644 --- a/examples/registration/CMakeLists.txt +++ b/examples/registration/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(registration) diff --git a/examples/registration/main/idf_component.yml b/examples/registration/main/idf_component.yml new file mode 100644 index 00000000..080e1e14 --- /dev/null +++ b/examples/registration/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example for on board registration using a JWT +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/examples/toggle_led/CMakeLists.txt b/examples/toggle_led/CMakeLists.txt index 9a442912..b6e682d0 100644 --- a/examples/toggle_led/CMakeLists.txt +++ b/examples/toggle_led/CMakeLists.txt @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) -set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..) - project(toggle-led) diff --git a/examples/toggle_led/main/idf_component.yml b/examples/toggle_led/main/idf_component.yml new file mode 100644 index 00000000..5c02f99f --- /dev/null +++ b/examples/toggle_led/main/idf_component.yml @@ -0,0 +1,26 @@ +# +# This file is part of Astarte. +# +# Copyright 2024 SECO Mind Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0 +# + +description: Example with a led toggle for visual demonstration +dependencies: + idf: ">=5.0" + astarte-platform/astarte-device-sdk-esp32: + version: '1.3.1' + override_path: '../../../' # three levels up, pointing the directory with the component itself diff --git a/idf_component.yml b/idf_component.yml index a7c43260..b622e7f0 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -22,6 +22,7 @@ version: "1.3.1" description: "A component that provides communication and pairing primitives to an Astarte cluster" url: "https://github.com/astarte-platform/astarte-device-sdk-esp32" documentation: "https://docs.astarte-platform.org/device-sdks/esp32/1.3/api" +license: "Apache-2.0" tags: - sdk