Skip to content

Commit

Permalink
Remove resolveTaskFactory in build.gradle (#6560)
Browse files Browse the repository at this point in the history
## Summary

This PR removes unused function `resolveTaskFactory` in build.gradle.

## Test plan
  • Loading branch information
tomekzaw authored Sep 30, 2024
1 parent 58f8388 commit 98dcf11
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/react-native-reanimated/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -483,28 +483,6 @@ task createNativeDepsDirectories() {
prefabHeadersDir.mkdirs()
}

def resolveTaskFactory(String taskName, String artifactLocalName, File reactNativeAndroidDownloadDir, File reanimatedDownloadDir) {
return tasks.create(name: taskName, dependsOn: createNativeDepsDirectories, type: Copy) {
from reactNativeAndroidDownloadDir
include artifactLocalName
into reanimatedDownloadDir

onlyIf {
// First we check whether the file is already in our download directory
if (file("$reanimatedDownloadDir/$artifactLocalName").isFile()) {
return false
}

// If it is not the case we check whether it was downloaded by ReactAndroid project
if (file("$reactNativeAndroidDownloadDir/$artifactLocalName").isFile()) {
return true
}

return false
}
}
}

task packageNdkLibs(type: Copy) {
from("$buildDir/reanimated-ndk/all")
include("**/libreanimated.so")
Expand Down

0 comments on commit 98dcf11

Please sign in to comment.