Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
78cc3f7
refactor(Worklets): get valueUnpackerCode in compilation time
tjzel May 7, 2025
a8889f3
feat: generate header and source
tjzel May 7, 2025
211f12f
feat: ios
tjzel May 7, 2025
f323e72
fix: use path.resolve
tjzel May 7, 2025
7d2798c
chore: add comments
tjzel May 7, 2025
559ce9c
Merge branch 'main' into @tjzel/worklets/native-value-unpacker
tjzel May 7, 2025
b2a0b27
chore: fix linting
tjzel May 7, 2025
4940935
chore: debug ci
tjzel May 7, 2025
ac0e80d
chore: debug ci
tjzel May 7, 2025
d066349
chore: debug ci
tjzel May 7, 2025
5a2bb66
chore: debug ci
tjzel May 7, 2025
ab894e6
chore: debug ci
tjzel May 7, 2025
ffcd836
fix: extraneous include
tjzel May 8, 2025
b3c0e0b
chore: fix formatting
tjzel May 8, 2025
39b8cd4
chore: fix linting
tjzel May 8, 2025
82e2bc9
Merge branch 'main' into @tjzel/worklets/native-value-unpacker
tjzel May 8, 2025
265698c
feat(Worklets): inject WorkletsModuleProxy in worklet runtimes
tjzel May 8, 2025
2148495
chore: review changes
tjzel May 13, 2025
4405f11
chore: use WorkletsError
tjzel May 13, 2025
23f1400
chore: linting
tjzel May 13, 2025
4f1580e
Merge branch 'main' into @tjzel/worklets/native-value-unpacker
tjzel May 13, 2025
5f4d77b
Merge branch '@tjzel/worklets/native-value-unpacker' into @tjzel/work…
tjzel May 13, 2025
c5a5d31
Merge branch 'main' into @tjzel/worklets/inject-worklets-module-proxy
tjzel May 13, 2025
a64cb04
chore: headers
tjzel May 13, 2025
abdb1af
Merge branch 'main' into @tjzel/worklets/inject-worklets-module-proxy
tjzel May 14, 2025
ec0e3ad
feat(Worklets): new ShareableImport type
tjzel May 14, 2025
6d6c215
feat(Worklets): generated worklets
tjzel May 14, 2025
ae4c676
Merge branch 'main' into @tjzel/worklets/inject-worklets-module-proxy
tjzel May 14, 2025
d861b92
Merge branch '@tjzel/worklets/inject-worklets-module-proxy' into @tjz…
tjzel May 14, 2025
6804bd0
Merge branch '@tjzel/worklets/shareable-import' into @tjzel/worklets/…
tjzel May 14, 2025
ec38a3c
chore: cleanup
tjzel May 14, 2025
6d2d6de
chore: cleanup
tjzel May 14, 2025
a0670ce
chore: cleanup
tjzel May 14, 2025
bf2435f
Merge branch '@tjzel/worklets/shareable-import' into @tjzel/worklets/…
tjzel May 14, 2025
ce01d27
chore: cleanup
tjzel May 14, 2025
1ac5753
Merge branch '@tjzel/worklets/shareable-import' into @tjzel/worklets/…
tjzel May 14, 2025
1790c6c
chore: cleanup
tjzel May 14, 2025
9cfa52c
Merge branch '@tjzel/worklets/shareable-import' into @tjzel/worklets/…
tjzel May 14, 2025
448595e
chore: move to separate file
tjzel May 14, 2025
80fe8f1
chore: fix formatting
tjzel May 14, 2025
fe58678
refactor: runtime-specific PlatformChecker
tjzel May 14, 2025
3fe4dcd
chore: linting
tjzel May 14, 2025
b7475c8
chore: add comment
tjzel May 18, 2025
c3676e5
Merge branch 'main' into @tjzel/worklets/inject-worklets-module-proxy
tjzel May 19, 2025
a3d6502
chore: pull upstream changes
tjzel May 20, 2025
c2d2950
Merge branch 'main' into @tjzel/worklets/inject-worklets-module-proxy
tjzel May 20, 2025
5cff03c
chore: add TODO
tjzel May 20, 2025
f389d90
Merge branch '@tjzel/worklets/inject-worklets-module-proxy' into @tjz…
tjzel May 20, 2025
dbca5c7
Merge branch '@tjzel/worklets/shareable-import' into @tjzel/worklets/…
tjzel May 20, 2025
b76b3c8
e Merge branch '@tjzel/worklets/generate-worklets' into @tjzel/workle…
tjzel May 20, 2025
13c0407
feat(Worklets): add Worklet Runtime bundle entry
tjzel May 20, 2025
9dc01dd
chore: yarn.lock
tjzel May 20, 2025
0bcfe5d
refactor: handle runtime binding
tjzel May 20, 2025
69b8123
feat(Worklets): experimental bundling internal native apis and featur…
tjzel May 22, 2025
33c32cc
chore: cleanup
tjzel May 22, 2025
4214808
chore: cleanup
tjzel May 22, 2025
0c6d144
Merge branch 'main' into @tjzel/worklets/generate-worklets
tjzel May 22, 2025
e60eec9
chore: cleanup
tjzel May 22, 2025
251c037
chore: cleanup
tjzel May 22, 2025
b54a001
chore: cleanup
tjzel May 23, 2025
186f2da
feat: resolve global and local bounds variable names conflicts
tjzel May 23, 2025
65fc8a6
fix: missing header on iOS
tjzel May 23, 2025
c35231d
Merge branch '@tjzel/worklets/experimental-bundling-abis' into @tjzel…
tjzel May 23, 2025
bbbb320
chore: update ValueUnpacker
tjzel May 23, 2025
f3cb03d
feat(Worklets): workletizable modules
tjzel May 26, 2025
1206e62
chore: patches for experimental bundling
tjzel May 26, 2025
d80b6fb
fix: mishandling relative imports
tjzel May 26, 2025
ce3a102
Merge branch '@tjzel/worklets/workletizable-modules' into @tjzel/work…
tjzel May 26, 2025
8da45d3
Merge branch 'main' into @tjzel/worklets/generate-worklets
tjzel May 27, 2025
2c83fc2
Merge branch '@tjzel/worklets/generate-worklets' into @tjzel/worklets…
tjzel May 27, 2025
baf57a0
Merge branch '@tjzel/worklets/platform-chequer' into @tjzel/worklets/…
tjzel May 27, 2025
a34c711
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel May 27, 2025
73f0faf
chore: cleanup
tjzel May 27, 2025
78c71cd
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel May 27, 2025
c753cbb
Merge branch '@tjzel/worklets/experimental-bundling-abis' into @tjzel…
tjzel May 27, 2025
18b3590
Merge branch '@tjzel/worklets/locals-and-globals' into @tjzel/worklet…
tjzel May 27, 2025
cc3cfa5
Merge branch '@tjzel/worklets/workletizable-modules' into @tjzel/work…
tjzel May 27, 2025
5c3783c
fix: compiling issue
tjzel May 27, 2025
9a06c05
Merge branch 'main' into @tjzel/worklets/generate-worklets
tjzel Jun 4, 2025
47d0f51
Merge branch '@tjzel/worklets/generate-worklets' into @tjzel/worklets…
tjzel Jun 4, 2025
8232311
chore: remove chrome debugger
tjzel Jun 4, 2025
be956d3
Merge branch 'main' into @tjzel/worklets/platform-chequer
tjzel Jun 4, 2025
243a8d6
chore: migrate to constants
tjzel Jun 4, 2025
9f0acaa
Merge branch '@tjzel/worklets/platform-chequer' into @tjzel/worklets/…
tjzel Jun 4, 2025
e4530c4
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel Jun 4, 2025
c076250
Merge branch '@tjzel/worklets/experimental-bundling-abis' into @tjzel…
tjzel Jun 4, 2025
da6190b
Merge branch '@tjzel/worklets/locals-and-globals' into @tjzel/worklet…
tjzel Jun 4, 2025
766574e
Merge branch 'main' into @tjzel/worklets/runtime-specific-javascript
tjzel Jun 5, 2025
fa7e0a4
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel Jun 5, 2025
7fb3288
chore: cleanup
tjzel Jun 5, 2025
a796da9
chore: fix circular dependency with callguard
tjzel Jun 5, 2025
6f34b81
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel Jun 5, 2025
6503cff
chore: change require to import
tjzel Jun 5, 2025
5ecf61b
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel Jun 5, 2025
96a2fe0
chore: cleanup
tjzel Jun 5, 2025
cb16834
Merge branch '@tjzel/worklets/runtime-specific-javascript' into @tjze…
tjzel Jun 5, 2025
42b7d97
Merge branch '@tjzel/worklets/experimental-bundling-abis' into @tjzel…
tjzel Jun 5, 2025
761c9a7
Merge branch '@tjzel/worklets/locals-and-globals' into @tjzel/worklet…
tjzel Jun 5, 2025
ff315c4
Merge branch 'main' into @tjzel/worklets/experimental-bundling-abis
tjzel Jun 5, 2025
7734f52
Merge branch '@tjzel/worklets/experimental-bundling-abis' into @tjzel…
tjzel Jun 5, 2025
b6b93d1
Merge branch '@tjzel/worklets/locals-and-globals' into @tjzel/worklet…
tjzel Jun 5, 2025
adfea73
Merge branch '@tjzel/worklets/workletizable-modules' into @tjzel/work…
tjzel Jun 5, 2025
2c1e354
chore: apply formatting
tjzel Jun 5, 2025
3a083a9
chore: fix rn script
tjzel Jun 5, 2025
ee92f7c
Merge branch 'main' into @tjzel/worklets/workletizable-modules
tjzel Jun 5, 2025
b960ac8
Merge branch '@tjzel/worklets/workletizable-modules' into @tjzel/work…
tjzel Jun 5, 2025
d223c86
Merge branch 'main' into @tjzel/worklets/patches-for-experimental-bun…
tjzel Jun 5, 2025
597fb8c
chore: cleanup
tjzel Jun 5, 2025
e8e8cad
chore: update readme
tjzel Jun 5, 2025
412d0f1
chore: add condition
tjzel Jun 6, 2025
e6d6370
Merge branch 'main' into @tjzel/worklets/patches-for-experimental-bun…
tjzel Jun 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/dist/utils/loadMetroConfig.js b/dist/utils/loadMetroConfig.js
index c0749e111d342611631c3eedc9c757936e8ff225..5f98013be1ce431f0dc201341ed441675ee37363 100644
--- a/dist/utils/loadMetroConfig.js
+++ b/dist/utils/loadMetroConfig.js
@@ -32,7 +32,8 @@ function getOverrideConfig(ctx, config) {
return {
resolver,
serializer: {
- getModulesRunBeforeMainModule: () => [
+ getModulesRunBeforeMainModule: (entryFile) => [
+ ...(config.serializer.getModulesRunBeforeMainModule(entryFile) ?? []),
require.resolve(
_path.default.join(
ctx.reactNativePath,
259 changes: 259 additions & 0 deletions .yarn/patches/react-native-npm-0.80.0-rc.4-ad01aea617.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
diff --git a/React/Base/RCTBundleConsumer.h b/React/Base/RCTBundleConsumer.h
new file mode 100644
index 0000000000000000000000000000000000000000..92cea8b0f3569c03cedfd825846c7d452938c5b9
--- /dev/null
+++ b/React/Base/RCTBundleConsumer.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+#import <Foundation/Foundation.h>
+#import <React/NSBigStringBuffer.h>
+
+/**
+ * Provides the interface needed to register a Bundle Consumer module.
+ */
+@protocol RCTBundleConsumer <NSObject>
+
+@property(nonatomic, strong, readwrite) NSBigStringBuffer *scriptBuffer;
+
+@property(nonatomic, strong, readwrite) NSString *sourceURL;
+
+@end
diff --git a/React/CxxBridge/NSBigStringBuffer.h b/React/CxxBridge/NSBigStringBuffer.h
new file mode 100644
index 0000000000000000000000000000000000000000..f4e16ce9f1c385b75bd4894e95b66e1b1b71d451
--- /dev/null
+++ b/React/CxxBridge/NSBigStringBuffer.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+#import <Foundation/Foundation.h>
+
+#ifdef __cplusplus
+#import <jsireact/JSIExecutor.h>
+#import <memory>
+
+using namespace facebook;
+using namespace facebook::react;
+#endif // __cplusplus
+
+@interface NSBigStringBuffer : NSObject
+#ifdef __cplusplus
+
+{
+ std::shared_ptr<const BigStringBuffer> _buffer;
+}
+
+- (instancetype)initWithSharedPtr:
+ (const std::shared_ptr<const BigStringBuffer> &)buffer;
+- (const std::shared_ptr<const BigStringBuffer> &)getBuffer;
+#endif // __cplusplus
+
+@end
diff --git a/React/CxxBridge/NSBigStringBuffer.mm b/React/CxxBridge/NSBigStringBuffer.mm
new file mode 100644
index 0000000000000000000000000000000000000000..20ec1a93bc7f418c0690db8c5519174086e962c2
--- /dev/null
+++ b/React/CxxBridge/NSBigStringBuffer.mm
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+#import "NSBigStringBuffer.h"
+
+@implementation NSBigStringBuffer
+
+- (instancetype)initWithSharedPtr:(const std::shared_ptr<const BigStringBuffer>&)buffer {
+ if (self = [super init]) {
+ _buffer = buffer;
+ }
+ return self;
+}
+
+- (const std::shared_ptr<const BigStringBuffer>&)getBuffer {
+ return _buffer;
+}
+
+@end
diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/BundleConsumer.kt b/ReactAndroid/src/main/java/com/facebook/react/bridge/BundleConsumer.kt
new file mode 100644
index 0000000000000000000000000000000000000000..a8e3bbaa4cd99e61db7f94a7dac5f04ea9d4b8ad
--- /dev/null
+++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/BundleConsumer.kt
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+package com.facebook.react.bridge
+
+public interface BundleConsumer {
+ public fun setSourceFileName(sourceFileName: String)
+ public fun setSourceURL(sourceURL: String)
+}
diff --git a/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt b/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt
index cccc6076bd6d249e845ae65ae00273319875caa7..6d3eddc84cb8d94873f0e600044cffdc587cb2d6 100644
--- a/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt
+++ b/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt
@@ -20,6 +20,7 @@ import com.facebook.react.DebugCorePackage
import com.facebook.react.ReactPackage
import com.facebook.react.ViewManagerOnDemandReactPackage
import com.facebook.react.bridge.Arguments
+import com.facebook.react.bridge.BundleConsumer
import com.facebook.react.bridge.JSBundleLoader
import com.facebook.react.bridge.JSBundleLoaderDelegate
import com.facebook.react.bridge.JavaScriptContextHolder
@@ -297,6 +298,11 @@ internal class ReactInstance(
loadSynchronously: Boolean
) {
context.setSourceURL(sourceURL)
+
+ val workletsModule = turboModuleManager.getModule("WorkletsModule") as? BundleConsumer
+ workletsModule?.setSourceFileName(fileName)
+ workletsModule?.setSourceURL(sourceURL)
+
loadJSBundleFromFile(fileName, sourceURL)
}

diff --git a/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp b/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp
index 5ffd7492ba8132fce79ce1879b9f2a97f9810e62..f94f32acfc04a56d81e1fda688abcfd2ceb48878 100644
--- a/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp
+++ b/ReactAndroid/src/main/jni/react/runtime/jni/JReactInstance.cpp
@@ -140,7 +140,8 @@ void JReactInstance::loadJSBundleFromAssets(

auto manager = extractAssetManager(assetManager);
auto script = loadScriptFromAssets(manager, sourceURL);
- instance_->loadScript(std::move(script), sourceURL);
+ auto buffer = std::make_shared<BigStringBuffer>(std::move(script));
+ instance_->loadScript(buffer, sourceURL);
}

void JReactInstance::loadJSBundleFromFile(
@@ -149,7 +150,8 @@ void JReactInstance::loadJSBundleFromFile(
std::unique_ptr<const JSBigFileString> script;
RecoverableError::runRethrowingAsRecoverable<std::system_error>(
[&fileName, &script]() { script = JSBigFileString::fromPath(fileName); });
- instance_->loadScript(std::move(script), sourceURL);
+ auto buffer = std::make_shared<BigStringBuffer>(std::move(script));
+ instance_->loadScript(buffer, sourceURL);
}

/**
diff --git a/ReactCommon/react/runtime/ReactInstance.cpp b/ReactCommon/react/runtime/ReactInstance.cpp
index db92e3e75ca49ecd41467dc7a656dc10ffda5077..96a041eaf8d57658f68944241a0c146e81b62d95 100644
--- a/ReactCommon/react/runtime/ReactInstance.cpp
+++ b/ReactCommon/react/runtime/ReactInstance.cpp
@@ -213,17 +213,16 @@ std::string simpleBasename(const std::string& path) {
* preferably via the runtimeExecutor_.
*/
void ReactInstance::loadScript(
- std::unique_ptr<const JSBigString> script,
+ const std::shared_ptr<const BigStringBuffer>& script,
const std::string& sourceURL,
std::function<void(jsi::Runtime& runtime)>&& beforeLoad,
std::function<void(jsi::Runtime& runtime)>&& afterLoad) {
- auto buffer = std::make_shared<BigStringBuffer>(std::move(script));
std::string scriptName = simpleBasename(sourceURL);

runtimeScheduler_->scheduleWork([this,
scriptName,
sourceURL,
- buffer = std::move(buffer),
+ script,
weakBufferedRuntimeExecuter =
std::weak_ptr<BufferedRuntimeExecutor>(
bufferedRuntimeExecutor_),
@@ -239,7 +238,7 @@ void ReactInstance::loadScript(
ReactMarker::RUN_JS_BUNDLE_START, scriptName.c_str());
}

- runtime.evaluateJavaScript(buffer, sourceURL);
+ runtime.evaluateJavaScript(script, sourceURL);

/**
* TODO(T183610671): We need a safe/reliable way to enable the js
diff --git a/ReactCommon/react/runtime/ReactInstance.h b/ReactCommon/react/runtime/ReactInstance.h
index 51709eebcd7ac58584294c1a5125eff5e82587fc..2868f9ef52c311d56360ced214c391040093d903 100644
--- a/ReactCommon/react/runtime/ReactInstance.h
+++ b/ReactCommon/react/runtime/ReactInstance.h
@@ -48,7 +48,7 @@ class ReactInstance final : private jsinspector_modern::InstanceTargetDelegate {
BindingsInstallFunc bindingsInstallFunc) noexcept;

void loadScript(
- std::unique_ptr<const JSBigString> script,
+ const std::shared_ptr<const BigStringBuffer>& script,
const std::string& sourceURL,
std::function<void(jsi::Runtime& runtime)>&& beforeLoad = nullptr,
std::function<void(jsi::Runtime& runtime)>&& afterLoad = nullptr);
diff --git a/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm b/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm
index e76e1d18df99468f3cd2c9f61b20ad829081ceb5..04fc5e1b32668673e98004b373053f3162f9e8a9 100644
--- a/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm
+++ b/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm
@@ -11,6 +11,7 @@

#import <FBReactNativeSpec/FBReactNativeSpec.h>
#import <React/NSDataBigString.h>
+#import <React/NSBigStringBuffer.h>
#import <React/RCTAssert.h>
#import <React/RCTBridge+Inspector.h>
#import <React/RCTBridge+Private.h>
@@ -19,6 +20,7 @@
#import <React/RCTBridgeModuleDecorator.h>
#import <React/RCTBridgeProxy+Cxx.h>
#import <React/RCTBridgeProxy.h>
+#import <React/RCTBundleConsumer.h>
#import <React/RCTComponentViewFactory.h>
#import <React/RCTConstants.h>
#import <React/RCTCxxUtils.h>
@@ -548,6 +550,7 @@ - (void)_loadScriptFromSource:(RCTSource *)source
}

auto script = std::make_unique<NSDataBigString>(source.data);
+ const auto scriptBuffer = std::make_shared<const BigStringBuffer>(std::move(script));
const auto *url = deriveSourceURL(source.url).UTF8String;

auto beforeLoad = [waitUntilModuleSetupComplete = self->_waitUntilModuleSetupComplete](jsi::Runtime &_) {
@@ -558,7 +561,12 @@ - (void)_loadScriptFromSource:(RCTSource *)source
auto afterLoad = [](jsi::Runtime &_) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"RCTInstanceDidLoadBundle" object:nil];
};
- _reactInstance->loadScript(std::move(script), url, beforeLoad, afterLoad);
+
+ id<RCTBundleConsumer> worklets = (id<RCTBundleConsumer>)[_turboModuleManager moduleForName:"WorkletsModule"];
+ worklets.scriptBuffer = [[NSBigStringBuffer alloc] initWithSharedPtr:scriptBuffer];
+ worklets.sourceURL = @(url);
+
+ _reactInstance->loadScript(scriptBuffer, url, beforeLoad, afterLoad);
}

- (void)_handleJSError:(const JsErrorHandler::ProcessedError &)error withRuntime:(jsi::Runtime &)runtime
diff --git a/scripts/cocoapods/new_architecture.rb b/scripts/cocoapods/new_architecture.rb
index 02a441467bb..f3ff4b90ed1 100644
--- a/scripts/cocoapods/new_architecture.rb
+++ b/scripts/cocoapods/new_architecture.rb
@@ -161,7 +161,7 @@ class NewArchitectureHelper
.uniq{ |p| p.path }
.map{ |p| p.path }

- excluded_info_plist = ["/Pods", "Tests", "metainternal", ".bundle"]
+ excluded_info_plist = ["/Pods", "Tests", "metainternal", ".bundle", "build/", "DerivedData/"]
projectPaths.each do |projectPath|
projectFolderPath = File.dirname(projectPath)
infoPlistFiles = `find #{projectFolderPath} -name "Info.plist"`
2 changes: 1 addition & 1 deletion apps/common-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"madge": "^5.0.1",
"patch-package": "^8.0.0",
"prettier": "^3.3.3",
"react-native": "0.80.0-rc.4",
"react-native": "patch:react-native@npm%3A0.80.0-rc.4#~/.yarn/patches/react-native-npm-0.80.0-rc.4-ad01aea617.patch",
"react-native-monorepo-tools": "^1.2.1",
"react-test-renderer": "19.1.0",
"typescript": "~5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/fabric-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3063,7 +3063,7 @@ SPEC CHECKSUMS:
RNReanimated: 7d3af6c5517cba433226bf09a14b71a714d012a3
RNScreens: 10ca32b82794369e5857df3c8ca5937c415fbfd3
RNSVG: 341f555dbcd83a34d1f058e88df387de7bbc3347
RNWorklets: b468c4a710784f2c0824919a95338b941f6c2760
RNWorklets: d7895ea53694238cd6fba226ae05b652337894fa
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 811c88fda429a3d8f9f242b44e7f261c765020d5

Expand Down
2 changes: 1 addition & 1 deletion apps/fabric-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"common-app": "workspace:*",
"react-native": "0.80.0-rc.4"
"react-native": "patch:react-native@npm%3A0.80.0-rc.4#~/.yarn/patches/react-native-npm-0.80.0-rc.4-ad01aea617.patch"
},
"devDependencies": {
"prettier": "^3.3.3"
Expand Down
2 changes: 1 addition & 1 deletion apps/macos-example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ SPEC CHECKSUMS:
RNGestureHandler: c6b441559fe02f0c07fe2720c9103a8532552ce1
RNReanimated: 761be4fc2c7ebef9de0d103290d49081416d149e
RNSVG: 5b1c237fa3de0db25fe4ba12add0a72b65d6a40e
RNWorklets: 6b2124ecf61b4e2d3f6a5417bb60a878e3ced723
RNWorklets: 6b4fc69a4b73effe891205855ef734a636598c36
SocketRocket: 9ee265c4b5ae2382d18e4ee1d2dd2d7af0ff1ab5
Yoga: 446e6f351a519539ff00a1159fe41e589aab1b94

Expand Down
2 changes: 1 addition & 1 deletion apps/tvos-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ SPEC CHECKSUMS:
ReactCodegen: 3a01f76123e04b8b945d43e5ffccae6f90f4a26e
ReactCommon: 59e7bd3cf331ba77a96a75e6b603abf05883b102
RNReanimated: bdbe194b9f56a80251bdfa4c9c226c3076d2ba73
RNWorklets: 3791e6bdb53e34ec541094d453225a96418dbcc6
RNWorklets: 339f4a7707bb42bf812ca7974fff37a136aa8350
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 770a077e3a222f162c2e0c8a95e7e997b7682a8e

Expand Down
2 changes: 1 addition & 1 deletion apps/web-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"common-app": "workspace:*",
"expo": "^53.0.0",
"react-dom": "19.1.0",
"react-native": "0.80.0-rc.4",
"react-native": "patch:react-native@npm%3A0.80.0-rc.4#~/.yarn/patches/react-native-npm-0.80.0-rc.4-ad01aea617.patch",
"react-native-web": "0.20.0"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
"typescript": "~5.3.0"
},
"resolutions": {
"@react-native/community-cli-plugin@npm:0.80.0-rc.4": "patch:@react-native/community-cli-plugin@npm%3A0.80.0-rc.4#~/.yarn/patches/@react-native-community-cli-plugin-npm-0.80.0-rc.4-af2762c07e.patch"
}
}
2 changes: 1 addition & 1 deletion packages/react-native-reanimated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"madge": "^5.0.1",
"prettier": "^3.3.3",
"react": "19.1.0",
"react-native": "0.80.0-rc.4",
"react-native": "patch:react-native@npm%3A0.80.0-rc.4#~/.yarn/patches/react-native-npm-0.80.0-rc.4-ad01aea617.patch",
"react-native-builder-bob": "patch:react-native-builder-bob@npm%3A0.33.1#~/.yarn/patches/react-native-builder-bob-npm-0.33.1-383d9e23a5.patch",
"react-native-gesture-handler": "patch:react-native-gesture-handler@npm%3A2.25.0#~/.yarn/patches/react-native-gesture-handler-npm-2.25.0-84335ae2d8.patch",
"react-native-web": "0.20.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-native-worklets/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ android {
main {
java {
if (!IS_NEW_ARCHITECTURE_ENABLED) {
srcDirs += "src/worklets/paper"
srcDirs += "src/paper"
}
if (EXPERIMENTAL_BUNDLING) {
srcDirs += "src/experimentalBundling"
} else {
srcDirs += "src/legacyBundling"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.swmansion.worklets;

import com.facebook.react.bridge.BundleConsumer;

public interface WorkletsBundleConsumer extends BundleConsumer {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.swmansion.worklets;

public interface WorkletsBundleConsumer {
void setSourceFileName(String sourceFileName);

void setSourceURL(String sourceURL);
}
Loading
Loading