Blame view

Pods/Realm/include/RLMAnalytics.hpp 2.98 KB
75d24c15   yangbin   123
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  ////////////////////////////////////////////////////////////////////////////
  //
  // Copyright 2015 Realm Inc.
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  // http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  //
  ////////////////////////////////////////////////////////////////////////////
  
  // Asynchronously submits build information to Realm if running in an iOS
  // simulator or on OS X if a debugger is attached. Does nothing if running on an
  // iOS / watchOS device or if a debugger is *not* attached.
  //
  // To be clear: this does *not* run when your app is in production or on
  // your end-users devices; it will only run in the simulator or when a debugger
  // is attached.
  //
  // Why are we doing this? In short, because it helps us build a better product
  // for you. None of the data personally identifies you, your employer or your
  // app, but it *will* help us understand what language you use, what iOS
  // versions you target, etc. Having this info will help prioritizing our time,
  // adding new features and deprecating old features. Collecting an anonymized
  // bundle & anonymized MAC is the only way for us to count actual usage of the
  // other metrics accurately. If we dont have a way to deduplicate the info
  // reported, it will be useless, as a single developer building their Swift app
  // 10 times would report 10 times more than a single Objective-C developer that
  // only builds once, making the data all but useless.
  // No one likes sharing data unless its necessary, we get it, and weve
  // debated adding this for a long long time. Since Realm is a free product
  // without an email signup, we feel this is a necessary step so we can collect
  // relevant data to build a better product for you. If you truly, absolutely
  // feel compelled to not send this data back to Realm, then you can set an env
  // variable named REALM_DISABLE_ANALYTICS. Since Realm is free we believe
  // letting these analytics run is a small price to pay for the product & support
  // we give you.
  //
  // Currently the following information is reported:
  // - What version of Realm is being used, and from which language (obj-c or Swift).
  // - What version of OS X it's running on (in case Xcode aggressively drops
  //   support for older versions again, we need to know what we need to support).
  // - The minimum iOS/OS X version that the application is targeting (again, to
  //   help us decide what versions we need to support).
  // - An anonymous MAC address and bundle ID to aggregate the other information on.
  // - What version of Swift is being used (if applicable).
  
  void RLMSendAnalytics();