Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Remove details about our Gradle Plugin
  • Loading branch information
Dimdron authored Oct 16, 2024
1 parent 3ccd493 commit 4e5ea59
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,9 @@ After adding the application navigate to app settings and copy API key.
<!-- integration-manual-start -->
[![GitHub release](https://img.shields.io/github/release/appspector/android-sdk.svg)](https://github.com/appspector/android-sdk/releases)

#### Add AppSpector dependency to buildscript in your project-level build.gradle
```groovy
buildscript {
repositories {
jcenter()
google()
maven { url "https://maven.appspector.com/artifactory/android-sdk" }
}
dependencies {
classpath "com.appspector:android-sdk-plugin:1.+"
}
}
```

#### Modify your app-level build.gradle
```groovy
apply plugin: 'com.android.application'
// Put AppSpector plugin after Android plugin
apply plugin: 'com.appspector.sdk'
// Add AppSpector maven repository
repositories {
Expand Down Expand Up @@ -132,8 +115,6 @@ dependencies declaration. So, your app-level `build.gradle` should contain the n

```groovy
apply plugin: 'com.android.application'
// Put AppSpector plugin after Android plugin
apply plugin: 'com.appspector.sdk'
// Add AppSpector maven repository
repositories {
Expand Down Expand Up @@ -370,7 +351,7 @@ AppSpector
```

## Using OkHttp interceptor instead of AppSpector Gradle Plugin
If you don't want to use AppSpector Gradle Plugin you could use an alternative way to intercept HTTP requests and responses. You can manually add `AppSpectorOkHttp3Interceptor` to your OkHttpClient (Or `AppSpectorOkHttp2Interceptor` for old version of OkHttpClient). Also, **don't forget** to remove AppSpector plugin from your `app/build.gradle` file.
If you don't want to use AppSpector Gradle Plugin you could use an alternative way to intercept HTTP requests and responses. You can manually add `AppSpectorOkHttp3Interceptor` to your OkHttpClient (Or `AppSpectorOkHttp2Interceptor` for old version of OkHttpClient). Also, **don't forget** to remove AppSpector plugin from your `app/build.gradle` file if the plugin is added.

```java
new OkHttpClient.Builder()
Expand Down

0 comments on commit 4e5ea59

Please sign in to comment.