diff --git a/CHANGELOG.md b/CHANGELOG.md index ddba094a4..e60198499 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - VFS Encryption - File viewer in chats (Image/Animated Image/Video/Texts) with the option to export the file. +## 5.0.3 - 2022-12-19 + +### Fixed +- Missing SetThreadDescription entry point on Windows 7/8 (SDK update) +- Add more margin on message's IMDN that was behind the icon menu in chats. +- Remove JSON dependencies on unused Flexiapi. + ## 5.0.2 - 2022-12-13 ### Fixed diff --git a/CMakeLists.txt b/CMakeLists.txt index 587886e93..10ad28314 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,7 @@ option(ENABLE_BUILD_VERBOSE "Enable the build generation to be more verbose" NO) option(ENABLE_DAEMON "Enable the linphone daemon interface." NO) option(ENABLE_FFMPEG "Build mediastreamer2 with ffmpeg video support." ON) option(ENABLE_QT_KEYCHAIN "Build QtKeychain to manage VFS from System key stores." ON) +option(ENABLE_QRCODE "Enable QRCode support" NO)#Experimental option(ENABLE_SANITIZER "Enable sanitizer." NO) option(ENABLE_STRICT "Build with strict compilator flags e.g. -Wall -Werror" NO) option(ENABLE_TESTS "Build with testing binaries of SDK" NO ) @@ -144,10 +145,12 @@ list(APPEND APP_OPTIONS "-DENABLE_BUILD_VERBOSE=${ENABLE_BUILD_VERBOSE}") list(APPEND APP_OPTIONS "-DENABLE_CONSOLE_UI=${ENABLE_CONSOLE_UI}") list(APPEND APP_OPTIONS "-DENABLE_DAEMON=${ENABLE_DAEMON}") list(APPEND APP_OPTIONS "-DENABLE_FFMPEG=${ENABLE_FFMPEG}") +list(APPEND APP_OPTIONS "-DENABLE_FLEXIAPI=${ENABLE_QRCODE}") list(APPEND APP_OPTIONS "-DENABLE_LDAP=${ENABLE_LDAP}") list(APPEND APP_OPTIONS "-DENABLE_NON_FREE_CODECS=${ENABLE_NON_FREE_CODECS}") list(APPEND APP_OPTIONS "-DENABLE_OPENH264=${ENABLE_OPENH264}") list(APPEND APP_OPTIONS "-DENABLE_QT_KEYCHAIN=${ENABLE_QT_KEYCHAIN}") +list(APPEND APP_OPTIONS "-DENABLE_QRCODE=${ENABLE_QRCODE}") list(APPEND APP_OPTIONS "-DENABLE_SANITIZER=${ENABLE_SANITIZER}") list(APPEND APP_OPTIONS "-DENABLE_STRICT=${ENABLE_STRICT}") list(APPEND APP_OPTIONS "-DENABLE_TESTS=${ENABLE_TESTS}") diff --git a/linphone-app/CMakeLists.txt b/linphone-app/CMakeLists.txt index b1c5e7cef..7814431c6 100644 --- a/linphone-app/CMakeLists.txt +++ b/linphone-app/CMakeLists.txt @@ -89,6 +89,7 @@ find_package(ortp CONFIG) if(ENABLE_QT_KEYCHAIN) find_package(${QTKEYCHAIN_TARGET_NAME} CONFIG REQUIRED) + add_definitions(-DENABLE_QT_KEYCHAIN) endif() if(ENABLE_BUILD_VERBOSE) diff --git a/linphone-app/src/components/assistant/AssistantModel.cpp b/linphone-app/src/components/assistant/AssistantModel.cpp index f2395c014..05a387262 100644 --- a/linphone-app/src/components/assistant/AssistantModel.cpp +++ b/linphone-app/src/components/assistant/AssistantModel.cpp @@ -28,7 +28,9 @@ #include "AssistantModel.hpp" +#ifdef ENABLE_QRCODE #include +#endif #include #include @@ -282,6 +284,7 @@ bool AssistantModel::addOtherSipAccount (const QVariantMap &map) { void AssistantModel::createTestAccount(){ } void AssistantModel::generateQRCode(){ +#ifdef ENABLE_QRCODE auto flexiAPIClient = make_shared(CoreManager::getInstance()->getCore()->cPtr()); flexiAPIClient ->accountProvision() @@ -291,8 +294,10 @@ void AssistantModel::generateQRCode(){ ->error([this](FlexiAPIClient::Response response){ emit newQRCodeNotReceived(Utils::coreStringToAppString(response.body), response.code); }); +#endif } void AssistantModel::requestQRCode(){ +#ifdef ENABLE_QRCODE auto flexiAPIClient = make_shared(CoreManager::getInstance()->getCore()->cPtr()); flexiAPIClient @@ -305,6 +310,7 @@ void AssistantModel::requestQRCode(){ qWarning() << response.code << " => " << response.body.c_str(); emit newQRCodeNotReceived(Utils::coreStringToAppString(response.body), response.code); }); +#endif } void AssistantModel::readQRCode(){ @@ -314,6 +320,7 @@ void AssistantModel::newQRCodeNotReceivedTest(){ emit newQRCodeNotReceived("Cannot generate a provisioning key",0); } void AssistantModel::checkLinkingAccount(){ +#ifdef ENABLE_QRCODE auto flexiAPIClient = make_shared(CoreManager::getInstance()->getCore()->cPtr()); flexiAPIClient ->accountApiKeyFromAuthTokenGenerate(mToken.toStdString()) @@ -322,9 +329,11 @@ void AssistantModel::checkLinkingAccount(){ })->error([this](FlexiAPIClient::Response){ QTimer::singleShot(5000, this, &AssistantModel::checkLinkingAccount); }); +#endif } void AssistantModel::onApiReceived(QString apiKey){ +#ifdef ENABLE_QRCODE auto flexiAPIClient = make_shared(CoreManager::getInstance()->getCore()->cPtr()); flexiAPIClient->setApiKey(Utils::appStringToCoreString(apiKey).c_str()) ->accountProvision() @@ -334,6 +343,7 @@ void AssistantModel::onApiReceived(QString apiKey){ //it provisioningTokenReceived("token"); emit this->newQRCodeNotReceived("Cannot generate a provisioning key"+(response.body.empty() ? "" : " : " +Utils::coreStringToAppString(response.body)), response.code); }); +#endif } void AssistantModel::onQRCodeFound(const std::string & result){ setIsReadingQRCode(false); @@ -341,6 +351,7 @@ void AssistantModel::onQRCodeFound(const std::string & result){ } void AssistantModel::attachAccount(const QString& token){ +#ifdef ENABLE_QRCODE auto flexiAPIClient = make_shared(CoreManager::getInstance()->getCore()->cPtr()); flexiAPIClient-> accountAuthTokenAttach(Utils::appStringToCoreString(token)) @@ -351,6 +362,7 @@ void AssistantModel::attachAccount(const QString& token){ ->error([this](FlexiAPIClient::Response response){ emit qRCodeNotAttached("Cannot attach"+ (response.body.empty() ? "" : " : " +Utils::coreStringToAppString(response.body)), response.code); }); +#endif } // ----------------------------------------------------------------------------- diff --git a/linphone-sdk b/linphone-sdk index f38a4e092..27c02e232 160000 --- a/linphone-sdk +++ b/linphone-sdk @@ -1 +1 @@ -Subproject commit f38a4e0924571ff1597a2153920d80eb49a99b2a +Subproject commit 27c02e232d7fd5facdcd21c2b15d558812ab4151