Skip to content

Commit 0dc07e4

Browse files
fix(analytics): remove tracking to Eqatec Analytics
Remove tracking to Eqatec Analytics as we no longer use it.
1 parent 7922096 commit 0dc07e4

25 files changed

+42
-943
lines changed

lib/bootstrap.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ $injector.require("androidDebugService", "./services/android-debug-service");
3535
$injector.require("userSettingsService", "./services/user-settings-service");
3636
$injector.requirePublic("analyticsSettingsService", "./services/analytics-settings-service");
3737
$injector.require("analyticsService", "./services/analytics/analytics-service");
38-
$injector.require("eqatecAnalyticsProvider", "./services/analytics/eqatec-analytics-provider");
3938
$injector.require("googleAnalyticsProvider", "./services/analytics/google-analytics-provider");
4039

4140
$injector.require("emulatorSettingsService", "./services/emulator-settings-service");

lib/commands/debug.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export class DebugPlatformCommand extends ValidatePlatformCommandBase implements
3434

3535
const debugOptions = <IDebugOptions>_.cloneDeep(this.$options.argv);
3636

37-
await this.$platformService.trackProjectType(this.$projectData);
3837
const selectedDeviceForDebug = await this.getDeviceForDebug();
3938

4039
const debugData = this.$debugDataService.createDebugData(this.$projectData, {device: selectedDeviceForDebug.deviceInfo.identifier});

lib/common/commands/analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ class AnalyticsCommand implements ICommand {
3131
switch (arg.toLowerCase()) {
3232
case "enable":
3333
await this.$analyticsService.setStatus(this.settingName, true);
34-
await this.$analyticsService.track(this.settingName, "enabled");
34+
// await this.$analyticsService.track(this.settingName, "enabled");
3535
this.$logger.info(`${this.humanReadableSettingName} is now enabled.`);
3636
break;
3737
case "disable":
38-
await this.$analyticsService.track(this.settingName, "disabled");
38+
// await this.$analyticsService.track(this.settingName, "disabled");
3939
await this.$analyticsService.setStatus(this.settingName, false);
4040
this.$logger.info(`${this.humanReadableSettingName} is now disabled.`);
4141
break;

lib/common/commands/proxy/proxy-base.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export abstract class ProxyCommandBase implements ICommand {
1212

1313
protected async tryTrackUsage() {
1414
try {
15-
await this.$analyticsService.trackFeature(this.commandName);
15+
// TODO: Check why we have set the `disableAnalytics` to true and we track the command as separate one
16+
// instead of tracking it through the commandsService.
17+
this.$logger.trace(this.commandName);
18+
// await this.$analyticsService.trackFeature(this.commandName);
1619
} catch (ex) {
1720
this.$logger.trace("Error in trying to track proxy command usage:");
1821
this.$logger.trace(ex);

lib/common/declarations.d.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ declare const enum TrackingTypes {
186186
*/
187187
Initialization = "initialization",
188188

189-
/**
190-
* Defines that the data contains feature that should be tracked.
191-
*/
192-
Feature = "feature",
193-
194189
/**
195190
* Defines that the data contains exception that should be tracked.
196191
*/
@@ -670,19 +665,10 @@ interface IDictionary<T> {
670665

671666
interface IAnalyticsService {
672667
checkConsent(): Promise<void>;
673-
trackFeature(featureName: string): Promise<void>;
674668
trackException(exception: any, message: string): Promise<void>;
675669
setStatus(settingName: string, enabled: boolean): Promise<void>;
676670
getStatusMessage(settingName: string, jsonFormat: boolean, readableSettingName: string): Promise<string>;
677671
isEnabled(settingName: string): Promise<boolean>;
678-
track(featureName: string, featureValue: string): Promise<void>;
679-
680-
/**
681-
* Tries to stop current eqatec monitor, clean it's state and remove the process.exit event handler.
682-
* @param {string|number} code - Exit code as the method is used for process.exit event handler.
683-
* @return void
684-
*/
685-
tryStopEqatecMonitors(code?: string | number): void;
686672

687673
/**
688674
* Tracks the answer of question if user allows to be tracked.
@@ -2035,4 +2021,4 @@ declare module "stringify-package" {
20352021
declare module "detect-newline" {
20362022
function detectNewline(data: string): string | null;
20372023
export = detectNewline
2038-
}
2024+
}

lib/common/definitions/cli-global.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ interface ICliGlobal extends NodeJS.Global {
77
*/
88
_: any;
99

10-
/**
11-
* Eqatec analytics instance.
12-
*/
13-
_eqatec: IEqatec;
14-
1510
/**
1611
* Global instance of the module used for dependency injection.
1712
*/

lib/common/definitions/eqatec-analytics.d.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

lib/common/definitions/eqatec.d.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)