Skip to content

Commit 45f693a

Browse files
authored
Remove prefab linking workaround on Android (#750)
1 parent e562ace commit 45f693a

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

android/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ buildscript {
99
}
1010
}
1111

12-
task prepareKotlinBuildScriptModel {
13-
// This task is run during Gradle Sync in Android Studio.
14-
}
15-
1612
def reactNativeArchitectures() {
1713
def value = project.getProperties().get("reactNativeArchitectures")
1814
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
@@ -180,12 +176,3 @@ dependencies {
180176
implementation "com.facebook.react:hermes-android" // version substituted by RNGP
181177
implementation project(":react-native-worklets")
182178
}
183-
184-
// This fixes linking errors due to undefined symbols from libworklets.so.
185-
// During Gradle Sync, Android Gradle Plugin runs Prefab and treats worklets
186-
// like a header-only library. During build, config files are not regenerated
187-
// because the cache key does not change and AGP thinks that they are up-to-date.
188-
afterEvaluate {
189-
prepareKotlinBuildScriptModel.dependsOn(":react-native-worklets:prefabDebugPackage")
190-
prepareKotlinBuildScriptModel.dependsOn(":react-native-worklets:prefabReleasePackage")
191-
}

0 commit comments

Comments
 (0)