Skip to content

Commit

Permalink
Fix readme and instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-tkachenko committed Aug 2, 2024
1 parent 7a0d949 commit 421616b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
### Video Instructions On [Youtube](https://youtu.be/KI_1-rUMjEI?si=EpXpMZncTNf53wxB&t=458 "YouTube.com")
[![Video Instructions on](https://github.com/itkacher/OkHttpProfiler/blob/master/demo.png?raw=true)](https://youtu.be/KI_1-rUMjEI?si=EpXpMZncTNf53wxB&t=458 "YouTube.com")

The [OkHttp Profiler plugin](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler "OkHttp Profiler") can show requests from the OkHttp library directly in the Android Studio tool window.
It supports the OkHttp v3 (http://square.github.io/okhttp/) and the Retrofit v2 (https://square.github.io/retrofit/)

You can **debug OkHttp request** or response headers, inspect the JSON as a tree, as a plain text etc. And you can easily **create a Java/Kotlin model from the data**.
Just click the right mouse button on a root element of the tree (or any other), choose Java or Kotlin, and select a folder for a new file in the project.

### Installation

1. Install AndroidStudio Plugin plugin:
[OkHttp Profiler plugin](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler "OkHttp Profiler")
2. Add library to app `build.gradle` file (module level):
Expand Down Expand Up @@ -45,7 +53,15 @@ implementation("io.nerdythings:okhttp-profiler:1.1.1")

## OkHttp Request Modifier Android Library

Installation:
Request Modifier is a new Android library designed to provide developers with an easy way to
customize HTTP responses.
By adding this library into your project, you gain the ability to modify response bodies and
response codes dynamically.

| <img src="https://github.com/itkacher/OkHttpProfiler/blob/master/request_modifiers_activity.png?raw=true" width=250> | <img src="https://github.com/itkacher/OkHttpProfiler/blob/master/request_modifiers_add_new_modifier.png?raw=true" width=250> |
|----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|

### Installation

1. Add libraries to app `build.gradle` file (module level):
```kotlin
Expand Down

0 comments on commit 421616b

Please sign in to comment.