diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 84ac2cf42d..dcc60773a2 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -11,8 +11,9 @@ on: env: BUILD_TYPE: Debug + # Refs for 2208_sprint. - THUNDER_REF: "331ee30b1eaf82a7e8944ee00b8cb1d1d0aca682" + THUNDER_REF: "02f6ccbca6832043cbc94cc28c1bda7d4954a4e6" INTERFACES_REF: "cb3b8476aa3b00ae9e73ff0cf64114563d1ee7ae" THUNDER_BINDING: "127.0.0.1" @@ -91,7 +92,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: > cmake - --build build/ThunderTools + --build build/ThunderTools -j8 - name: Install ThunderTools if: steps.cache.outputs.cache-hit != 'true' @@ -115,7 +116,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: > cmake - --build build/Thunder + --build build/Thunder -j8 - name: Install Thunder if: steps.cache.outputs.cache-hit != 'true' @@ -144,7 +145,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: > cmake - --build build/ThunderInterfaces + --build build/ThunderInterfaces -j8 - name: Install ThunderInterfaces if: steps.cache.outputs.cache-hit != 'true' @@ -197,7 +198,7 @@ jobs: - name: Build rdkservices run: > cmake - --build build/rdkservices + --build build/rdkservices -j8 - name: Install rdkservices run: > diff --git a/.github/workflows/update-changelog-and-api-version.yml b/.github/workflows/update-changelog-and-api-version.yml new file mode 100644 index 0000000000..0a35fd393a --- /dev/null +++ b/.github/workflows/update-changelog-and-api-version.yml @@ -0,0 +1,33 @@ +name: update changelog and api version + +on: + push: + branches: + - main + - 'release/**' + + pull_request: + branches: + - main + - 'release/**' + + +jobs: + build: + runs-on: ubuntu-latest # windows-latest | macos-latest + name: Check if changelog and api version were updated + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. + + - name: Get changed files using defaults + id: changed-files + uses: tj-actions/changed-files@v19 + + - name: Run step when a CHANGELOG.md didn't change + uses: actions/github-script@v3 + if: ${{ !contains(steps.changed-files.outputs.modified_files, 'CHANGELOG.md') }} + with: + script: | + core.setFailed('CHANGELOG.md should be modified') diff --git a/AVInput/AVInput.cpp b/AVInput/AVInput.cpp index 698ce81e98..71b671dc07 100644 --- a/AVInput/AVInput.cpp +++ b/AVInput/AVInput.cpp @@ -25,7 +25,25 @@ #include "UtilsJsonRpc.h" #include "UtilsIarm.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { namespace { @@ -53,7 +71,7 @@ void dsHdmiEventHandler(const char *, IARM_EventId_t eventId, void *, size_t) } } -SERVICE_REGISTRATION(AVInput, 1, 0); +SERVICE_REGISTRATION(AVInput, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); AVInput* AVInput::_instance = nullptr; diff --git a/AVInput/AVInputPlugin.json b/AVInput/AVInputPlugin.json index e41bfca34a..ec271874fa 100644 --- a/AVInput/AVInputPlugin.json +++ b/AVInput/AVInputPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.AVInput", "locator": "libWPEFrameworkAVInput.so", "status": "production", - "description": "The `AVInput` plugin facilitates interactions with the Parker STB HDMI input. The HDMI input is presented by using a `VideoResource` whose URL starts with `avin:`. For example: `avin://input1`.", - "version": "1.0" + "description": "The `AVInput` plugin facilitates interactions with the Parker STB HDMI input. The HDMI input is presented by using a `VideoResource` whose URL starts with `avin:`. For example: `avin://input1`." }, "interface": { "$ref": "AVInput.json#" diff --git a/AVInput/CHANGELOG.md b/AVInput/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/AVInput/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/ActivityMonitor/ActivityMonitor.cpp b/ActivityMonitor/ActivityMonitor.cpp index 7dc4ee5017..690c9810c8 100644 --- a/ActivityMonitor/ActivityMonitor.cpp +++ b/ActivityMonitor/ActivityMonitor.cpp @@ -38,11 +38,29 @@ #define CALLSIGN_PARAMETER "-C" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(ActivityMonitor, 1, 0); + SERVICE_REGISTRATION(ActivityMonitor, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); ActivityMonitor* ActivityMonitor::_instance = nullptr; diff --git a/ActivityMonitor/ActivityMonitorPlugin.json b/ActivityMonitor/ActivityMonitorPlugin.json index 09f7ae56b8..caae73e4c7 100644 --- a/ActivityMonitor/ActivityMonitorPlugin.json +++ b/ActivityMonitor/ActivityMonitorPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.ActivityMonitor", "locator": "libWPEFrameworkActivityMonitor.so", "status": "production", - "description": "The `ActivityMonitor` plugin allows you to monitor memory and CPU usage by application.", - "version": "1.0" + "description": "The `ActivityMonitor` plugin allows you to monitor memory and CPU usage by application." }, "interface": { "$ref": "ActivityMonitor.json#" diff --git a/ActivityMonitor/CHANGELOG.md b/ActivityMonitor/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/ActivityMonitor/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Bluetooth/Bluetooth.cpp b/Bluetooth/Bluetooth.cpp index c5ba1c5f6a..a589d6156d 100644 --- a/Bluetooth/Bluetooth.cpp +++ b/Bluetooth/Bluetooth.cpp @@ -38,8 +38,10 @@ // For example, the exposed "startScan" method is mapped to "startScanWrapper()" and that one calls to "startDeviceDiscovery()" internally, // which finally calls to "BTRMGR_StartDeviceDiscovery()" in Bluetooth Manager. -const short WPEFramework::Plugin::Bluetooth::API_VERSION_NUMBER_MAJOR = 1; // corresponds to org.rdk.Bluetooth_5 -const short WPEFramework::Plugin::Bluetooth::API_VERSION_NUMBER_MINOR = 0; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + const string WPEFramework::Plugin::Bluetooth::SERVICE_NAME = "org.rdk.Bluetooth"; const string WPEFramework::Plugin::Bluetooth::METHOD_START_SCAN = "startScan"; const string WPEFramework::Plugin::Bluetooth::METHOD_STOP_SCAN = "stopScan"; @@ -118,9 +120,23 @@ const string WPEFramework::Plugin::Bluetooth::CMD_AUDIO_CTRL_UNMUTE = "AUDIO_UNM namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(Bluetooth, Bluetooth::API_VERSION_NUMBER_MAJOR, Bluetooth::API_VERSION_NUMBER_MINOR); + SERVICE_REGISTRATION(Bluetooth, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); Bluetooth* Bluetooth::_instance = nullptr; static Core::TimerType _discoveryTimer(64 * 1024, "DiscoveryTimer"); diff --git a/Bluetooth/Bluetooth.h b/Bluetooth/Bluetooth.h index 07354ff901..5e84968283 100644 --- a/Bluetooth/Bluetooth.h +++ b/Bluetooth/Bluetooth.h @@ -127,8 +127,6 @@ namespace WPEFramework { public: - static const short API_VERSION_NUMBER_MAJOR; - static const short API_VERSION_NUMBER_MINOR; static const string SERVICE_NAME; static const string METHOD_START_SCAN; static const string METHOD_STOP_SCAN; diff --git a/Bluetooth/BluetoothPlugin.json b/Bluetooth/BluetoothPlugin.json index d4fef07b36..33b22f0567 100644 --- a/Bluetooth/BluetoothPlugin.json +++ b/Bluetooth/BluetoothPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Bluetooth", "locator": "libWPEFrameworkBluetooth.so", "status": "production", - "description": "The Bluetooth Plugin allows applications to interact with the Bluetooth stack and manage Bluetooth devices.", - "version": "2.0" + "description": "The Bluetooth Plugin allows applications to interact with the Bluetooth stack and manage Bluetooth devices." }, "interface": { "$ref": "Bluetooth.json#" diff --git a/Bluetooth/CHANGELOG.md b/Bluetooth/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Bluetooth/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/CompositeInput/CHANGELOG.md b/CompositeInput/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/CompositeInput/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/CompositeInput/CompositeInput.cpp b/CompositeInput/CompositeInput.cpp index 5cfabbdac6..8eb859095a 100644 --- a/CompositeInput/CompositeInput.cpp +++ b/CompositeInput/CompositeInput.cpp @@ -27,6 +27,10 @@ #include "dsError.h" #include "dsMgr.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + #define COMPOSITE_HOT_PLUG_EVENT_CONNECTED 1 #define COMPOSITE_HOT_PLUG_EVENT_DISCONNECTED 0 @@ -41,9 +45,23 @@ namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(CompositeInput, 1, 0); + SERVICE_REGISTRATION(CompositeInput, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); CompositeInput* CompositeInput::_instance = nullptr; diff --git a/CompositeInput/CompositeInputPlugin.json b/CompositeInput/CompositeInputPlugin.json index f6be171ae9..5a97476457 100644 --- a/CompositeInput/CompositeInputPlugin.json +++ b/CompositeInput/CompositeInputPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.CompositeInput", "locator": "libWPEFrameworkCompositeInput.so", "status": "production", - "description": "The `CompositeInput` Plugin allows you to control the composite input source on a device", - "version": "2.0" + "description": "The `CompositeInput` Plugin allows you to control the composite input source on a device" }, "interface": { "$ref": "CompositeInput.json#" diff --git a/ContinueWatching/CHANGELOG.md b/ContinueWatching/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/ContinueWatching/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/ContinueWatching/ContinueWatching.cpp b/ContinueWatching/ContinueWatching.cpp index aff27b04b9..066311c9cf 100644 --- a/ContinueWatching/ContinueWatching.cpp +++ b/ContinueWatching/ContinueWatching.cpp @@ -52,18 +52,33 @@ #define CW_TR181_PARAMETER "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.OTT_Token.Enable" #define CW_ENV_PARAMETER "ENABLE_OTT_TOKEN" -#define CONTINUEWATCHING_MAJOR_VERSION 1 -#define CONTINUEWATCHING_MINOR_VERSION 0 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { /* *Register ContinueWatching module as wpeframework plugin **/ - SERVICE_REGISTRATION(ContinueWatching, CONTINUEWATCHING_MAJOR_VERSION, CONTINUEWATCHING_MINOR_VERSION); + SERVICE_REGISTRATION(ContinueWatching, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); ContinueWatching* ContinueWatching::_instance = nullptr; diff --git a/ContinueWatching/ContinueWatchingPlugin.json b/ContinueWatching/ContinueWatchingPlugin.json index 61c3dd179c..114706fbb0 100644 --- a/ContinueWatching/ContinueWatchingPlugin.json +++ b/ContinueWatching/ContinueWatchingPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.ContinueWatching", "locator": "libWPEFrameworkContinueWatching.so", "status": "production", - "description": "Initial version of the `ContinueWatching` API.", - "version": "1.0" + "description": "Initial version of the `ContinueWatching` API." }, "interface": { "$ref": "ContinueWatching.json#" diff --git a/ControlService/CHANGELOG.md b/ControlService/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/ControlService/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/ControlService/ControlService.cpp b/ControlService/ControlService.cpp index 35af043778..43af3d3c68 100644 --- a/ControlService/ControlService.cpp +++ b/ControlService/ControlService.cpp @@ -53,15 +53,32 @@ typedef enum #define IEEE_MAC_ADDRESS_STR_MAX 30 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(ControlService, 1, 0); + SERVICE_REGISTRATION(ControlService, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); ControlService* ControlService::_instance = nullptr; diff --git a/ControlService/ControlServicePlugin.json b/ControlService/ControlServicePlugin.json index 80c5c8ee96..f4d4ad98f6 100644 --- a/ControlService/ControlServicePlugin.json +++ b/ControlService/ControlServicePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.ControlService", "locator": "", "status": "production", - "description": "The `ControlService` plugin provides the ability to manage the remote controls of a STB.", - "version": "1.0" + "description": "The `ControlService` plugin provides the ability to manage the remote controls of a STB." }, "interface": { "$ref": "ControlService.json#" diff --git a/DTV/CHANGELOG.md b/DTV/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DTV/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DTV/DTV.cpp b/DTV/DTV.cpp index 9549879a70..6f0187635a 100644 --- a/DTV/DTV.cpp +++ b/DTV/DTV.cpp @@ -19,6 +19,10 @@ #include "DTV.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + extern "C" { // DVB include files @@ -34,11 +38,25 @@ extern "C" namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { using namespace JsonData::DTV; - SERVICE_REGISTRATION(DTV, 1, 0); + SERVICE_REGISTRATION(DTV, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); //static Core::ProxyPoolType _textBodies(2); static Core::ProxyPoolType> jsonResponseDataFactory(1); diff --git a/DTV/DTVPlugin.json b/DTV/DTVPlugin.json index 20b8130d70..89f7c6edc9 100644 --- a/DTV/DTVPlugin.json +++ b/DTV/DTVPlugin.json @@ -5,8 +5,7 @@ "callsign": "DTV", "locator": "libWPEFrameworkDTV.so", "status": "beta", - "description": "The DTV plugin provides access to DVB services provided by a DVB stack.", - "version": "2.0" + "description": "The DTV plugin provides access to DVB services provided by a DVB stack." }, "interface": { "$ref": "DTV.json#" diff --git a/DataCapture/CHANGELOG.md b/DataCapture/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DataCapture/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DataCapture/DataCapture.cpp b/DataCapture/DataCapture.cpp index 21bf6eb8f4..f88e05d261 100644 --- a/DataCapture/DataCapture.cpp +++ b/DataCapture/DataCapture.cpp @@ -35,11 +35,29 @@ const string WPEFramework::Plugin::DataCapture::METHOD_GET_AUDIO_CLIP = "getAudi const string WPEFramework::Plugin::DataCapture::EVT_ON_AUDIO_CLIP_READY = "onAudioClipReady"; pthread_mutex_t WPEFramework::Plugin::DataCapture::_mutex = PTHREAD_MUTEX_INITIALIZER; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + using namespace std; using namespace audiocapturemgr; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { static bool verify_result(IARM_Result_t ret, iarmbus_acm_arg_t ¶m) @@ -66,7 +84,7 @@ namespace WPEFramework { while (dir.Next()) Core::File(AUDIOCAPTUREMGR_FILE_PATH + dir.Name()).Destroy(); } - SERVICE_REGISTRATION(DataCapture, 1, 0); + SERVICE_REGISTRATION(DataCapture, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); DataCapture* DataCapture::_instance = nullptr; diff --git a/DataCapture/DataCapturePlugin.json b/DataCapture/DataCapturePlugin.json index 232a656d5b..a178c47c47 100644 --- a/DataCapture/DataCapturePlugin.json +++ b/DataCapture/DataCapturePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.dataCapture", "locator": "libWPEFrameworkDataCapture.so", "status": "production", - "description": "The DataCapture plugin allows you to capture an audio clip from an audio source and send it to a URL such as a music ID service.", - "version": "1.0" + "description": "The DataCapture plugin allows you to capture an audio clip from an audio source and send it to a URL such as a music ID service." }, "interface": { "$ref": "DataCapture.json#" diff --git a/DeviceDiagnostics/CHANGELOG.md b/DeviceDiagnostics/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DeviceDiagnostics/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DeviceDiagnostics/DeviceDiagnostics.cpp b/DeviceDiagnostics/DeviceDiagnostics.cpp index 7a62497784..8da018606a 100644 --- a/DeviceDiagnostics/DeviceDiagnostics.cpp +++ b/DeviceDiagnostics/DeviceDiagnostics.cpp @@ -34,6 +34,10 @@ #define MILESTONES_LOG_FILE "/opt/logs/rdk_milestones.log" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + enum SysSrv_ErrorCode { SysSrv_FileNotPresent, SysSrv_FileAccessFailed @@ -74,9 +78,23 @@ void populateResponseWithError(int errorCode, JsonObject& response); namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(DeviceDiagnostics, 1, 0); + SERVICE_REGISTRATION(DeviceDiagnostics, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); DeviceDiagnostics* DeviceDiagnostics::_instance = nullptr; diff --git a/DeviceDiagnostics/DeviceDiagnosticsPlugin.json b/DeviceDiagnostics/DeviceDiagnosticsPlugin.json index 3f215c04f6..551769a40e 100644 --- a/DeviceDiagnostics/DeviceDiagnosticsPlugin.json +++ b/DeviceDiagnostics/DeviceDiagnosticsPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.DeviceDiagnostics", "locator": "libWPEFrameworkDeviceDiagnostics.so", "status": "production", - "description": "The `DeviceDiagnostics` plugin provides additional diagnostics information which includes device configuration and AV decoder status.", - "version": "1.0" + "description": "The `DeviceDiagnostics` plugin provides additional diagnostics information which includes device configuration and AV decoder status." }, "interface": { "$ref": "DeviceDiagnostics.json#" diff --git a/DeviceIdentification/CHANGELOG.md b/DeviceIdentification/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DeviceIdentification/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DeviceIdentification/DeviceIdentification.cpp b/DeviceIdentification/DeviceIdentification.cpp index 662d057441..d8720b2763 100644 --- a/DeviceIdentification/DeviceIdentification.cpp +++ b/DeviceIdentification/DeviceIdentification.cpp @@ -21,10 +21,27 @@ #include "IdentityProvider.h" #include +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(DeviceIdentification, 1, 0); + SERVICE_REGISTRATION(DeviceIdentification, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); /* virtual */ const string DeviceIdentification::Initialize(PluginHost::IShell* service) { diff --git a/DeviceIdentification/DeviceIdentificationPlugin.json b/DeviceIdentification/DeviceIdentificationPlugin.json index f7e93d389b..2a29d6615e 100644 --- a/DeviceIdentification/DeviceIdentificationPlugin.json +++ b/DeviceIdentification/DeviceIdentificationPlugin.json @@ -5,8 +5,7 @@ "callsign": "DeviceIdentification", "locator": "libWPEFrameworkDeviceIdentification.so", "status": "production", - "description": "The `DeviceIdentification` plugin allows you to retrieve various device-related information", - "version": "1.0" + "description": "The `DeviceIdentification` plugin allows you to retrieve various device-related information" }, "interface": { "$ref": "DeviceIdentification.json#" diff --git a/DeviceInfo/CHANGELOG.md b/DeviceInfo/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DeviceInfo/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DeviceInfo/DeviceInfo.cpp b/DeviceInfo/DeviceInfo.cpp index fb6f3dc19c..fb7a53dac2 100644 --- a/DeviceInfo/DeviceInfo.cpp +++ b/DeviceInfo/DeviceInfo.cpp @@ -18,14 +18,30 @@ */ #include "DeviceInfo.h" - #include "DeviceCapabilities.h" #include "FirmwareVersion.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(DeviceInfo, 1, 0); + SERVICE_REGISTRATION(DeviceInfo, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType> jsonResponseFactory(4); diff --git a/DeviceInfo/DeviceInfo.h b/DeviceInfo/DeviceInfo.h index ca4505c50d..79d2c7e2b8 100644 --- a/DeviceInfo/DeviceInfo.h +++ b/DeviceInfo/DeviceInfo.h @@ -22,7 +22,6 @@ #include "Module.h" #include -#include #include namespace WPEFramework { diff --git a/DeviceInfo/DeviceInfoPlugin.json b/DeviceInfo/DeviceInfoPlugin.json index 11376e1356..11f4e7b32b 100644 --- a/DeviceInfo/DeviceInfoPlugin.json +++ b/DeviceInfo/DeviceInfoPlugin.json @@ -5,8 +5,7 @@ "callsign": "DeviceInfo", "locator": "libWPEFrameworkDeviceInfo.so", "status": "production", - "description": "The `DeviceInfo` plugin allows retrieving of various device-related information.", - "version": "1.0" + "description": "The `DeviceInfo` plugin allows retrieving of various device-related information." }, "interface": { "$ref": "DeviceInfo.json#" diff --git a/DisplayInfo/CHANGELOG.md b/DisplayInfo/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DisplayInfo/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DisplayInfo/DisplayInfo.cpp b/DisplayInfo/DisplayInfo.cpp index e474698302..f03ead208f 100644 --- a/DisplayInfo/DisplayInfo.cpp +++ b/DisplayInfo/DisplayInfo.cpp @@ -19,10 +19,26 @@ #include "DisplayInfo.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} namespace Plugin { - SERVICE_REGISTRATION(DisplayInfo, 1, 0); + SERVICE_REGISTRATION(DisplayInfo, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType responseFactory(4); static Core::ProxyPoolType> jsonResponseFactory(4); diff --git a/DisplayInfo/DisplayInfo.h b/DisplayInfo/DisplayInfo.h index 3202932349..47ccd1d55b 100644 --- a/DisplayInfo/DisplayInfo.h +++ b/DisplayInfo/DisplayInfo.h @@ -63,7 +63,7 @@ namespace Plugin { _client = nullptr; } } - void Updated(const Exchange::IConnectionProperties::INotification::Source event) override + void Updated(Exchange::IConnectionProperties::INotification::Source event) override { Exchange::JConnectionProperties::Event::Updated(_parent, event); } diff --git a/DisplayInfo/DisplayInfoPlugin.json b/DisplayInfo/DisplayInfoPlugin.json index 7a131dac3a..6d0b9347b8 100644 --- a/DisplayInfo/DisplayInfoPlugin.json +++ b/DisplayInfo/DisplayInfoPlugin.json @@ -5,8 +5,7 @@ "callsign": "DisplayInfo", "locator": "libWPEFrameworkDisplayInfo.so", "status": "production", - "description": "The `DisplayInfo` plugin allows you to retrieve various display-related information", - "version": "1.0" + "description": "The `DisplayInfo` plugin allows you to retrieve various display-related information" }, "interface": { "$ref": "DisplayInfo.json#" diff --git a/DisplaySettings/CHANGELOG.md b/DisplaySettings/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/DisplaySettings/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/DisplaySettings/DisplaySettings.cpp b/DisplaySettings/DisplaySettings.cpp index a75302fe16..917591d677 100644 --- a/DisplaySettings/DisplaySettings.cpp +++ b/DisplaySettings/DisplaySettings.cpp @@ -51,6 +51,7 @@ #include "UtilsSecurityToken.h" #include "UtilsString.h" #include "UtilsisValidInt.h" +#include "dsRpc.h" using namespace std; @@ -75,6 +76,10 @@ using namespace std; #define ZOOM_SETTINGS_FILE "/opt/persistent/rdkservices/zoomSettings.json" #define ZOOM_SETTINGS_DIRECTORY "/opt/persistent/rdkservices" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + static bool isCecArcRoutingThreadEnabled = false; static bool isCecEnabled = false; static int hdmiArcPortId = -1; @@ -138,9 +143,23 @@ namespace namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(DisplaySettings, 1, 0); + SERVICE_REGISTRATION(DisplaySettings, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); DisplaySettings* DisplaySettings::_instance = nullptr; IARM_Bus_PWRMgr_PowerState_t DisplaySettings::m_powerState = IARM_BUS_PWRMGR_POWERSTATE_STANDBY; diff --git a/DisplaySettings/DisplaySettingsPlugin.json b/DisplaySettings/DisplaySettingsPlugin.json index e8aee602b7..1fe0087695 100644 --- a/DisplaySettings/DisplaySettingsPlugin.json +++ b/DisplaySettings/DisplaySettingsPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.DisplaySettings", "locator": "libWPEFrameworkDisplaySettings.so", "status": "production", - "description": "The `DisplaySetting` plugin provides an interface for display information such as current video resolution, supported video displays, zoom setting, sound mode, and much more.", - "version": "2.0" + "description": "The `DisplaySetting` plugin provides an interface for display information such as current video resolution, supported video displays, zoom setting, sound mode, and much more." }, "interface": { "$ref": "DisplaySettings.json#" diff --git a/FireboltMediaPlayer/CHANGELOG.md b/FireboltMediaPlayer/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/FireboltMediaPlayer/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/FireboltMediaPlayer/FireboltMediaPlayer.cpp b/FireboltMediaPlayer/FireboltMediaPlayer.cpp index 9cadc07962..38196d0ff1 100644 --- a/FireboltMediaPlayer/FireboltMediaPlayer.cpp +++ b/FireboltMediaPlayer/FireboltMediaPlayer.cpp @@ -21,8 +21,26 @@ #include "UtilsJsonRpc.h" #include "Module.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { /** @@ -51,7 +69,7 @@ namespace WPEFramework { return result; } - SERVICE_REGISTRATION(FireboltMediaPlayer, 1, 0); + SERVICE_REGISTRATION(FireboltMediaPlayer, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); FireboltMediaPlayer::FireboltMediaPlayer() : _notification(this) diff --git a/FireboltMediaPlayer/FireboltMediaPlayerPlugin.json b/FireboltMediaPlayer/FireboltMediaPlayerPlugin.json index 849e69d1c5..9ecf096215 100644 --- a/FireboltMediaPlayer/FireboltMediaPlayerPlugin.json +++ b/FireboltMediaPlayer/FireboltMediaPlayerPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.FireboltMediaPlayer", "locator": "libWPEFrameworkFireboltMediaPlayer.so", "status": "production", - "description": "The `FireboltMediaPlayer` plugin allows you to control an AAMP media player for media stream playback. \n\n**Summary**\n* The service is a wrapper for AAMP IP Video (DASH, HLS, mp4, etc.) playback intended for the RDK community as an alternative to native or UVE-JS integration. \n* The service starts an AAMP dedicated process with the environment variables `AAMP_ENABLE_OPT_OVERRIDE=1` (enables `/opt/aamp.cfg`) and `AAMP_ENABLE_WESTEROS_SINK=1`.", - "version": "1.0" + "description": "The `FireboltMediaPlayer` plugin allows you to control an AAMP media player for media stream playback. \n\n**Summary**\n* The service is a wrapper for AAMP IP Video (DASH, HLS, mp4, etc.) playback intended for the RDK community as an alternative to native or UVE-JS integration. \n* The service starts an AAMP dedicated process with the environment variables `AAMP_ENABLE_OPT_OVERRIDE=1` (enables `/opt/aamp.cfg`) and `AAMP_ENABLE_WESTEROS_SINK=1`." }, "interface": { "$ref": "FireboltMediaPlayer.json#" diff --git a/FrameRate/CHANGELOG.md b/FrameRate/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/FrameRate/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/FrameRate/FrameRate.cpp b/FrameRate/FrameRate.cpp index b979a92976..b104b48594 100644 --- a/FrameRate/FrameRate.cpp +++ b/FrameRate/FrameRate.cpp @@ -46,11 +46,29 @@ #define DEFAULT_MIN_FPS_VALUE 60 #define DEFAULT_MAX_FPS_VALUE -1 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(FrameRate, 1, 0); + SERVICE_REGISTRATION(FrameRate, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); FrameRate* FrameRate::_instance = nullptr; diff --git a/FrameRate/FrameRatePlugin.json b/FrameRate/FrameRatePlugin.json index ad154e2250..59c1ec2a83 100644 --- a/FrameRate/FrameRatePlugin.json +++ b/FrameRate/FrameRatePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.FrameRate", "locator": "libWPEFrameworkFrameRate.so", "status": "production", - "description": "The `FrameRate` plugin allows you to collect FPS data.", - "version": "2.0" + "description": "The `FrameRate` plugin allows you to collect FPS data." }, "interface": { "$ref": "FrameRate.json#" diff --git a/FrontPanel/CHANGELOG.md b/FrontPanel/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/FrontPanel/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/FrontPanel/FrontPanel.cpp b/FrontPanel/FrontPanel.cpp index ba7f691e77..9e7ab6ba61 100644 --- a/FrontPanel/FrontPanel.cpp +++ b/FrontPanel/FrontPanel.cpp @@ -63,6 +63,10 @@ #define DEFAULT_TEXT_PATTERN_UPDATE_INTERVAL 5 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace { @@ -146,10 +150,23 @@ namespace namespace WPEFramework { - + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(FrontPanel, 1, 0); + SERVICE_REGISTRATION(FrontPanel, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); FrontPanel* FrontPanel::_instance = nullptr; diff --git a/FrontPanel/FrontPanelPlugin.json b/FrontPanel/FrontPanelPlugin.json index 2436fcaefa..2a736f957c 100644 --- a/FrontPanel/FrontPanelPlugin.json +++ b/FrontPanel/FrontPanelPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.FrontPanel", "locator": "libWPEFrameworkFrontPanel.so", "status": "production", - "description": "The `FrontPanel` plugin allows you to control brightness and power state for LEDs on a set-top box.", - "version": "2.0" + "description": "The `FrontPanel` plugin allows you to control brightness and power state for LEDs on a set-top box." }, "interface": { "$ref": "FrontPanel.json#" diff --git a/HdcpProfile/CHANGELOG.md b/HdcpProfile/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/HdcpProfile/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/HdcpProfile/HdcpProfile.cpp b/HdcpProfile/HdcpProfile.cpp index 4726d4576b..80b04291c6 100644 --- a/HdcpProfile/HdcpProfile.cpp +++ b/HdcpProfile/HdcpProfile.cpp @@ -41,11 +41,29 @@ #define HDCP_PROFILE_EVT_ON_DISPLAY_CONNECTION_CHANGED "onDisplayConnectionChanged" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(HdcpProfile, 1, 0); + SERVICE_REGISTRATION(HdcpProfile, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); HdcpProfile* HdcpProfile::_instance = nullptr; diff --git a/HdcpProfile/HdcpProfilePlugin.json b/HdcpProfile/HdcpProfilePlugin.json index fb8d511b1e..92e850d8c5 100644 --- a/HdcpProfile/HdcpProfilePlugin.json +++ b/HdcpProfile/HdcpProfilePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.HdcpProfile", "locator": "libWPEFrameworkHdcpProfile.so", "status": "production", - "description": "The HdcpProfile plugin provides an interface for HDCP-related data and events.", - "version": "1.0" + "description": "The HdcpProfile plugin provides an interface for HDCP-related data and events." }, "interface": { "$ref": "HdcpProfile.json#" diff --git a/HdmiCec/CHANGELOG.md b/HdmiCec/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/HdmiCec/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/HdmiCec/HdmiCec.cpp b/HdmiCec/HdmiCec.cpp index cfe2818537..f4b9e05ea0 100644 --- a/HdmiCec/HdmiCec.cpp +++ b/HdmiCec/HdmiCec.cpp @@ -55,6 +55,10 @@ #define HDMI_HOT_PLUG_EVENT_CONNECTED 0 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + enum { HDMICEC_EVENT_DEVICE_ADDED=0, HDMICEC_EVENT_DEVICE_REMOVED, @@ -83,9 +87,23 @@ static bool isDeviceActiveSource = false; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(HdmiCec, 1, 0); + SERVICE_REGISTRATION(HdmiCec, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); HdmiCec* HdmiCec::_instance = nullptr; diff --git a/HdmiCec/HdmiCecPlugin.json b/HdmiCec/HdmiCecPlugin.json index c7c4f72c49..dec83e7aa6 100644 --- a/HdmiCec/HdmiCecPlugin.json +++ b/HdmiCec/HdmiCecPlugin.json @@ -5,10 +5,9 @@ "callsign": "org.rdk.HdmiCec", "locator": "libWPEFrameworkHdmiCec.so", "status": "production", - "description": "The `HdmiCec` plugin allows you to configure HDMI Consumer Electronics Control (CEC) on a set-top device. HdmiCec plugin can be used on an HDMI Source device where the application has complete control on implementing the CEC messages, and Thunder plugin provides the transport mechanism to send and receive the messages to other CEC devices in the network.", - "version": "1.0" + "description": "The `HdmiCec` plugin allows you to configure HDMI Consumer Electronics Control (CEC) on a set-top device. HdmiCec plugin can be used on an HDMI Source device where the application has complete control on implementing the CEC messages, and Thunder plugin provides the transport mechanism to send and receive the messages to other CEC devices in the network." }, "interface": { "$ref": "HdmiCec.json#" } -} \ No newline at end of file +} diff --git a/HdmiCecSink/CHANGELOG.md b/HdmiCecSink/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/HdmiCecSink/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/HdmiCecSink/HdmiCecSink.cpp b/HdmiCecSink/HdmiCecSink.cpp index cd65d61c88..d3d7656e96 100644 --- a/HdmiCecSink/HdmiCecSink.cpp +++ b/HdmiCecSink/HdmiCecSink.cpp @@ -146,11 +146,29 @@ static vector audioFormatCode = { SAD_FMT_CODE_ENHANCED_AC3,SAD_FMT_COD static uint8_t numberofdescriptor = 2; static int32_t HdmiArcPortID = -1; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(HdmiCecSink, 1, 0); + SERVICE_REGISTRATION(HdmiCecSink, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); HdmiCecSink* HdmiCecSink::_instance = nullptr; static int libcecInitStatus = 0; diff --git a/HdmiCecSink/HdmiCecSinkPlugin.json b/HdmiCecSink/HdmiCecSinkPlugin.json index 5e38987962..2d44c71e31 100644 --- a/HdmiCecSink/HdmiCecSinkPlugin.json +++ b/HdmiCecSink/HdmiCecSinkPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.HdmiCecSink", "locator": "libWPEFrameworkHdmiCecSink.so", "status": "production", - "description": "The `HdmiCecSink` plugin allows you to manage HDMI Consumer Electronics Control (CEC) sink for connected devices.", - "version": "1.0" + "description": "The `HdmiCecSink` plugin allows you to manage HDMI Consumer Electronics Control (CEC) sink for connected devices." }, "interface": { "$ref": "HdmiCecSink.json#" diff --git a/HdmiCec_2/CHANGELOG.md b/HdmiCec_2/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/HdmiCec_2/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/HdmiCec_2/HdmiCec_2.cpp b/HdmiCec_2/HdmiCec_2.cpp index 57b2689ede..16482d0931 100644 --- a/HdmiCec_2/HdmiCec_2.cpp +++ b/HdmiCec_2/HdmiCec_2.cpp @@ -59,6 +59,10 @@ #define HDMI_HOT_PLUG_EVENT_CONNECTED 0 #define ABORT_REASON_ID 4 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + enum { HDMICEC2_EVENT_DEVICE_ADDED=0, HDMICEC2_EVENT_DEVICE_REMOVED, @@ -92,9 +96,23 @@ static bool isLGTvConnected = false; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(HdmiCec_2, 1, 0); + SERVICE_REGISTRATION(HdmiCec_2, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); HdmiCec_2* HdmiCec_2::_instance = nullptr; static int libcecInitStatus = 0; diff --git a/HdmiCec_2/HdmiCec_2Plugin.json b/HdmiCec_2/HdmiCec_2Plugin.json index f2856e66f3..2cf4417a78 100644 --- a/HdmiCec_2/HdmiCec_2Plugin.json +++ b/HdmiCec_2/HdmiCec_2Plugin.json @@ -5,10 +5,9 @@ "callsign": "org.rdk.HdmiCec_2", "locator": "libWPEFrameworkHdmiCec_2.so", "status": "production", - "description": "The `HdmiCec_2` plugin allows you to configure HDMI Consumer Electronics Control (CEC) on a set-top device. The HdmiCec_2 plugin is meant to be used on the source devices where an application relies on the Thunder plugin to handle protocol related messaging. The plugin also provides API's and events to implement the CEC use cases.", - "version": "1.0" + "description": "The `HdmiCec_2` plugin allows you to configure HDMI Consumer Electronics Control (CEC) on a set-top device. The HdmiCec_2 plugin is meant to be used on the source devices where an application relies on the Thunder plugin to handle protocol related messaging. The plugin also provides API's and events to implement the CEC use cases." }, "interface": { "$ref": "HdmiCec_2.json#" } -} \ No newline at end of file +} diff --git a/HdmiInput/CHANGELOG.md b/HdmiInput/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/HdmiInput/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/HdmiInput/HdmiInput.cpp b/HdmiInput/HdmiInput.cpp index 4c076da388..6c4856cb31 100644 --- a/HdmiInput/HdmiInput.cpp +++ b/HdmiInput/HdmiInput.cpp @@ -52,13 +52,31 @@ #define HDMIINPUT_EVENT_ON_VIDEO_MODE_UPDATED "videoStreamInfoUpdate" #define HDMIINPUT_EVENT_ON_GAME_FEATURE_STATUS_CHANGED "hdmiGameFeatureStatusUpdate" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(HdmiInput, 1, 0); + SERVICE_REGISTRATION(HdmiInput, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); HdmiInput* HdmiInput::_instance = nullptr; diff --git a/HdmiInput/HdmiInputPlugin.json b/HdmiInput/HdmiInputPlugin.json index d7ef04fc38..e416197bba 100644 --- a/HdmiInput/HdmiInputPlugin.json +++ b/HdmiInput/HdmiInputPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.HdmiInput", "locator": "libWPEFrameworkHdmiInput.so", "status": "production", - "description": "The `HdmiInput` plugin allows you to control the HDMI Input on a set-top box.", - "version": "2.0" + "description": "The `HdmiInput` plugin allows you to control the HDMI Input on a set-top box." }, "interface": { "$ref": "HdmiInput.json#" diff --git a/LinearPlaybackControl/LinearPlaybackControl.cpp b/LinearPlaybackControl/LinearPlaybackControl.cpp index 0b3792105c..9b9cd589a3 100644 --- a/LinearPlaybackControl/LinearPlaybackControl.cpp +++ b/LinearPlaybackControl/LinearPlaybackControl.cpp @@ -21,7 +21,26 @@ #include "DemuxerStreamFsFCC.h" #include "LinearConfig.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { SERVICE_REGISTRATION(LinearPlaybackControl, 1, 0); diff --git a/LocationSync/CHANGELOG.md b/LocationSync/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/LocationSync/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/LocationSync/LocationService.cpp b/LocationSync/LocationService.cpp index e549e6a86f..68e05d9e4d 100644 --- a/LocationSync/LocationService.cpp +++ b/LocationSync/LocationService.cpp @@ -20,6 +20,7 @@ #include "LocationService.h" namespace WPEFramework { + namespace Plugin { struct IGeography { diff --git a/LocationSync/LocationSync.cpp b/LocationSync/LocationSync.cpp index 7ed0e0c166..7acedc6ec9 100644 --- a/LocationSync/LocationSync.cpp +++ b/LocationSync/LocationSync.cpp @@ -19,10 +19,14 @@ #include "LocationSync.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { namespace Plugin { - SERVICE_REGISTRATION(LocationSync, 1, 0); + SERVICE_REGISTRATION(LocationSync, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType responseFactory(4); static Core::ProxyPoolType> jsonResponseFactory(4); diff --git a/LocationSync/LocationSyncPlugin.json b/LocationSync/LocationSyncPlugin.json index aa4825f087..0ea0024f78 100644 --- a/LocationSync/LocationSyncPlugin.json +++ b/LocationSync/LocationSyncPlugin.json @@ -5,8 +5,7 @@ "callsign": "LocationSync", "locator": "libWPELocationSync.so", "status": "production", - "description": "The `LocationSync` plugin provides geo-location functionality.", - "version": "1.0" + "description": "The `LocationSync` plugin provides geo-location functionality." }, "configuration": { "type": "object", diff --git a/LoggingPreferences/CHANGELOG.md b/LoggingPreferences/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/LoggingPreferences/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/LoggingPreferences/LoggingPreferences.cpp b/LoggingPreferences/LoggingPreferences.cpp index e34847f019..d1dfcaf7cb 100644 --- a/LoggingPreferences/LoggingPreferences.cpp +++ b/LoggingPreferences/LoggingPreferences.cpp @@ -22,13 +22,31 @@ #include "UtilsIarm.h" #include +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(LoggingPreferences, 1, 0); + SERVICE_REGISTRATION(LoggingPreferences, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); LoggingPreferences* LoggingPreferences::_instance = nullptr; diff --git a/LoggingPreferences/LoggingPreferencesPlugin.json b/LoggingPreferences/LoggingPreferencesPlugin.json index f54be963d0..780acf8de8 100644 --- a/LoggingPreferences/LoggingPreferencesPlugin.json +++ b/LoggingPreferences/LoggingPreferencesPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.LoggingPreferences", "locator": "libWPEFrameworkLoggingPreferences.so", "status": "production", - "description": "The `LoggingPreferences` plugin allows you to control key press logging on a set-top box.", - "version": "1.0" + "description": "The `LoggingPreferences` plugin allows you to control key press logging on a set-top box." }, "interface": { "$ref": "LoggingPreferences.json#" diff --git a/MaintenanceManager/CHANGELOG.md b/MaintenanceManager/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/MaintenanceManager/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/MaintenanceManager/MaintenanceManager.cpp b/MaintenanceManager/MaintenanceManager.cpp index c56e606212..5c0f1193e2 100644 --- a/MaintenanceManager/MaintenanceManager.cpp +++ b/MaintenanceManager/MaintenanceManager.cpp @@ -67,6 +67,7 @@ using namespace std; #define API_VERSION_NUMBER_MAJOR 1 #define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 #define SERVER_DETAILS "127.0.0.1:9998" @@ -167,9 +168,24 @@ string moduleStatusToString(IARM_Maint_module_status_t &status) * @brief WPEFramework class for Maintenance Manager */ namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { //Prototypes - SERVICE_REGISTRATION(MaintenanceManager,API_VERSION_NUMBER_MAJOR,API_VERSION_NUMBER_MINOR); + SERVICE_REGISTRATION(MaintenanceManager, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); /* Global time variable */ MaintenanceManager* MaintenanceManager::_instance = nullptr; diff --git a/MaintenanceManager/MaintenanceManagerPlugin.json b/MaintenanceManager/MaintenanceManagerPlugin.json index 9ca0d5edac..454f5c5625 100644 --- a/MaintenanceManager/MaintenanceManagerPlugin.json +++ b/MaintenanceManager/MaintenanceManagerPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.MaintenanceManager", "locator": "libWPEFrameworkMaintenanceManager.so", "status": "production", - "description": "The `MaintenanceManager` plugin allows you to control and monitor maintenance activities on set-top devices.", - "version": "1.0" + "description": "The `MaintenanceManager` plugin allows you to control and monitor maintenance activities on set-top devices." }, "interface": { "$ref": "MaintenanceManager.json#" diff --git a/Messenger/CHANGELOG.md b/Messenger/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Messenger/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Messenger/Messenger.cpp b/Messenger/Messenger.cpp index 62cc7a70d9..8309a4f644 100644 --- a/Messenger/Messenger.cpp +++ b/Messenger/Messenger.cpp @@ -21,11 +21,29 @@ #include "Messenger.h" #include "cryptalgo/Hash.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(Messenger, 1, 0); + SERVICE_REGISTRATION(Messenger, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); // IPlugin methods diff --git a/Messenger/MessengerPlugin.json b/Messenger/MessengerPlugin.json index a613371f3f..d6ce44b8f5 100644 --- a/Messenger/MessengerPlugin.json +++ b/Messenger/MessengerPlugin.json @@ -1,8 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/rdkcentral/rdkservices/main/Tools/json_generator/schemas/plugin.schema.json", "info": { - "title": "Messenger Plugin", - "version": "1.0", + "title": "Messenger Plugin" "callsign": "Messenger", "locator": "libWPEFrameworkMessenger.so", "status": "alpha", diff --git a/Monitor/CHANGELOG.md b/Monitor/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Monitor/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Monitor/Monitor.cpp b/Monitor/Monitor.cpp index f9402af725..863e3f0633 100644 --- a/Monitor/Monitor.cpp +++ b/Monitor/Monitor.cpp @@ -19,10 +19,29 @@ #include "Monitor.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(Monitor, 1, 0); + SERVICE_REGISTRATION(Monitor, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType>> jsonBodyDataFactory(2); static Core::ProxyPoolType> jsonBodyParamFactory(2); diff --git a/Monitor/MonitorPlugin.json b/Monitor/MonitorPlugin.json index 7538cf7692..4e22bf8ff7 100644 --- a/Monitor/MonitorPlugin.json +++ b/Monitor/MonitorPlugin.json @@ -5,8 +5,7 @@ "callsign": "Monitor", "locator": "libWPEFrameworkMonitor.so", "status": "production", - "description": "The `Monitor` plugin provides a watchdog-like functionality for framework processes", - "version": "1.0" + "description": "The `Monitor` plugin provides a watchdog-like functionality for framework processes" }, "interface": { "$ref": "Monitor.json#" diff --git a/MotionDetection/CHANGELOG.md b/MotionDetection/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/MotionDetection/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/MotionDetection/MotionDetection.cpp b/MotionDetection/MotionDetection.cpp index 7318533411..6922e910d7 100644 --- a/MotionDetection/MotionDetection.cpp +++ b/MotionDetection/MotionDetection.cpp @@ -28,13 +28,31 @@ #define NO_DETECTORS_FOUND "0" #define MOTION_DETECTOR_INDEX "FP_MD" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(MotionDetection, 1, 0); + SERVICE_REGISTRATION(MotionDetection, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); MotionDetection* MotionDetection::_instance = nullptr; diff --git a/MotionDetection/MotionDetectionPlugin.json b/MotionDetection/MotionDetectionPlugin.json index 8b90e66a74..59ee1f9f1c 100644 --- a/MotionDetection/MotionDetectionPlugin.json +++ b/MotionDetection/MotionDetectionPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.MotionDetection", "locator": "libWPEFrameworkMotionDetection.so", "status": "production", - "description": "The `MotionDetection` plugin allows you to control the motion sensors that are available on a set-top box.", - "version": "1.0" + "description": "The `MotionDetection` plugin allows you to control the motion sensors that are available on a set-top box." }, "interface": { "$ref": "MotionDetection.json#" diff --git a/Network/CHANGELOG.md b/Network/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Network/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Network/Network.cpp b/Network/Network.cpp index 31e6c46974..7d27576a18 100644 --- a/Network/Network.cpp +++ b/Network/Network.cpp @@ -32,8 +32,9 @@ using namespace std; #define DEFAULT_PING_PACKETS 15 #define CIDR_NETMASK_IP_LEN 32 -const short WPEFramework::Plugin::Network::API_VERSION_NUMBER_MAJOR = 2; -const short WPEFramework::Plugin::Network::API_VERSION_NUMBER_MINOR = 0; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 /* Netsrvmgr Based Macros & Structures */ #define IARM_BUS_NM_SRV_MGR_NAME "NET_SRV_MGR" @@ -129,9 +130,24 @@ typedef struct namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(Network, Network::API_VERSION_NUMBER_MAJOR, Network::API_VERSION_NUMBER_MINOR); + SERVICE_REGISTRATION(Network, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); Network* Network::_instance = nullptr; Network::Network() diff --git a/Network/Network.h b/Network/Network.h index 25162a0b2f..4d1ccb284b 100644 --- a/Network/Network.h +++ b/Network/Network.h @@ -164,8 +164,6 @@ namespace WPEFramework { public: static Network *_instance; static Network *getInstance() {return _instance;} - static const short API_VERSION_NUMBER_MINOR; - static const short API_VERSION_NUMBER_MAJOR; private: NetUtils m_netUtils; diff --git a/Network/NetworkPlugin.json b/Network/NetworkPlugin.json index ee83e97708..29a85ffeb7 100644 --- a/Network/NetworkPlugin.json +++ b/Network/NetworkPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Network", "locator": "libWPEFrameworkNetwork.so", "status": "production", - "description": "The `Network` plugin allows you to manage network interfaces on a set-top box.", - "version": "1.0" + "description": "The `Network` plugin allows you to manage network interfaces on a set-top box." }, "interface": { "$ref": "Network.json#" diff --git a/OCIContainer/CHANGELOG.md b/OCIContainer/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/OCIContainer/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/OCIContainer/OCIContainer.cpp b/OCIContainer/OCIContainer.cpp index 66016ec95a..ec275ab943 100644 --- a/OCIContainer/OCIContainer.cpp +++ b/OCIContainer/OCIContainer.cpp @@ -5,17 +5,34 @@ #include "UtilsJsonRpc.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { namespace WPEC = WPEFramework::Core; namespace WPEJ = WPEFramework::Core::JSON; -SERVICE_REGISTRATION(OCIContainer, 1, 0); +SERVICE_REGISTRATION(OCIContainer, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); OCIContainer::OCIContainer() : PluginHost::JSONRPC() diff --git a/OCIContainer/OCIContainerPlugin.json b/OCIContainer/OCIContainerPlugin.json index 3f4d43248e..9fd5512780 100644 --- a/OCIContainer/OCIContainerPlugin.json +++ b/OCIContainer/OCIContainerPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.OCIContainer", "locator": "libWPEFrameworkOCIContainer.so", "status": "production", - "description": "The `OCIContainer` plugin allows for control of OCI containers using the Dobby hypervisor", - "version": "1.0" + "description": "The `OCIContainer` plugin allows for control of OCI containers using the Dobby hypervisor" }, "interface": { "$ref": "OCIContainer.json#" diff --git a/OpenCDMi/CHANGELOG.md b/OpenCDMi/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/OpenCDMi/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/OpenCDMi/FrameworkRPC.cpp b/OpenCDMi/FrameworkRPC.cpp index 7b39467064..37a28d37d4 100644 --- a/OpenCDMi/FrameworkRPC.cpp +++ b/OpenCDMi/FrameworkRPC.cpp @@ -1353,7 +1353,7 @@ namespace Plugin { } } - private: + public: // ------------------------------------------------------------------------------------------------------------- // IDecryption methods // ------------------------------------------------------------------------------------------------------------- diff --git a/OpenCDMi/OCDM.cpp b/OpenCDMi/OCDM.cpp index aec5bbb5f7..e365e9b675 100644 --- a/OpenCDMi/OCDM.cpp +++ b/OpenCDMi/OCDM.cpp @@ -20,8 +20,26 @@ #include "OCDM.h" #include +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace OCDM { Exchange::IMemory* MemoryObserver(const RPC::IRemoteConnection* connection) @@ -79,7 +97,7 @@ namespace OCDM { namespace Plugin { - SERVICE_REGISTRATION(OCDM, 1, 0); + SERVICE_REGISTRATION(OCDM, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType> jsonDataFactory(1); static Core::ProxyPoolType> jsonSystemFactory(1); diff --git a/OpenCDMi/OpenCDMiPlugin.json b/OpenCDMi/OpenCDMiPlugin.json index 8fbeb3faed..316613ec8d 100644 --- a/OpenCDMi/OpenCDMiPlugin.json +++ b/OpenCDMi/OpenCDMiPlugin.json @@ -6,7 +6,6 @@ "locator": "libWPEFrameworkOCDM.so", "status": "production", "description": "The `OpenCDMi` plugin allows you view Open Content Decryption Module (OCDM) properties", - "version": "1.0" }, "configuration": { "summary": "Configuration for the OpenCDMi plugin", diff --git a/Packager/CHANGELOG.md b/Packager/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Packager/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Packager/Packager.cpp b/Packager/Packager.cpp index d6d22bbb7d..261fb53dad 100644 --- a/Packager/Packager.cpp +++ b/Packager/Packager.cpp @@ -19,7 +19,26 @@ #include "Packager.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { namespace { @@ -27,7 +46,7 @@ namespace { } - SERVICE_REGISTRATION(Packager, 1, 0); + SERVICE_REGISTRATION(Packager, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); const string Packager::Initialize(PluginHost::IShell* service) { ASSERT (_service == nullptr); diff --git a/Packager/PackagerPlugin.json b/Packager/PackagerPlugin.json index 5a168f8ea8..445cb56a7f 100644 --- a/Packager/PackagerPlugin.json +++ b/Packager/PackagerPlugin.json @@ -5,8 +5,7 @@ "callsign": "Packager", "locator": "libWPEFrameworkPackager.so", "status": "alpha", - "description": "The `Packager` plugin allows installation of OPKG, IPKG, and DEB packages to the system from a remote repository.", - "version": "1.0" + "description": "The `Packager` plugin allows installation of OPKG, IPKG, and DEB packages to the system from a remote repository." }, "interface": { "$ref": "Packager.json#" diff --git a/PersistentStore/CHANGELOG.md b/PersistentStore/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/PersistentStore/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/PersistentStore/PersistentStore.cpp b/PersistentStore/PersistentStore.cpp index ad5653dc2d..ea685da781 100644 --- a/PersistentStore/PersistentStore.cpp +++ b/PersistentStore/PersistentStore.cpp @@ -23,10 +23,29 @@ #include "UtilsFile.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { -SERVICE_REGISTRATION(PersistentStore, 1, 0); +SERVICE_REGISTRATION(PersistentStore, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); PersistentStore::PersistentStore() : PluginHost::JSONRPC(), diff --git a/PersistentStore/PersistentStorePlugin.json b/PersistentStore/PersistentStorePlugin.json index 7271ebb934..47f0ef84a7 100644 --- a/PersistentStore/PersistentStorePlugin.json +++ b/PersistentStore/PersistentStorePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.PersistentStore", "locator": "libWPEFrameworkPersistentStore.so", "status": "production", - "description": "The `PersistentStore` plugin allows you to persist key/value pairs by namespace", - "version": "1.0" + "description": "The `PersistentStore` plugin allows you to persist key/value pairs by namespace" }, "interface": { "$ref": "PersistentStore.json#" diff --git a/PlayerInfo/CHANGELOG.md b/PlayerInfo/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/PlayerInfo/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/PlayerInfo/PlayerInfo.cpp b/PlayerInfo/PlayerInfo.cpp index ea813ced91..476c0ec165 100644 --- a/PlayerInfo/PlayerInfo.cpp +++ b/PlayerInfo/PlayerInfo.cpp @@ -19,11 +19,29 @@ #include "PlayerInfo.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(PlayerInfo, 1, 0); + SERVICE_REGISTRATION(PlayerInfo, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType responseFactory(4); static Core::ProxyPoolType> jsonResponseFactory(4); diff --git a/PlayerInfo/PlayerInfo.h b/PlayerInfo/PlayerInfo.h index e0a6bdf93d..6bb846a296 100644 --- a/PlayerInfo/PlayerInfo.h +++ b/PlayerInfo/PlayerInfo.h @@ -93,7 +93,7 @@ namespace Plugin { _client = nullptr; } } - void AudioModeChanged(const Exchange::Dolby::IOutput::SoundModes mode, bool enabled) override + void AudioModeChanged(Exchange::Dolby::IOutput::SoundModes mode, bool enabled) override { Exchange::Dolby::JOutput::Event::AudioModeChanged(_parent, mode, enabled); } diff --git a/PlayerInfo/PlayerInfoPlugin.json b/PlayerInfo/PlayerInfoPlugin.json index 196966d79a..758d83d9af 100644 --- a/PlayerInfo/PlayerInfoPlugin.json +++ b/PlayerInfo/PlayerInfoPlugin.json @@ -5,8 +5,7 @@ "callsign": "PlayerInfo", "locator": "libWPEPlayerInfo.so", "status": "beta", - "description": "The `PlayerInfo` plugin helps to get system supported audio and video codecs", - "version": "1.0" + "description": "The `PlayerInfo` plugin helps to get system supported audio and video codecs" }, "interface": { "$ref": "PlayerInfo.json#" diff --git a/RDKShell/CHANGELOG.md b/RDKShell/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/RDKShell/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/RDKShell/RDKShell.cpp b/RDKShell/RDKShell.cpp index db68fe8636..99608c6818 100755 --- a/RDKShell/RDKShell.cpp +++ b/RDKShell/RDKShell.cpp @@ -50,8 +50,10 @@ #endif //RDKSHELL_READ_MAC_ON_STARTUP -const short WPEFramework::Plugin::RDKShell::API_VERSION_NUMBER_MAJOR = 1; -const short WPEFramework::Plugin::RDKShell::API_VERSION_NUMBER_MINOR = 0; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + const string WPEFramework::Plugin::RDKShell::SERVICE_NAME = "org.rdk.RDKShell"; //methods const string WPEFramework::Plugin::RDKShell::RDKSHELL_METHOD_MOVE_TO_FRONT = "moveToFront"; @@ -230,6 +232,21 @@ enum AppLastExitReason FactoryAppLaunchStatus sFactoryAppLaunchStatus = NOTLAUNCHED; namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { @@ -422,7 +439,7 @@ namespace WPEFramework { return flag; } - SERVICE_REGISTRATION(RDKShell, 1, 0); + SERVICE_REGISTRATION(RDKShell, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); RDKShell* RDKShell::_instance = nullptr; std::mutex gRdkShellMutex; diff --git a/RDKShell/RDKShell.h b/RDKShell/RDKShell.h index 7b410471f4..a232efeb7e 100755 --- a/RDKShell/RDKShell.h +++ b/RDKShell/RDKShell.h @@ -55,8 +55,6 @@ namespace WPEFramework { static RDKShell* _instance; public /*constants*/: - static const short API_VERSION_NUMBER_MAJOR; - static const short API_VERSION_NUMBER_MINOR; static const string SERVICE_NAME; //methods static const string RDKSHELL_METHOD_MOVE_TO_FRONT; diff --git a/RDKShell/RDKShellPlugin.json b/RDKShell/RDKShellPlugin.json index 4a95fb54e8..d8dbcefcff 100644 --- a/RDKShell/RDKShellPlugin.json +++ b/RDKShell/RDKShellPlugin.json @@ -6,7 +6,6 @@ "locator": "libWPEFrameworkRDKShell.so", "status": "production", "description": "The `RDKShell` plugin controls the management of composition, layout, Z order, and key handling.", - "version": "2.0" }, "interface": { "$ref": "RDKShell.json#" diff --git a/README.md b/README.md index 6075b31952..ed9450b85e 100644 --- a/README.md +++ b/README.md @@ -198,11 +198,34 @@ For a plugin specific question, maintainers might refer you to the plugin owner( 6. Versioning - * RDK Service version in MAJOR.MINOR format is reflected in `MyServicePlugin.json`. Increment the MAJOR version when you make incompatible API changes, or MINOR version when you add functionality in a backwards compatible manner. + * Given a version number MAJOR.MINOR.PATCH, increment the: + * MAJOR version when you make incompatible API changes (vhanges that break backward compatibility like removing APIs), + * MINOR version when you add backward compatible new features like adding new APIs, adding new parameters to existing APIs, + * PATCH version when you make backwards compatible bug fixes. - * API version (1, 2, etc) is not the same as the plugin version. The API version should remain at 1 for all practical purposes. + * RDK Service version in MAJOR.MINOR.PATCH format is reflected in `MyServicePlugin.json`. -7. Initialization and Cleanup + * Changes in version should be updated when commits are added to the main branch. + + * For more info visit: https://keepachangelog.com/en/1.0.0/ + +7. Changelog + + * Each RDK Service has a CHANGELOG file that contains all changes done so far: + + * Please Add entry in the CHANGELOG for each version change and indicate the type of change with these labels: + * Added for new features. + * Changed for changes in existing functionality. + * Deprecated for soon-to-be removed features. + * Removed for now removed features. + * Fixed for any bug fixes. + * Security in case of vulnerabilities. + + * Changes in CHANGELOG should be updated when commits are added to the main branch. + + * For more info visit: https://semver.org/spec/v2.0.0.html + +8. Initialization and Cleanup * Prefer to do Plugin Initialization within IPlugin [Initialize()](https://github.com/rdkcentral/Thunder/blob/master/Source/plugins/IPlugin.h#L71). If there is any error in initialization return non-empty string with useful error information. This will ensure that plugin doesn't get activated and also return this error information to the caller. Ensure that any Initialization done within Initialize() gets cleaned up within IPlugin [Deinitialize()](https://github.com/rdkcentral/Thunder/blob/master/Source/plugins/IPlugin.h#L80) which gets called when the plugin is deactivated. diff --git a/RemoteActionMapping/CHANGELOG.md b/RemoteActionMapping/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/RemoteActionMapping/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/RemoteActionMapping/RemoteActionMapping.cpp b/RemoteActionMapping/RemoteActionMapping.cpp index ea818a9040..e794828f85 100644 --- a/RemoteActionMapping/RemoteActionMapping.cpp +++ b/RemoteActionMapping/RemoteActionMapping.cpp @@ -75,13 +75,31 @@ const int supported_irrfdb_slots_size = sizeof(supported_irrfdb_slots) / sizeof( param = parameters[paramName].Array();\ } +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(RemoteActionMapping, 1, 0); + SERVICE_REGISTRATION(RemoteActionMapping, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); RemoteActionMapping* RemoteActionMapping::_instance = nullptr; diff --git a/RemoteActionMapping/RemoteActionMappingPlugin.json b/RemoteActionMapping/RemoteActionMappingPlugin.json index b644d6b8d2..bf084c9fdd 100644 --- a/RemoteActionMapping/RemoteActionMappingPlugin.json +++ b/RemoteActionMapping/RemoteActionMappingPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.RemoteActionMapping", "locator": "libWPEFrameworkRemoteActionMapping.so", "status": "production", - "description": "The `RemoteActionMapping` plugin controls and maps remote controllers.", - "version": "1.0" + "description": "The `RemoteActionMapping` plugin controls and maps remote controllers." }, "interface": { "$ref": "RemoteActionMapping.json#" diff --git a/ScreenCapture/CHANGELOG.md b/ScreenCapture/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/ScreenCapture/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/ScreenCapture/ScreenCapture.cpp b/ScreenCapture/ScreenCapture.cpp index eeba6a2e4e..f86a235db9 100644 --- a/ScreenCapture/ScreenCapture.cpp +++ b/ScreenCapture/ScreenCapture.cpp @@ -43,11 +43,30 @@ extern "C" { // Events #define EVT_UPLOAD_COMPLETE "uploadComplete" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(ScreenCapture, 1, 0); + SERVICE_REGISTRATION(ScreenCapture, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); ScreenCapture::ScreenCapture() : PluginHost::JSONRPC() diff --git a/ScreenCapture/ScreenCapturePlugin.json b/ScreenCapture/ScreenCapturePlugin.json index acc8ee338f..b8180a9dad 100644 --- a/ScreenCapture/ScreenCapturePlugin.json +++ b/ScreenCapture/ScreenCapturePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.ScreenCapture", "locator": "libWPEFrameworkScreenCapture.so", "status": "production", - "description": "The `ScreenCapture` plugin is used to upload screen captures.", - "version": "1.0" + "description": "The `ScreenCapture` plugin is used to upload screen captures." }, "interface": { "$ref": "ScreenCapture.json#" diff --git a/SecurityAgent/CHANGELOG.md b/SecurityAgent/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/SecurityAgent/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/SecurityAgent/SecurityAgent.cpp b/SecurityAgent/SecurityAgent.cpp index d88eac0d48..24b03ca1b9 100644 --- a/SecurityAgent/SecurityAgent.cpp +++ b/SecurityAgent/SecurityAgent.cpp @@ -21,10 +21,29 @@ #include "SecurityContext.h" #include "TokenFactory.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(SecurityAgent, 1, 0); + SERVICE_REGISTRATION(SecurityAgent, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static Core::ProxyPoolType textFactory(1); diff --git a/SecurityAgent/SecurityAgentPlugin.json b/SecurityAgent/SecurityAgentPlugin.json index 6e5fb5e301..116d66d9e7 100644 --- a/SecurityAgent/SecurityAgentPlugin.json +++ b/SecurityAgent/SecurityAgentPlugin.json @@ -5,8 +5,7 @@ "callsign": "SecurityAgent", "locator": "libWPEFrameworkSecurityAgent.so", "status": "production", - "description": "The `SecurityAgent` plugin is responsible for allowing or blocking access to the Thunder APIs", - "version": "1.0" + "description": "The `SecurityAgent` plugin is responsible for allowing or blocking access to the Thunder APIs" }, "configuration": { "type": "object", diff --git a/StateObserver/CHANGELOG.md b/StateObserver/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/StateObserver/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/StateObserver/StateObserver.cpp b/StateObserver/StateObserver.cpp index bfeaa31494..85d2985ea8 100644 --- a/StateObserver/StateObserver.cpp +++ b/StateObserver/StateObserver.cpp @@ -42,17 +42,32 @@ #include "UtilsJsonRpc.h" #include "UtilsIarm.h" -#define STATEOBSERVER_MAJOR_VERSION 1 -#define STATEOBSERVER_MINOR_VERSION 0 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 #define DEBUG_INFO 0 namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { /* *Register StateObserver module as wpeframework plugin **/ - SERVICE_REGISTRATION(StateObserver, STATEOBSERVER_MAJOR_VERSION, STATEOBSERVER_MINOR_VERSION); + SERVICE_REGISTRATION(StateObserver, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); StateObserver* StateObserver::_instance = nullptr; diff --git a/StateObserver/StateObserverPlugin.json b/StateObserver/StateObserverPlugin.json index 34deeddcc7..e62cab5ce3 100644 --- a/StateObserver/StateObserverPlugin.json +++ b/StateObserver/StateObserverPlugin.json @@ -5,8 +5,7 @@ "callsign": "com.comcast.StateObserver", "locator": "libWPEFrameworkStateObserver.so", "status": "production", - "description": "The `StateObserver` plugin is used to monitor property values.", - "version": "1.0" + "description": "The `StateObserver` plugin is used to monitor property values." }, "interface": { "$ref": "StateObserver.json#" diff --git a/SystemAudioPlayer/CHANGELOG.md b/SystemAudioPlayer/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/SystemAudioPlayer/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/SystemAudioPlayer/SystemAudioPlayer.cpp b/SystemAudioPlayer/SystemAudioPlayer.cpp index fbefe8f83e..937d3f5551 100644 --- a/SystemAudioPlayer/SystemAudioPlayer.cpp +++ b/SystemAudioPlayer/SystemAudioPlayer.cpp @@ -19,17 +19,33 @@ #include "SystemAudioPlayer.h" -#define SAP_MAJOR_VERSION 1 -#define SAP_MINOR_VERSION 0 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 #define API_VERSION_NUMBER 1 namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { /* *Register SystemAudioPlayer module as wpeframework plugin **/ - SERVICE_REGISTRATION(SystemAudioPlayer, SAP_MAJOR_VERSION, SAP_MINOR_VERSION); + SERVICE_REGISTRATION(SystemAudioPlayer, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); const string SystemAudioPlayer::Initialize(PluginHost::IShell* service) { diff --git a/SystemAudioPlayer/SystemAudioPlayerPlugin.json b/SystemAudioPlayer/SystemAudioPlayerPlugin.json index 83c4c39d34..27c0b5d329 100644 --- a/SystemAudioPlayer/SystemAudioPlayerPlugin.json +++ b/SystemAudioPlayer/SystemAudioPlayerPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.SystemAudioPlayer", "locator": "libWPEFrameworkSystemAudioPlayer.so", "status": "production", - "description": "The `SystemAudioPlayer` plugin provides system audio playback functionality for client applications. It supports various audio types (viz., pcm, mp3, wav) and can play them from various sources (viz., websocket, httpsrc, filesrc, data buffer). \n\n**Note**: MP3 playback development remains a work-in-progress.", - "version": "1.0" + "description": "The `SystemAudioPlayer` plugin provides system audio playback functionality for client applications. It supports various audio types (viz., pcm, mp3, wav) and can play them from various sources (viz., websocket, httpsrc, filesrc, data buffer). \n\n**Note**: MP3 playback development remains a work-in-progress." }, "interface": { "$ref": "SystemAudioPlayer.json#" diff --git a/SystemAudioPlayer/impl/AudioPlayer.cpp b/SystemAudioPlayer/impl/AudioPlayer.cpp index 3702ea4317..2c51beb3b2 100644 --- a/SystemAudioPlayer/impl/AudioPlayer.cpp +++ b/SystemAudioPlayer/impl/AudioPlayer.cpp @@ -489,10 +489,6 @@ gboolean AudioPlayer::PushDataAppSrc() } return TRUE; } -static gboolean pop_data(AudioPlayer *player) -{ - return player->PushDataAppSrc(); -} void AudioPlayer::wsConnectionStatus(WSStatus status) { diff --git a/SystemServices/CHANGELOG.md b/SystemServices/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/SystemServices/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/SystemServices/SystemPlugin.json b/SystemServices/SystemPlugin.json index 957aa97c7c..f2f9560617 100644 --- a/SystemServices/SystemPlugin.json +++ b/SystemServices/SystemPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.System", "locator": "libWPEFrameworkSystemServices.so", "status": "production", - "description": "The `System` plugin is used to manage various system-level features such as power settings and firmware updates.", - "version": "2.0" + "description": "The `System` plugin is used to manage various system-level features such as power settings and firmware updates." }, "interface": { "$ref": "System.json#" diff --git a/SystemServices/SystemServices.cpp b/SystemServices/SystemServices.cpp index c2029ad0b1..741b518c56 100644 --- a/SystemServices/SystemServices.cpp +++ b/SystemServices/SystemServices.cpp @@ -65,8 +65,9 @@ using namespace std; -#define SYSSRV_MAJOR_VERSION 1 -#define SYSSRV_MINOR_VERSION 0 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 #define MAX_REBOOT_DELAY 86400 /* 24Hr = 86400 sec */ #define TR181_FW_DELAY_REBOOT "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AutoReboot.fwDelayReboot" @@ -254,6 +255,21 @@ bool setPowerState(std::string powerState) * @brief WPEFramework class for SystemServices */ namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { //Prototypes std::string SystemServices::m_currentMode = ""; @@ -281,8 +297,7 @@ namespace WPEFramework { IARM_EventId_t eventId, void *data, size_t len); #endif /* defined(USE_IARMBUS) || defined(USE_IARM_BUS) */ - SERVICE_REGISTRATION(SystemServices, SYSSRV_MAJOR_VERSION, - SYSSRV_MINOR_VERSION); + SERVICE_REGISTRATION(SystemServices, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); SystemServices* SystemServices::_instance = nullptr; cSettings SystemServices::m_temp_settings(SYSTEM_SERVICE_TEMP_FILE); diff --git a/Telemetry/CHANGELOG.md b/Telemetry/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Telemetry/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Telemetry/Telemetry.cpp b/Telemetry/Telemetry.cpp index f929500443..a3c3a861ca 100644 --- a/Telemetry/Telemetry.cpp +++ b/Telemetry/Telemetry.cpp @@ -34,11 +34,30 @@ #define T2_PERSISTENT_FOLDER "/opt/.t2reportprofiles/" #define DEFAULT_PROFILES_FILE "/etc/t2profiles/default.json" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(Telemetry, 1, 0); + SERVICE_REGISTRATION(Telemetry, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); Telemetry* Telemetry::_instance = nullptr; diff --git a/Telemetry/TelemetryPlugin.json b/Telemetry/TelemetryPlugin.json index 7a08031cce..135d191c1d 100644 --- a/Telemetry/TelemetryPlugin.json +++ b/Telemetry/TelemetryPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Telemetry", "locator": "libWPEFrameworkTelemetry.so", "status": "production", - "description": "The `Telemetry` plugin allows you to persist event data for monitoring applications.", - "version": "1.0" + "description": "The `Telemetry` plugin allows you to persist event data for monitoring applications." }, "interface": { "$ref": "Telemetry.json#" diff --git a/Tests/mocks/ServiceMock.h b/Tests/mocks/ServiceMock.h index e4678ba67c..5b382aecb0 100644 --- a/Tests/mocks/ServiceMock.h +++ b/Tests/mocks/ServiceMock.h @@ -68,6 +68,9 @@ class ServiceMock : public WPEFramework::PluginHost::IShell::ICOMLink, public WP MOCK_METHOD(void, Unregister, (WPEFramework::RPC::IRemoteConnection::INotification*), (override)); MOCK_METHOD(WPEFramework::RPC::IRemoteConnection*, RemoteConnection, (const uint32_t), (override)); MOCK_METHOD(void*, Instantiate, (const WPEFramework::RPC::Object&, const uint32_t, uint32_t&, const string&, const string&), (override)); + MOCK_METHOD(uint8_t, Major, (), (const, override)); + MOCK_METHOD(uint8_t, Minor, (), (const, override)); + MOCK_METHOD(uint8_t, Patch, (), (const, override)); }; #endif //SERVICEMOCK_H diff --git a/TextToSpeech/CHANGELOG.md b/TextToSpeech/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/TextToSpeech/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/TextToSpeech/TextToSpeech.cpp b/TextToSpeech/TextToSpeech.cpp index c6a226c115..1fb64f642b 100644 --- a/TextToSpeech/TextToSpeech.cpp +++ b/TextToSpeech/TextToSpeech.cpp @@ -19,17 +19,33 @@ #include "TextToSpeech.h" -#define TTS_MAJOR_VERSION 1 -#define TTS_MINOR_VERSION 0 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 #define API_VERSION_NUMBER 1 namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { /* *Register TextToSpeech module as wpeframework plugin **/ - SERVICE_REGISTRATION(TextToSpeech, TTS_MAJOR_VERSION, TTS_MINOR_VERSION); + SERVICE_REGISTRATION(TextToSpeech, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); const string TextToSpeech::Initialize(PluginHost::IShell* service) { diff --git a/TextToSpeech/TextToSpeechPlugin.json b/TextToSpeech/TextToSpeechPlugin.json index a3546d5640..66bb882b4f 100644 --- a/TextToSpeech/TextToSpeechPlugin.json +++ b/TextToSpeech/TextToSpeechPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.TextToSpeech", "locator": "libWPEFrameworkTextToSpeech.so", "status": "production", - "description": "The `TextToSpeech` plugin provides TTS functionality (Voice Guidance & Speech Synthesis) for the client application.", - "version": "1.0" + "description": "The `TextToSpeech` plugin provides TTS functionality (Voice Guidance & Speech Synthesis) for the client application." }, "interface": { "$ref": "TextToSpeech.json#" diff --git a/Timer/CHANGELOG.md b/Timer/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Timer/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Timer/Timer.cpp b/Timer/Timer.cpp index e07c4e52f4..96b75ff608 100644 --- a/Timer/Timer.cpp +++ b/Timer/Timer.cpp @@ -56,11 +56,30 @@ static const char* modeStrings[] = { "WAKE" }; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(Timer, 1, 0); + SERVICE_REGISTRATION(Timer, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); Timer* Timer::_instance = nullptr; diff --git a/Timer/TimerPlugin.json b/Timer/TimerPlugin.json index 38904f5a77..ab21ba9c05 100644 --- a/Timer/TimerPlugin.json +++ b/Timer/TimerPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Timer", "locator": "libWPEFrameworkTimer.so", "status": "production", - "description": "The `Timer` plugin controls timer execution. It allows you to start, suspend, resume timers and receive timer notifications.", - "version": "1.0" + "description": "The `Timer` plugin controls timer execution. It allows you to start, suspend, resume timers and receive timer notifications." }, "interface": { "$ref": "Timer.json#" diff --git a/TraceControl/CHANGELOG.md b/TraceControl/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/TraceControl/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/TraceControl/TraceControl.cpp b/TraceControl/TraceControl.cpp index 6b031fa663..539629edbd 100644 --- a/TraceControl/TraceControl.cpp +++ b/TraceControl/TraceControl.cpp @@ -20,8 +20,26 @@ #include "TraceControl.h" #include "TraceOutput.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + ENUM_CONVERSION_BEGIN(Plugin::TraceControl::state) { Plugin::TraceControl::state::ENABLED, _TXT("enabled") }, @@ -32,7 +50,7 @@ ENUM_CONVERSION_BEGIN(Plugin::TraceControl::state) namespace Plugin { - SERVICE_REGISTRATION(TraceControl, 1, 0); + SERVICE_REGISTRATION(TraceControl, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); // Declare the local trace iterator exposing the remote interface. /* static */ TraceControl::Observer::Source::LocalIterator TraceControl::Observer::Source::_localIterator; diff --git a/TraceControl/TraceControlPlugin.json b/TraceControl/TraceControlPlugin.json index 10f0805a24..bc8a14fb91 100644 --- a/TraceControl/TraceControlPlugin.json +++ b/TraceControl/TraceControlPlugin.json @@ -5,8 +5,7 @@ "callsign": "TraceControl", "locator": "libWPEFrameworkTraceControl.so", "status": "production", - "description": "The `TraceControl` plugin provides ability to disable/enable trace output and set its verbosity level.", - "version": "1.0" + "description": "The `TraceControl` plugin provides ability to disable/enable trace output and set its verbosity level." }, "configuration": { "type": "object", diff --git a/UsbAccess/CHANGELOG.md b/UsbAccess/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/UsbAccess/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/UsbAccess/UsbAccess.cpp b/UsbAccess/UsbAccess.cpp index cb47662420..632d709f07 100644 --- a/UsbAccess/UsbAccess.cpp +++ b/UsbAccess/UsbAccess.cpp @@ -14,8 +14,9 @@ #include "UtilsJsonRpc.h" #include "UtilsIarm.h" -const short WPEFramework::Plugin::UsbAccess::API_VERSION_NUMBER_MAJOR = 2; -const short WPEFramework::Plugin::UsbAccess::API_VERSION_NUMBER_MINOR = 0; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 const string WPEFramework::Plugin::UsbAccess::SERVICE_NAME = "org.rdk.UsbAccess"; const string WPEFramework::Plugin::UsbAccess::METHOD_GET_FILE_LIST = "getFileList"; const string WPEFramework::Plugin::UsbAccess::METHOD_CREATE_LINK = "createLink"; @@ -43,6 +44,21 @@ const WPEFramework::Plugin::UsbAccess::ArchiveLogsErrorMap WPEFramework::Plugin: }; namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { namespace { @@ -112,7 +128,7 @@ namespace Plugin { } } - SERVICE_REGISTRATION(UsbAccess, UsbAccess::API_VERSION_NUMBER_MAJOR, UsbAccess::API_VERSION_NUMBER_MINOR); + SERVICE_REGISTRATION(UsbAccess, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); UsbAccess* UsbAccess::_instance = nullptr; diff --git a/UsbAccess/UsbAccess.h b/UsbAccess/UsbAccess.h index e08061cdc1..721d120a89 100644 --- a/UsbAccess/UsbAccess.h +++ b/UsbAccess/UsbAccess.h @@ -26,8 +26,6 @@ namespace Plugin { static UsbAccess* _instance; public /*constants*/: - static const short API_VERSION_NUMBER_MAJOR; - static const short API_VERSION_NUMBER_MINOR; static const string SERVICE_NAME; //methods static const string METHOD_GET_FILE_LIST; diff --git a/UsbAccess/UsbAccessPlugin.json b/UsbAccess/UsbAccessPlugin.json index 3a45a4007a..2820b76350 100644 --- a/UsbAccess/UsbAccessPlugin.json +++ b/UsbAccess/UsbAccessPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.UsbAccess", "locator": "libWPEFrameworkUsbAccess.so", "status": "production", - "description": "The `UsbAccess` plugin provides the ability to examine the contents on a USB drive and access the content through HTTP URLs.", - "version": "1.0" + "description": "The `UsbAccess` plugin provides the ability to examine the contents on a USB drive and access the content through HTTP URLs." }, "interface": { "$ref": "UsbAccess.json#" diff --git a/UserPreferences/CHANGELOG.md b/UserPreferences/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/UserPreferences/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/UserPreferences/UserPreferences.cpp b/UserPreferences/UserPreferences.cpp index 5351020b09..fa1fc0452d 100644 --- a/UserPreferences/UserPreferences.cpp +++ b/UserPreferences/UserPreferences.cpp @@ -27,13 +27,31 @@ #define SETTINGS_FILE_KEY "ui_language" #define SETTINGS_FILE_GROUP "General" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(UserPreferences, 1, 0); + SERVICE_REGISTRATION(UserPreferences, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); UserPreferences* UserPreferences::_instance = nullptr; diff --git a/UserPreferences/UserPreferencesPlugin.json b/UserPreferences/UserPreferencesPlugin.json index ea00bef1df..1ddc11156c 100644 --- a/UserPreferences/UserPreferencesPlugin.json +++ b/UserPreferences/UserPreferencesPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.UserPreferences", "locator": "libWPEFrameworkUserPreferences.so", "status": "production", - "description": "The `UserPreferences` plugin controls user preference settings on a set-top device.", - "version": "1.0" + "description": "The `UserPreferences` plugin controls user preference settings on a set-top device." }, "interface": { "$ref": "UserPreferences.json#" diff --git a/VoiceControl/CHANGELOG.md b/VoiceControl/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/VoiceControl/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/VoiceControl/VoiceControl.cpp b/VoiceControl/VoiceControl.cpp index 051aa3be9f..2f81ae3e9d 100644 --- a/VoiceControl/VoiceControl.cpp +++ b/VoiceControl/VoiceControl.cpp @@ -5,14 +5,31 @@ #include "UtilsJsonRpc.h" #include "UtilsIarm.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 using namespace std; namespace WPEFramework { + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(VoiceControl, 1, 0); + SERVICE_REGISTRATION(VoiceControl, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); VoiceControl* VoiceControl::_instance = nullptr; diff --git a/VoiceControl/VoiceControlPlugin.json b/VoiceControl/VoiceControlPlugin.json index 381500e58b..be89895682 100644 --- a/VoiceControl/VoiceControlPlugin.json +++ b/VoiceControl/VoiceControlPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.VoiceControl", "locator": "libWPEFrameworkVoiceControl.so", "status": "production", - "description": "The `VoiceControl` plugin manages voice control sessions.", - "version": "1.0" + "description": "The `VoiceControl` plugin manages voice control sessions." }, "interface": { "$ref": "VoiceControl.json#" diff --git a/Warehouse/CHANGELOG.md b/Warehouse/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/Warehouse/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/Warehouse/Warehouse.cpp b/Warehouse/Warehouse.cpp index a985ec1686..8e4d446c34 100644 --- a/Warehouse/Warehouse.cpp +++ b/Warehouse/Warehouse.cpp @@ -79,6 +79,10 @@ #define FRONT_PANEL_FAILED 3 #define FRONT_PANEL_INTERVAL 5000 +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace Utils { std::string formatIARMResult(IARM_Result_t result) { @@ -114,9 +118,24 @@ bool isFileExistsAndOlderThen(const char* pFileName, long age = -1) namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(Warehouse, 2, 0); + SERVICE_REGISTRATION(Warehouse, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); Warehouse* Warehouse::_instance = nullptr; Warehouse::Warehouse() : PluginHost::JSONRPC() @@ -167,7 +186,7 @@ namespace WPEFramework void Warehouse::InitializeIARM() { - if (Utils::IARM::init()) { + if (Utils::IARM::init()) { IARM_Result_t res; IARM_CHECK( IARM_Bus_RegisterEventHandler(IARM_BUS_PWRMGR_NAME, IARM_BUS_PWRMGR_EVENT_WAREHOUSEOPS_STATUSCHANGED, dsWareHouseOpnStatusChanged) ); } @@ -1001,5 +1020,6 @@ namespace WPEFramework } } + } // namespace Plugin } // namespace WPEFramework diff --git a/Warehouse/WarehousePlugin.json b/Warehouse/WarehousePlugin.json index 3d28d7ee6c..e4c342a4a7 100644 --- a/Warehouse/WarehousePlugin.json +++ b/Warehouse/WarehousePlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Warehouse", "locator": "libWPEFrameworkWarehouse.so", "status": "production", - "description": "The `Warehouse` plugin performs various types of resets (data, warehouse, etc.).", - "version": "2.0" + "description": "The `Warehouse` plugin performs various types of resets (data, warehouse, etc.)." }, "interface": { "$ref": "Warehouse.json#" diff --git a/WebBridge/CHANGELOG.md b/WebBridge/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/WebBridge/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/WebBridge/WebBridge.cpp b/WebBridge/WebBridge.cpp index 7665400893..65e11e6145 100644 --- a/WebBridge/WebBridge.cpp +++ b/WebBridge/WebBridge.cpp @@ -19,10 +19,29 @@ #include "WebBridge.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { + +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(WebBridge, 1, 0); + SERVICE_REGISTRATION(WebBridge, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); class EXTERNAL Registration : public Core::JSON::Container { private: diff --git a/WebKitBrowser/CHANGELOG.md b/WebKitBrowser/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/WebKitBrowser/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/WebKitBrowser/WebKitBrowser.cpp b/WebKitBrowser/WebKitBrowser.cpp index 7c6cf95f82..df96842078 100644 --- a/WebKitBrowser/WebKitBrowser.cpp +++ b/WebKitBrowser/WebKitBrowser.cpp @@ -19,11 +19,29 @@ #include "WebKitBrowser.h" +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 + namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { - SERVICE_REGISTRATION(WebKitBrowser, 1, 0); + SERVICE_REGISTRATION(WebKitBrowser, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); /* virtual */ const string WebKitBrowser::Initialize(PluginHost::IShell* service) { diff --git a/WebKitBrowser/WebKitBrowserPlugin.json b/WebKitBrowser/WebKitBrowserPlugin.json index 82bfa585a9..7322539e29 100644 --- a/WebKitBrowser/WebKitBrowserPlugin.json +++ b/WebKitBrowser/WebKitBrowserPlugin.json @@ -5,8 +5,7 @@ "callsign": "WebKitBrowser", "locator": "libWPEFrameworkWebKitBrowser.so", "status": "production", - "description": "The `WebKitBrowser` plugin provides web browsing functionality based on the WebKit engine.", - "version": "1.0" + "description": "The `WebKitBrowser` plugin provides web browsing functionality based on the WebKit engine." }, "configuration": { "type": "object", diff --git a/WifiManager/CHANGELOG.md b/WifiManager/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/WifiManager/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/WifiManager/WifiManager.cpp b/WifiManager/WifiManager.cpp index d1980b8060..02d87d3cfa 100644 --- a/WifiManager/WifiManager.cpp +++ b/WifiManager/WifiManager.cpp @@ -26,8 +26,9 @@ #include "libIBus.h" -const short WPEFramework::Plugin::WifiManager::API_VERSION_NUMBER_MAJOR = 2; -const short WPEFramework::Plugin::WifiManager::API_VERSION_NUMBER_MINOR = 0; +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 namespace { using WPEFramework::Plugin::WifiManager; @@ -59,9 +60,24 @@ namespace { namespace WPEFramework { + + namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); + } + namespace Plugin { - SERVICE_REGISTRATION(WifiManager, WifiManager::API_VERSION_NUMBER_MAJOR, WifiManager::API_VERSION_NUMBER_MINOR); + SERVICE_REGISTRATION(WifiManager, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); WifiManager::WifiManager() : PluginHost::JSONRPC(), diff --git a/WifiManager/WifiManager.h b/WifiManager/WifiManager.h index 6cd43be4e1..2fb3186a54 100644 --- a/WifiManager/WifiManager.h +++ b/WifiManager/WifiManager.h @@ -51,9 +51,6 @@ namespace WPEFramework { WifiManager(const WifiManager&) = delete; WifiManager& operator=(const WifiManager&) = delete; - static const short API_VERSION_NUMBER_MAJOR; - static const short API_VERSION_NUMBER_MINOR; - //Begin methods virtual uint32_t getQuirks(const JsonObject& parameters, JsonObject& response) const override; virtual uint32_t getCurrentState(const JsonObject& parameters, JsonObject& response) override; diff --git a/WifiManager/WifiPlugin.json b/WifiManager/WifiPlugin.json index 93db104c19..986e1218f8 100644 --- a/WifiManager/WifiPlugin.json +++ b/WifiManager/WifiPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Wifi", "locator": "libWPEFrameworkWifiManager.so", "status": "production", - "description": "The `Wifi` plugin is used to manage Wifi network connections on a set-top device.", - "version": "1.0" + "description": "The `Wifi` plugin is used to manage Wifi network connections on a set-top device." }, "interface": { "$ref": "Wifi.json#" diff --git a/XCast/CHANGELOG.md b/XCast/CHANGELOG.md new file mode 100644 index 0000000000..dc84c9843e --- /dev/null +++ b/XCast/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2022-05-11 +### Added +- Add CHANGELOG + +### Change +- Reset API version to 1.0.0 +- Change README to inform how to update changelog and API version \ No newline at end of file diff --git a/XCast/XCast.cpp b/XCast/XCast.cpp index 721a021c94..671af7a4f2 100644 --- a/XCast/XCast.cpp +++ b/XCast/XCast.cpp @@ -65,12 +65,29 @@ using namespace std; */ #define DIAL_MAX_ADDITIONALURL (1024) +#define API_VERSION_NUMBER_MAJOR 1 +#define API_VERSION_NUMBER_MINOR 0 +#define API_VERSION_NUMBER_PATCH 0 namespace WPEFramework { +namespace { + + static Plugin::Metadata metadata( + // Version (Major, Minor, Patch) + API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH, + // Preconditions + {}, + // Terminations + {}, + // Controls + {} + ); +} + namespace Plugin { -SERVICE_REGISTRATION(XCast, 1, 0); +SERVICE_REGISTRATION(XCast, API_VERSION_NUMBER_MAJOR, API_VERSION_NUMBER_MINOR, API_VERSION_NUMBER_PATCH); static RtXcastConnector * _rtConnector = RtXcastConnector::getInstance(); static int locateCastObjectRetryCount = 0; diff --git a/XCast/XCastPlugin.json b/XCast/XCastPlugin.json index 287329abb2..74109ada28 100644 --- a/XCast/XCastPlugin.json +++ b/XCast/XCastPlugin.json @@ -5,8 +5,7 @@ "callsign": "org.rdk.Xcast", "locator": "libWPEFrameworkXCast.so", "status": "production", - "description": "This XCast plugin provides methods and events to support launching applications from an external source (for example, DIAL, Alexa, or WebPA). The RT implementation should use a RT service name that complies to the convention `com.comcast.cast`. For example, `com.comcast.xdialcast` is used by `xdialserver`.", - "version": "1.0" + "description": "This XCast plugin provides methods and events to support launching applications from an external source (for example, DIAL, Alexa, or WebPA). The RT implementation should use a RT service name that complies to the convention `com.comcast.cast`. For example, `com.comcast.xdialcast` is used by `xdialserver`." }, "interface": { "$ref": "XCast.json#"