Realm C++ SDK
Version v2.2.0
include
cpprealm
analytics.hpp
1
2
//
3
// Copyright 2022 Realm Inc.
4
//
5
// Licensed under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing, software
12
// distributed under the License is distributed on an "AS IS" BASIS,
13
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
16
//
18
19
#ifndef CPPREALM_ANALYTICS_HPP
20
#define CPPREALM_ANALYTICS_HPP
21
22
// Asynchronously submits build information to Realm if running in
23
// DEBUG mode.
24
//
25
// To be clear: this does *not* run when your app is built with RELEASE mode;
26
// To forcefully disable analytics set the REALM_DISABLE_ANALYTICS environment variable.
27
//
28
// Why are we doing this? In short, because it helps us build a better product
29
// for you. None of the data personally identifies you, your employer or your
30
// app, but it *will* help us understand what version of c++ you use, what host
31
// you, etc. Having this info will help prioritizing our time,
32
// adding new features and deprecating old features. Collecting an anonymized
33
// bundle & anonymized MAC is the only way for us to count actual usage of the
34
// other metrics accurately. If we don’t have a way to deduplicate the info
35
// reported, it will be useless, as a single developer building their app
36
// 10 times would report 10 times more than another single developer that
37
// only builds once, making the data all but useless.
38
// No one likes sharing data unless it’s necessary, we get it, and we’ve
39
// debated adding this for a long long time. Since Realm is a free product
40
// without an email signup, we feel this is a necessary step so we can collect
41
// relevant data to build a better product for you. If you truly, absolutely
42
// feel compelled to not send this data back to Realm, then you can set the environment variable
43
// named REALM_DISABLE_ANALYTICS. Since Realm is free we believe
44
// letting these analytics run is a small price to pay for the product & support
45
// we give you.
46
//
47
// Currently the following information is reported:
48
// - What version of Realm is being used, and which version of C++ you are using.
49
// - What type of operating system you are using.
50
// - An anonymous MAC address to aggregate the other information on.
51
namespace
realm {
52
struct
realm_analytics
{
53
static
void
send();
54
};
55
}
// namespace realm
56
57
#endif
//CPPREALM_ANALYTICS_HPP
realm::realm_analytics
Definition:
analytics.hpp:52
Generated by
1.9.4