Skip to content

Commit

Permalink
Remove unused REANIMATED_MAJOR_VERSION in build.gradle (#6927)
Browse files Browse the repository at this point in the history
## Summary

This PR removes unused variable `REANIMATED_MAJOR_VERSION` and
`getReanimatedMajorVersion` in build.gradle.

## Test plan

Co-authored-by: Mateusz Łopaciński <[email protected]>
  • Loading branch information
tomekzaw and MatiPl01 authored Jan 23, 2025
1 parent ed72c27 commit 210098c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/react-native-reanimated/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ def getReanimatedVersion() {
return json.version
}

def getReanimatedMajorVersion() {
def (major, minor, patch) = getReanimatedVersion().tokenize('.')
return major.toInteger()
}

def toPlatformFileString(String path) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
path = path.replace(File.separatorChar, '/' as char)
Expand All @@ -133,7 +128,6 @@ file("$reactNativeRootDir/ReactAndroid/gradle.properties").withInputStream { rea
def REACT_NATIVE_VERSION = reactProperties.getProperty("VERSION_NAME")
def REACT_NATIVE_MINOR_VERSION = REACT_NATIVE_VERSION.startsWith("0.0.0-") ? 1000 : REACT_NATIVE_VERSION.split("\\.")[1].toInteger()
def REANIMATED_VERSION = getReanimatedVersion()
def REANIMATED_MAJOR_VERSION = getReanimatedMajorVersion()
def IS_NEW_ARCHITECTURE_ENABLED = isNewArchitectureEnabled()

// We download various C++ open-source dependencies into downloads.
Expand Down

0 comments on commit 210098c

Please sign in to comment.