Add Mixpanel property for JS VM

This commit is contained in:
Scott Kyle 2016-02-17 13:53:26 -08:00
parent 6c644067fd
commit f059d57bf4
3 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,7 @@
//
// Currently the following information is reported:
// - What kind of JavaScript framework is being used (e.g. React Native).
// - What kind of JavaScript VM is being used (e.g. JavaScriptCore or V8).
// - 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).

View File

@ -31,6 +31,7 @@
//
// Currently the following information is reported:
// - What kind of JavaScript framework is being used (e.g. React Native).
// - What kind of JavaScript VM is being used (e.g. JavaScriptCore or V8).
// - 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).
@ -185,6 +186,7 @@ static NSDictionary *RLMAnalyticsPayload() {
@"Binding": @"js",
@"Language": @"js",
@"Framework": @"react-native",
@"Virtual Machine": @"jsc",
@"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString,
#if TARGET_OS_MAC
@"Target OS Type": @"osx",

View File

@ -42,6 +42,7 @@ import java.util.Set;
//
// Currently the following information is reported:
// - What kind of JavaScript framework is being used (e.g. React Native)
// - What kind of JavaScript VM is being used (e.g. JavaScriptCore or V8)
// - What version of Realm is being used
// - What OS you are running on
// - An anonymized MAC address and bundle ID to aggregate the other information on.
@ -63,7 +64,8 @@ public class RealmAnalytics {
+ " \"Anonymized Bundle ID\": \"%APP_ID%\",\n"
+ " \"Binding\": \"js\",\n"
+ " \"Language\": \"js\",\n"
+ " \"Framework\": \"react-native\","
+ " \"Framework\": \"react-native\",\n"
+ " \"Virtual Machine\": \"jsc\",\n"
+ " \"Realm Version\": \"%REALM_VERSION%\",\n"
+ " \"Host OS Type\": \"%OS_TYPE%\",\n"
+ " \"Host OS Version\": \"%OS_VERSION%\",\n"