Skip to content

Commit

Permalink
Make Gesture Handler more futureproof (#3225)
Browse files Browse the repository at this point in the history
## Description

This PR fixes `Type com.swmansion.common.GestureHandlerStateManager is
defined multiple times` error when building app on Android.

## Test plan

<!--
Describe how did you test this change here.
-->
  • Loading branch information
tomekzaw authored Nov 19, 2024
1 parent 2eae15c commit 709c086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def shouldUseCommonInterfaceFromReanimated() {
def json = new JsonSlurper().parseText(inputFile.text)
def reanimatedVersion = json.version as String
def (major, minor, patch) = reanimatedVersion.tokenize('.')
return (Integer.parseInt(major) == 2 && Integer.parseInt(minor) >= 3) || Integer.parseInt(major) == 3
return (Integer.parseInt(major) == 2 && Integer.parseInt(minor) >= 3) || Integer.parseInt(major) >= 3
} else {
return false
}
Expand Down

0 comments on commit 709c086

Please sign in to comment.