Port from KPluginLoader::pluginVersion to KPluginMetaData::version
Open, Needs TriagePublic

Description

i.e. read the version number from the JSON, not from a magic symbol in the .so file.

This also means porting away from K_EXPORT_PLUGIN_VERSION (to set the version).

dfaure created this task.Mar 28 2021, 8:55 AM
dfaure added a parent task: T13952: KPluginLoader.

After filtering out the unrelated results from lxr, I see only these:

frameworks/krunner/src/runnermanager.cpp
frameworks/plasma-framework/src/plasma/pluginloader.cpp
kde/workspace/kwin/src/effectloader.cpp
kde/workspace/kwin/src/pluginmanager.cpp

alex claimed this task.May 29 2021, 6:10 PM
alex added a subscriber: alex.

During the KF6 weekly we decided that K_EXPORT_PLUGIN_VERSION should be deprecated. For the other versioning checks the plugins should put the info in the JSON metadata or just use a separate namespace.

alex moved this task from Backlog to Waiting on KF6 Branching on the KF6 board.Jul 4 2021, 6:02 AM
alex moved this task from Waiting on KF6 Branching to Done on the KF6 board.Feb 7 2023, 8:21 AM

This has been cleaned up with the removal of deprecated API