Skip to content

Update README.md #1101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ For more information about Parse and its features, see [the website](https://par

## Dependency

Add this in your root `build.gradle` file (**not** your module `build.gradle` file):

```gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
Add the maven repository where this library is stored (jitpack.io) in your root `settings.gradle` file:

```dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
```

Expand Down Expand Up @@ -72,6 +73,23 @@ public class App extends Application {
}
}
```
```kotlin
import android.app.Application
import com.parse.Parse

class App: Application() {
override fun onCreate() {
super.onCreate()
Parse.initialize(
Parse.Configuration.Builder(this)
.applicationId("YOUR_APP_ID") // if desired
.clientKey("YOUR_CLIENT_KEY")
.server("https://your-server-address/parse/")
.build()
)
}
}
```

The custom `Application` class must be registered in `AndroidManifest.xml`:

Expand Down