Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3512486
D3153.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3153.diff
View Options
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"};
+}
+
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 8:20 PM (13 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692345
Default Alt Text
D3153.diff (1 KB)
Attached To
Mode
D3153: [CommCoreModule] Introduce `PlatformSpecificTools::getDeviceOS()`
Attached
Detach File
Event Timeline
Log In to Comment