Initialise Flipper on module initialisation
Summary: ^ This diff brings most things together and can be considered the test platform for RNW. With this, Flipper client gets initialised and started. This means the application connects and is ready for debugging. Reviewed By: antonk52 Differential Revision: D39054912 fbshipit-source-id: 94397f6a72b1e9d9c0f2f3efaf9967be525076cd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
69df1ee362
commit
322a1ba6b1
@@ -9,12 +9,15 @@
|
||||
|
||||
#include <winrt/Windows.ApplicationModel.h>
|
||||
#include <winrt/Windows.Security.ExchangeActiveSyncProvisioning.h>
|
||||
#include <winrt/Windows.Storage.h>
|
||||
|
||||
using namespace winrt::Windows::Foundation;
|
||||
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
|
||||
std::string FlipperReactDeviceInfo::getOS() {
|
||||
return "Windows";
|
||||
}
|
||||
std::string FlipperReactDeviceInfo::getDevice() {
|
||||
try {
|
||||
return winrt::to_string(
|
||||
@@ -46,6 +49,11 @@ std::string FlipperReactDeviceInfo::getAppId() {
|
||||
return winrt::to_string(
|
||||
winrt::Windows::ApplicationModel::Package::Current().Id().Name());
|
||||
}
|
||||
std::string FlipperReactDeviceInfo::getAppStorageDirectory() {
|
||||
winrt::Windows::Storage::StorageFolder storageFolder{
|
||||
winrt::Windows::Storage::ApplicationData::Current().LocalFolder()};
|
||||
return winrt::to_string(storageFolder.Path());
|
||||
}
|
||||
|
||||
} // namespace flipper
|
||||
} // namespace facebook
|
||||
|
||||
Reference in New Issue
Block a user