Skip to content

Commit

Permalink
Updating sample invocation of getLaunchIntent() (#150)
Browse files Browse the repository at this point in the history
* Updating sample invocation of getLaunchIntent()

Updated `Chucker.getLaunchIntent(context)` to `Chucker.getLaunchIntent(context, Chucker.SCREEN_HTTP)`

* Hide parameter list in example

Co-authored-by: Nicola Corti <corti.nico@gmail.com>
  • Loading branch information
kmayoral and cortinico committed Dec 30, 2019
1 parent a45ffec commit 8bfbdfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/migrating-from-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Generally name of classes from Chucker 2.x used to have `Chuck` as a prefix (e.g
So if to launch the UI of Chucker, you would normally call:

```kotlin
Chuck.getLaunchIntent(context)
Chuck.getLaunchIntent(...)
```

now you will call

```kotlin
Chucker.getLaunchIntent(context)
Chucker.getLaunchIntent(...)
```

## 2. Package name changes
Expand Down Expand Up @@ -92,4 +92,4 @@ The `Period` enum has also been moved from `ChuckCollector` to `RetentionManager

## 5. registerDefaultCrashHanlder typo

The function `Chuck.registerDefaultCrashHanlder` contained a typo in the name and now is moved to `Chucker.registerDefaultCrashHandler`.
The function `Chuck.registerDefaultCrashHanlder` contained a typo in the name and now is moved to `Chucker.registerDefaultCrashHandler`.
4 changes: 2 additions & 2 deletions docs/migrating-from-chuck.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ Generally name of classes from Chuck (e.g. `ChuckInterceptor`) got udpated to Ch
So if to launch the UI of Chuck, you would normally call:

```kotlin
Chuck.getLaunchIntent(context)
Chuck.getLaunchIntent(...)
```

now you will call

```kotlin
Chucker.getLaunchIntent(context)
Chucker.getLaunchIntent(...)
```

0 comments on commit 8bfbdfd

Please sign in to comment.