Skip to content
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

Android docs/ update react docs to explicitly add Kotlin #4907

Merged
merged 2 commits into from
Feb 27, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,26 @@ Run your application as specified in the [Expo docs](https://docs.expo.dev/workf

#### Step 2.1a: Add our repository

In your top-level project `build.gradle`, add the following as repositories under `allprojects` > `repositories`:
In your top-level project `build.gradle`, add the following as repositories under `allprojects` > `repositories` and `buildscript` > `dependencies`:

```gradle
buildscript {
dependencies {
...
// Choose your Kotlin version
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10")
}
}

allprojects {
repositories {
...
maven { url "https://appboy.github.io/appboy-android-sdk/sdk" }
}
repositories {
maven { url "https://appboy.github.io/appboy-android-sdk/sdk" }
}
}
```

This will add the Braze SDK repository source and Kotlin to your project.

#### Step 2.1b: Configure the Braze SDK

To connect to Braze servers, create a `braze.xml` file in your project's `res/values` folder. Paste the following code and replace the API key and endpoint with your values:
Expand Down