forked from microsoft/react-native-code-push
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodePushUtils.cpp
More file actions
29 lines (24 loc) · 735 Bytes
/
CodePushUtils.cpp
File metadata and controls
29 lines (24 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "CodePushUtils.h"
namespace Microsoft::CodePush::ReactNative
{
using namespace winrt::Windows::Storage;
/*static*/ void CodePushUtils::Log(winrt::hstring message)
{
OutputDebugStringW(L"[CodePush] ");
OutputDebugStringW(message.c_str());
OutputDebugStringW(L"\n");
}
/*static*/ void CodePushUtils::Log(const winrt::hresult_error& ex)
{
OutputDebugStringW(L"[CodePush] Exception ");
OutputDebugStringW(ex.message().c_str());
OutputDebugStringW(L"\n");
}
/*static*/ void CodePushUtils::LogBundleUrl(const IStorageFile& bundle)
{
CodePushUtils::Log(L"Loading JS bundle from \"" + bundle.Path() + L"\"");
}
}