Skip to content

Commit c10ec96

Browse files
committed
Improve setup and reduce duplication
1 parent bd7e21e commit c10ec96

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

fern/docs/pages/plug-sdk/android.mdx

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,40 @@ This section describes the process of integrating the DevRev SDK with your Andro
1111

1212
To integrate the latest version of our SDK into your app, follow these steps:
1313

14+
1. Our SDK is available on Maven Central. To access it, add `mavenCentral` to your root level `build.gradle` file.
15+
```gradle
16+
repositories {
17+
mavenCentral()
18+
}
19+
```
20+
1421
<Tabs>
1522
<Tab title="Kotlin">
1623

17-
1. Add the following dependencies to your app's `build.gradle.kts` file to get the latest version of our SDK:
24+
2. Add the following dependencies to your app's `build.gradle.kts` file to get the latest version of our SDK:
1825

1926
```kotlin
2027
dependencies {
2128
implementation("ai.devrev.sdk:devrev-sdk:<version>")
2229
}
2330
```
24-
2. Our SDK is available on Maven Central. To access it, add `mavenCentral` to your root `build.gradle.kts` file.
25-
```kotlin
26-
repositories {
27-
mavenCentral()
28-
}
29-
```
30-
After completing these steps in your `build.gradle.kts` Kotlin script, you should be able to import and use the DevRev SDK in your Android application.
3131

3232
</Tab>
3333
<Tab title="Groovy">
3434

35-
1. Add the following dependencies to your app's `build.gradle` file to get the latest version of our SDK:
35+
2. Add the following dependencies to your app's `build.gradle` file to get the latest version of our SDK:
3636

3737
```groovy
3838
dependencies {
3939
implementation 'ai.devrev.sdk:devrev-sdk:<version>'
4040
}
4141
```
4242

43-
2. Our SDK is available on Maven Central. To access it, add `mavenCentral` to your root `build.gradle` file.
44-
```groovy
45-
repositories {
46-
mavenCentral()
47-
}
48-
```
49-
After completing these steps in your `build.gradle` Groovy script, you should be able to import and use the DevRev SDK in your Android application.
50-
5143
</Tab>
5244
</Tabs>
5345

46+
After completing these steps in your gradle files, you should be able to import and use the DevRev SDK in your Android application.
47+
5448
### Set up the DevRev SDK
5549

5650
1. Open the DevRev web app at [https://app.devrev.ai](https://app.devrev.ai) and go to the **Settings** page.

0 commit comments

Comments
 (0)