Skip to content

Commit fd4fcef

Browse files
Track exceptions in separate Analytics project (#2948)
* Track exceptions in separate Analytics project Track all exceptions from CLI in a separate analytics project. Also track the result of `tns error-reporting enable/disable` in the same project where the exceptions are tracked. Update common-lib where the following changes had been applied: Allow tracking exceptions in a different Analytics project. In case the specified CLI wants to track exceptions to a separeate project, it can do it by setting the new property in staticConfig - `ANALYTICS_EXCEPTIONS_API_KEY`. Allow tracking the result of `tns error-reporting enable/disable` to the same project where exceptions tracking is sent. Speed up check if current Analytics request is sent - we check on 1000ms, while in fact it takes between 150 and 400ms. So make the check on 100ms. * Bump CLI version to 3.1.2
1 parent f0dfab2 commit fd4fcef

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class StaticConfig extends StaticConfigBase implements IStaticConfig {
2424
public CLIENT_NAME = "tns";
2525
public CLIENT_NAME_ALIAS = "NativeScript";
2626
public ANALYTICS_API_KEY = "5752dabccfc54c4ab82aea9626b7338e";
27+
public ANALYTICS_EXCEPTIONS_API_KEY = "35478fe7de68431399e96212540a3d5d";
2728
public TRACK_FEATURE_USAGE_SETTING_NAME = "TrackFeatureUsage";
2829
public ERROR_REPORT_SETTING_NAME = "TrackExceptions";
2930
public ANALYTICS_INSTALLATION_ID_SETTING_NAME = "AnalyticsInstallationID";

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nativescript",
33
"preferGlobal": true,
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"author": "Telerik <[email protected]>",
66
"description": "Command-line interface for building NativeScript projects",
77
"bin": {

0 commit comments

Comments
 (0)