Skip to content

Commit 7e75fb3

Browse files
committed
refactor: move ReanimatedVersion to Reanimated
1 parent 50d3f00 commit 7e75fb3

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

packages/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <reanimated/RuntimeDecorators/RNRuntimeDecorator.h>
2-
#include <worklets/Tools/ReanimatedVersion.h>
2+
#include <reanimated/Tools/ReanimatedVersion.h>
33

44
namespace reanimated {
55

packages/react-native-reanimated/Common/cpp/worklets/Tools/ReanimatedVersion.cpp renamed to packages/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
#include <reanimated/Tools/ReanimatedVersion.h>
12
#include <worklets/Tools/JSLogger.h>
2-
#include <worklets/Tools/ReanimatedVersion.h>
33

44
#include <memory>
55
#include <regex>
@@ -13,7 +13,7 @@
1313

1414
using namespace facebook;
1515

16-
namespace worklets {
16+
namespace reanimated {
1717

1818
std::string getReanimatedCppVersion() {
1919
return std::string(REANIMATED_VERSION_STRING);
@@ -54,7 +54,7 @@ bool matchVersion(const std::string &version1, const std::string &version2) {
5454

5555
void checkJSVersion(
5656
jsi::Runtime &rnRuntime,
57-
const std::shared_ptr<JSLogger> &jsLogger) {
57+
const std::shared_ptr<worklets::JSLogger> &jsLogger) {
5858
auto cppVersion = getReanimatedCppVersion();
5959

6060
auto maybeJSVersion =
@@ -92,4 +92,4 @@ bool matchVersion(const std::string &version1, const std::string &version2) {
9292
}
9393
#endif // NDEBUG
9494

95-
}; // namespace worklets
95+
}; // namespace reanimated

packages/react-native-reanimated/Common/cpp/worklets/Tools/ReanimatedVersion.h renamed to packages/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
using namespace facebook;
1111

12-
namespace worklets {
12+
namespace reanimated {
1313

1414
std::string getReanimatedCppVersion();
1515
void injectReanimatedCppVersion(jsi::Runtime &);
1616
bool matchVersion(const std::string &, const std::string &);
17-
void checkJSVersion(jsi::Runtime &, const std::shared_ptr<JSLogger> &);
17+
void checkJSVersion(jsi::Runtime &, const std::shared_ptr<worklets::JSLogger> &);
1818

19-
}; // namespace worklets
19+
}; // namespace reanimated

packages/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <reanimated/LayoutAnimations/LayoutAnimationsManager.h>
22
#include <reanimated/RuntimeDecorators/RNRuntimeDecorator.h>
33
#include <reanimated/Tools/PlatformDepMethodsHolder.h>
4+
#include <reanimated/Tools/ReanimatedVersion.h>
45
#include <reanimated/android/NativeProxy.h>
56

67
#include <worklets/Tools/ReanimatedJSIUtils.h>
7-
#include <worklets/Tools/ReanimatedVersion.h>
88
#include <worklets/WorkletRuntime/ReanimatedRuntime.h>
99
#include <worklets/WorkletRuntime/WorkletRuntime.h>
1010
#include <worklets/WorkletRuntime/WorkletRuntimeCollector.h>

packages/react-native-worklets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "The React Native multithreading library",
55
"scripts": {
6-
"build": "./scripts/replicate-worklets-code.sh && bob build",
6+
"build": "./scripts/duplicate-worklets-code.sh && bob build",
77
"format": "yarn format:js",
88
"format:js": "prettier --write --list-different src",
99
"lint": "yarn lint:js",

0 commit comments

Comments
 (0)