Skip to content

Commit

Permalink
Update Android Kotlin documentation for RN0.73+
Browse files Browse the repository at this point in the history
  • Loading branch information
adammcarth committed Oct 22, 2024
1 parent ec75f1b commit b7f7a28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cd ios && pod install && cd ..
```

Android:
[Add Kotlin to your project](./docs/kotlin.md)
[Review your Kotlin configuration](./docs/kotlin.md) to ensure it's compatible with this library.

## Permissions

Expand Down
10 changes: 6 additions & 4 deletions docs/kotlin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

1. Open and edit android/build.gradle

Add the `kotlin_version` to `buildscript.ext`
Add the `kotlin_version` to `buildscript.ext`. If you are using React Native `0.73` or higher, you should already have a variable called `kotlinVersion` defined inside of here, so remember you can reference this instead of repeating the version number twice:

```
buildscript {
ext {
ext {
...
kotlin_version = '1.7.20'
}
kotlinVersion = '1.7.20' // Variable now included for React Native core
kotlin_version = kotlinVersion // Used by react-native-camera-kit
}
}
```

Add `google()` to the `buildscript.repositories` and `allprojects.repositories`
Expand Down

0 comments on commit b7f7a28

Please sign in to comment.