Skip to content

Commit c1df4c0

Browse files
authored
Merge pull request #88 from chrfalch/fix/duplicate-prefab-sources
fix: remove duplicate headers in prefab
2 parents e2f018e + f2854ab commit c1df4c0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

android/build.gradle

+3-9
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,12 @@ if (isNewArchitectureEnabled()) {
5656
apply plugin: "com.facebook.react"
5757
}
5858

59-
task prepareHeaders1(type: Copy) {
59+
task prepareHeaders(type: Copy) {
6060
from fileTree('../cpp').filter { it.isFile() }
6161
into "${project.buildDir}/headers/rnworklets/"
6262
includeEmptyDirs = false
6363
}
6464

65-
task prepareHeaders2(type: Copy) {
66-
from fileTree('../cpp').filter { it.isFile() }
67-
into "${project.buildDir}/headers/rnworklets/react-native-worklets"
68-
includeEmptyDirs = false
69-
}
70-
7165
android {
7266
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
7367

@@ -151,7 +145,7 @@ android {
151145
"**/libjscexecutor.so",
152146
]
153147
}
154-
148+
155149
buildFeatures {
156150
prefabPublishing true
157151
}
@@ -170,4 +164,4 @@ dependencies {
170164
}
171165
}
172166

173-
preBuild.dependsOn("prepareHeaders1", "prepareHeaders2")
167+
preBuild.dependsOn(prepareHeaders)

0 commit comments

Comments
 (0)