Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed Jan 21, 2025
1 parent ceee2f7 commit 62c9488
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace facebook;
namespace worklets {

std::string getReanimatedCppVersion() {
return std::string("3.17.0");
return std::string(REANIMATED_VERSION_STRING);
}

void injectReanimatedCppVersion(jsi::Runtime &rnRuntime) {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-reanimated/RNReanimated.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ Pod::Spec.new do |s|
s.platforms = { :ios => ios_min_version, :tvos => "9.0", :osx => "10.14", :visionos => "1.0" }
s.source = { :git => "https://github.com/software-mansion/react-native-reanimated.git", :tag => "#{s.version}" }

# TODO: Uncomment me when dynamic worklets linking is ready
if File.directory?(File.join(__dir__, "../react-native-worklets"))
# This condition is really naΓ―ve...
# This condition is really naΓ―ve, it could potentially
# break if `react-native-worklets` is hoisted`.
s.dependency "RNWorklets"
else
s.subspec "worklets" do |ss|
Expand Down
2 changes: 0 additions & 2 deletions packages/react-native-reanimated/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ def thirdPartyNdkDir = new File("$buildDir/third-party-ndk")
def reactNativeThirdParty = new File("$reactNativeRootDir/ReactAndroid/src/main/jni/third-party")
def reactNativeAndroidDownloadDir = new File("$reactNativeRootDir/ReactAndroid/build/downloads")

// TODO: Uncomment me when when dynamic worklets linking is ready
def hasExternalWorklets = rootProject.subprojects.find { it.name == 'react-native-worklets' } != null
// def hasExternalWorklets = false

def workletsPrefabHeadersDir = project.file("$buildDir/prefab-headers/worklets")
def reanimatedPrefabHeadersDir = project.file("$buildDir/prefab-headers/reanimated")
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-worklets/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ lib/
apple/generated
android/generated

# Duplicate worklets code
# Duplicated worklets code
apple/duplicated
android/src/duplicated
Common/duplicated
3 changes: 0 additions & 3 deletions packages/react-native-worklets/RNWorklets.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ Pod::Spec.new do |s|
ss.header_mappings_dir = "Common/duplicated/cpp/worklets"

ss.subspec "apple" do |sss|
# Please be careful with the snakes.
# 🐍🐍🐍
# Thank you for your understanding.
sss.source_files = "apple/duplicated/worklets/**/*.{mm,h,m}"
sss.header_dir = "worklets"
sss.header_mappings_dir = "apple/duplicated/worklets"
Expand Down
1 change: 0 additions & 1 deletion packages/react-native-worklets/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ set(COMMON_CPP_DIR "${CMAKE_SOURCE_DIR}/../Common/cpp")
set(DUPLICATED_ANDROID_CPP_DIR "${CMAKE_SOURCE_DIR}/src/duplicated/main/cpp")
set(DUPLICATED_COMMON_CPP_DIR "${CMAKE_SOURCE_DIR}/../Common/duplicated/cpp")

# TODO: Uncomment me when worklets get some sources
add_subdirectory("${ANDROID_CPP_DIR}/worklets")
2 changes: 1 addition & 1 deletion packages/react-native-worklets/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-worklets",
"version": "0.0.1",
"description": "πŸš€",
"description": "The React Native multithreading library",
"scripts": {
"build": "./scripts/replicate-worklets-code.sh && bob build",
"format": "yarn format:js",
Expand Down

0 comments on commit 62c9488

Please sign in to comment.