Skip to content

Commit

Permalink
feat!: remove telemetry feature (#633)
Browse files Browse the repository at this point in the history
* feat: remove insight dep

* feat: remove telemetry feature

Closes GH-625.
Closes GH-632.
  • Loading branch information
shajz committed Jun 17, 2024
1 parent bf1f561 commit 71a5c89
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 1,659 deletions.
1 change: 0 additions & 1 deletion doc/cordova.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Synopsis
Global Commands
create ............................. Create a project
help ............................... Get help for a command
telemetry .......................... Turn telemetry collection on or off
config ............................. Set, get, delete, edit, and list global cordova options

Project Commands
Expand Down
34 changes: 0 additions & 34 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ These commands are available at all times.
|----------|--------------
| `create` | Create a project
| `help <command>` | Get help for a command
| `telemetry` | Turn telemetry collection on or off
| `config` | Set, get, delete, edit, and list global cordova options

## Project Command List
Expand Down Expand Up @@ -69,7 +68,6 @@ These options apply to all cordova-cli commands.
| -d or --verbose | Pipe out more verbose output to your shell. You can also subscribe to `log` and `warn` events if you are consuming `cordova-cli` as a node module by calling `cordova.on('log', function() {})` or `cordova.on('warn', function() {})`.
| -v or --version | Print out the version of your `cordova-cli` install.
|--nohooks | Suppress executing hooks (taking RegExp hook patterns as parameters)
| --no-telemetry | Disable telemetry collection for the current command.

## Platform-specific options

Expand Down Expand Up @@ -616,38 +614,6 @@ Run a local web server for www/ assets using specified `port` or default of 8000
cordova serve [port]
```
## `cordova telemetry` command
Turns telemetry collection on or off.
**Command Syntax:**
```bash
cordova telemetry [State]
```
| State | Description
|-------------|------------------
| on | Turn telemetry collection on.
| off | Turn telemetry collection off.
### Details
A timed prompt asking the user to opt-in or out is displayed the first time cordova is run.
It lasts for 30 seconds, after which the user is automatically opted-out if they don't provide any answer.
In CI environments, the `CI` environment variable can be set, which will prevent the prompt from showing up.
Telemetry collection can also be turned off on a single command by using the `--no-telemetry` flag.
**Usage Example:**
```bash
cordova telemetry on
cordova telemetry off
cordova build --no-telemetry
```
For details, see our privacy notice: https://cordova.apache.org/privacy
## `cordova help` command
Show syntax summary, or the help for a specific command.
Expand Down
23 changes: 0 additions & 23 deletions doc/telemetry.txt

This file was deleted.

Loading

0 comments on commit 71a5c89

Please sign in to comment.