Skip to content

Commit

Permalink
docs: Update setup instructions in README for current Android Studio (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarwideman authored May 25, 2023
1 parent 2bf4351 commit f9843c5
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,39 @@ The Parse Android SDK has the following Android API and [Gradle Plugin][gradle-p

## Add Dependency

Add this in your root `build.gradle` file (**not** your module `build.gradle` file):
Add the line `maven { url 'https://www.jitpack.io' }` to your `settings.gradle` file, inside the `repositories` property, for example:

```gradle
allprojects {
dependencyResolutionManagement {
repositories {
...
maven { url "https://jitpack.io" }
maven { url 'https://www.jitpack.io' }
}
}
```

Then, add the library to your project `build.gradle`
Older versions of Android studio require different steps. See the following list of Android Studio versions for alternative instructions. You can find the version of your Android Studio installation by clicking on *Help > About* in the top menu.

<details>
<summary>Arctic Fox | 2020.3.1 or older</summary>
<br>

>
> Add this in your root `build.gradle` file, **not** your module `build.gradle` file:
>
> ```gradle
> allprojects {
> repositories {
> ...
> maven { url "https://jitpack.io" }
> }
> }
> ```
>
> Then, add the library to your project `build.gradle` file.
</details>
Then, add the library to your (module:app) `build.gradle` file, replacing `latest.version.here` with the version of the Parse Android SDK you would like to use. We commend always updating your app to use the [latest release](https://github.com/parse-community/Parse-SDK-Android/releases) version.
```gradle
ext {
Expand All @@ -81,8 +102,6 @@ dependencies {
}
```
replacing `latest.version.here` with the latest released version (see JitPack badge above).

## Setup

Initialize Parse in a custom class that extends `Application`:
Expand Down

0 comments on commit f9843c5

Please sign in to comment.