Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
@@ -1,9 +1,8 @@
#pragma once

#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/Tools/PlatformDepMethodsHolder.h>

#include <worklets/Compat/StableApi.h>

#include <jsi/jsi.h>

#include <memory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
#include <reanimated/CSS/svg/values/SVGPath.h>
#include <reanimated/CSS/svg/values/SVGStops.h>
#include <reanimated/CSS/svg/values/SVGStrokeDashArray.h>

#include <worklets/Compat/StableApi.h>
#include <reanimated/Compat/WorkletsApi.h>

#include <string>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <reanimated/CSS/interpolation/PropertyInterpolator.h>

#include <worklets/Compat/StableApi.h>
#include <reanimated/Compat/WorkletsApi.h>

#include <memory>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once

#include <worklets/Compat/StableApi.h>
#include <string>

#define EXPECTED_WORKLETS_STABLE_API_VERSION "0.8.0"

static_assert(
std::string(WORKLETS_STABLE_API_VERSION) == EXPECTED_WORKLETS_STABLE_API_VERSION,
"Incompatible worklets stable API version. Expected " EXPECTED_WORKLETS_STABLE_API_VERSION
", but got " WORKLETS_STABLE_API_VERSION ".");
Comment thread
tjzel marked this conversation as resolved.

#undef EXPECTED_WORKLETS_STABLE_API_VERSION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <jsi/jsi.h>
#include <worklets/Compat/StableApi.h>
#include <reanimated/Compat/WorkletsApi.h>

#include <memory>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <jsi/jsi.h>
#include <worklets/Compat/StableApi.h>
#include <reanimated/Compat/WorkletsApi.h>

#include <map>
#include <memory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

#include <react/renderer/graphics/Transform.h>
#include <react/renderer/mounting/ShadowView.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/LayoutAnimations/LayoutAnimationType.h>

#include <worklets/Compat/StableApi.h>

#include <jsi/jsi.h>
#include <stdio.h>
#include <functional>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <react/renderer/componentregistry/ComponentDescriptorFactory.h>
#include <react/renderer/mounting/MountingOverrideDelegate.h>
#include <react/renderer/uimanager/UIManager.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsManager.h>
#include <reanimated/Tools/PlatformDepMethodsHolder.h>
#include <worklets/Compat/StableApi.h>

#include <memory>
#include <optional>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#pragma once

#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsManager.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsProxyCommon.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsUtils.h>
#include <reanimated/Tools/PlatformDepMethodsHolder.h>

#include <worklets/Compat/StableApi.h>

#include <react/renderer/componentregistry/ComponentDescriptorFactory.h>
#include <react/renderer/graphics/Transform.h>
#include <react/renderer/mounting/MountingOverrideDelegate.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include <react/renderer/scheduler/Scheduler.h>
#include <react/renderer/uimanager/UIManagerAnimationDelegate.h>
#include <react/renderer/uimanager/UIManagerBinding.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsManager.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsProxyCommon.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsUtils.h>
#include <reanimated/Tools/PlatformDepMethodsHolder.h>
#include <worklets/Compat/StableApi.h>

#include <memory>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <react/renderer/scheduler/Scheduler.h>
#include <react/renderer/uimanager/UIManagerBinding.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/Events/UIEventHandler.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsProxy_Experimental.h>
#include <reanimated/LayoutAnimations/LayoutAnimationsProxy_Legacy.h>
Expand All @@ -8,7 +9,6 @@
#include <reanimated/RuntimeDecorators/UIRuntimeDecorator.h>
#include <reanimated/Tools/FeatureFlags.h>
#include <reanimated/Tools/ReanimatedSystraceSection.h>
#include <worklets/Compat/StableApi.h>

#ifdef __ANDROID__
#include <fbjni/fbjni.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <reanimated/CSS/registries/CSSKeyframesRegistry.h>
#include <reanimated/CSS/registries/CSSTransitionsRegistry.h>
#include <reanimated/CSS/registries/StaticPropsRegistry.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/Events/UIEventHandlerRegistry.h>
#include <reanimated/Fabric/ReanimatedCommitHook.h>
#include <reanimated/Fabric/ReanimatedCommitShadowNode.h>
Expand All @@ -24,7 +25,6 @@
#include <reanimated/NativeModules/ReanimatedModuleProxySpec.h>
#include <reanimated/Tools/PlatformDepMethodsHolder.h>
#include <reanimated/Tools/SingleInstanceChecker.h>
#include <worklets/Compat/StableApi.h>

#include <memory>
#include <set>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <react/fabric/Binding.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/RuntimeDecorators/RNRuntimeDecorator.h>
#include <reanimated/Tools/PlatformDepMethodsHolder.h>
#include <reanimated/Tools/ReanimatedVersion.h>
Expand All @@ -7,7 +8,6 @@
#include <reanimated/android/KeyboardWorkletWrapper.h>
#include <reanimated/android/NativeProxy.h>
#include <reanimated/android/SensorSetter.h>
#include <worklets/Compat/StableApi.h>

#include <memory>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <react/fabric/JFabricUIManager.h>
#include <react/jni/WritableNativeMap.h>
#include <react/renderer/scheduler/Scheduler.h>
#include <reanimated/Compat/WorkletsApi.h>
#include <reanimated/NativeModules/ReanimatedModuleProxy.h>
#include <worklets/Compat/StableApi.h>

#include <memory>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#import <React/RCTScheduler.h>
#import <React/RCTSurfacePresenter.h>

#import <reanimated/Compat/WorkletsApi.h>
#import <reanimated/RuntimeDecorators/RNRuntimeDecorator.h>
#import <reanimated/Tools/SingleInstanceChecker.h>
#import <reanimated/apple/REAAssertJavaScriptQueue.h>
Expand All @@ -11,8 +12,6 @@
#import <reanimated/apple/ReanimatedModule.h>
#import <reanimated/apple/native/NativeProxy.h>

#import <worklets/Compat/StableApi.h>

using namespace facebook::react;
using namespace reanimated;
using namespace worklets;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#if __cplusplus

#import <reanimated/Compat/WorkletsApi.h>
#import <reanimated/NativeModules/ReanimatedModuleProxy.h>
#import <reanimated/apple/REANodesManager.h>
#import <worklets/Compat/StableApi.h>

namespace reanimated {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#pragma once

/**
* Version of `react-native-worklets` which introduced current stable API.
* It can be used by libraries to verify they use a compatible version
* of `react-native-worklets` installed when integrating in C++.
Comment thread
tjzel marked this conversation as resolved.
*/
#define WORKLETS_STABLE_API_VERSION "0.8.0"

#include <cstdint>
#include <functional>
#include <memory>
Expand Down
Loading