Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 0 additions & 10 deletions packages/docs-gesture-handler/docs/fundamentals/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,6 @@ export function CustomModal({ children, ...rest }) {
}
```

Gesture Handler on Android is implemented in Kotlin. If you need to set a specific Kotlin version to be used by the library, set the `kotlinVersion` ext property in the `android/build.gradle` file and RNGH will use that version:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we want to remove it entirely, or add info that it is not supported anymore (e.g. starting from 3.1.0)


```groovy
buildscript {
ext {
kotlinVersion = "2.1.20"
}
}
```

#### iOS

While developing for iOS, make sure to install [pods](https://cocoapods.org/) first before running the app:
Expand Down
11 changes: 6 additions & 5 deletions packages/react-native-gesture-handler/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ import groovy.json.JsonSlurper
import com.android.build.gradle.tasks.ExternalNativeBuildJsonTask

buildscript {
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['RNGH_kotlinVersion']

repositories {
mavenCentral()
google()
}

dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("com.android.tools.build:gradle:8.10.1")
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.4")
if (project == rootProject) {
def kotlin_version = project.properties['RNGH_kotlinVersion']
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("com.android.tools.build:gradle:8.10.1")
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.4")
}
}
}

Expand Down
Loading