diff --git a/native/android/app/src/cpp/PlatformSpecificTools.cpp b/native/android/app/src/cpp/PlatformSpecificTools.cpp --- a/native/android/app/src/cpp/PlatformSpecificTools.cpp +++ b/native/android/app/src/cpp/PlatformSpecificTools.cpp @@ -33,4 +33,8 @@ buffer = PlatformSpecificToolsJavaClass::generateSecureRandomBytes(size); } +std::string PlatformSpecificTools::getDeviceOS() { + return std::string{"android"}; +} + } // namespace comm diff --git a/native/cpp/CommonCpp/Tools/PlatformSpecificTools.h b/native/cpp/CommonCpp/Tools/PlatformSpecificTools.h --- a/native/cpp/CommonCpp/Tools/PlatformSpecificTools.h +++ b/native/cpp/CommonCpp/Tools/PlatformSpecificTools.h @@ -7,6 +7,7 @@ class PlatformSpecificTools { public: static void generateSecureRandomBytes(crypto::OlmBuffer &buffer, size_t size); + static std::string getDeviceOS(); }; } // namespace comm diff --git a/native/ios/Comm/PlatformSpecificTools.mm b/native/ios/Comm/PlatformSpecificTools.mm --- a/native/ios/Comm/PlatformSpecificTools.mm +++ b/native/ios/Comm/PlatformSpecificTools.mm @@ -19,4 +19,8 @@ } } +std::string PlatformSpecificTools::getDeviceOS() { + return std::string{"ios"}; +} + };