mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-30 22:31:13 +01:00
e149ad4f0a
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
27 lines
702 B
C++
27 lines
702 B
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#include "Common/AndroidAnalytics.h"
|
|
|
|
namespace Common
|
|
{
|
|
std::function<void(std::string, std::string)> s_android_send_report;
|
|
void AndroidSetReportHandler(std::function<void(std::string, std::string)> func)
|
|
{
|
|
s_android_send_report = std::move(func);
|
|
}
|
|
AndroidAnalyticsBackend::AndroidAnalyticsBackend(std::string passed_endpoint)
|
|
: m_endpoint{std::move(passed_endpoint)}
|
|
{
|
|
}
|
|
AndroidAnalyticsBackend::~AndroidAnalyticsBackend() = default;
|
|
|
|
void AndroidAnalyticsBackend::Send(std::string report)
|
|
{
|
|
s_android_send_report(m_endpoint, report);
|
|
}
|
|
} // namespace Common
|