react-native-worklets 0.8.0-nightly-20251204-222f54bb9 → 0.8.0-nightly-20251205-3149e1123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/RNWorklets.podspec
CHANGED
|
@@ -12,6 +12,15 @@ ios_min_version = '13.4'
|
|
|
12
12
|
|
|
13
13
|
feature_flags = "-DWORKLETS_FEATURE_FLAGS=\"#{worklets_get_static_feature_flags()}\""
|
|
14
14
|
version_flags = "-DWORKLETS_VERSION=#{package['version']} -DREACT_NATIVE_MINOR_VERSION=#{$worklets_config[:react_native_minor_version]}"
|
|
15
|
+
worklets_profiling_flag = ENV['IS_WORKLETS_PROFILING'] ? '-DWORKLETS_PROFILING' : ''
|
|
16
|
+
bundle_mode_flag = $worklets_config[:bundle_mode] ? '-DWORKLETS_BUNDLE_MODE' : ''
|
|
17
|
+
# React Native doesn't expose these flags, but not having them
|
|
18
|
+
# can lead to runtime errors due to ABI mismatches.
|
|
19
|
+
# There's also
|
|
20
|
+
# HERMESVM_PROFILER_OPCODE
|
|
21
|
+
# HERMESVM_PROFILER_BB
|
|
22
|
+
# which shouldn't be defined in standard setups.
|
|
23
|
+
hermes_debug_hidden_flags = 'HERMES_ENABLE_DEBUGGER=1'
|
|
15
24
|
|
|
16
25
|
Pod::Spec.new do |s|
|
|
17
26
|
s.name = "RNWorklets"
|
|
@@ -47,16 +56,6 @@ Pod::Spec.new do |s|
|
|
|
47
56
|
if using_hermes && !$worklets_config[:is_tvos_target]
|
|
48
57
|
s.dependency 'React-hermes'
|
|
49
58
|
end
|
|
50
|
-
|
|
51
|
-
# React Native doesn't expose these flags, but not having them
|
|
52
|
-
# can lead to runtime errors due to ABI mismatches.
|
|
53
|
-
# There's also
|
|
54
|
-
# HERMESVM_PROFILER_OPCODE
|
|
55
|
-
# HERMESVM_PROFILER_BB
|
|
56
|
-
# which shouldn't be defined in standard setups.
|
|
57
|
-
hermes_debug_hidden_flags = 'HERMES_ENABLE_DEBUGGER=1'
|
|
58
|
-
|
|
59
|
-
bundle_mode_flag = $worklets_config[:bundle_mode] ? 'WORKLETS_BUNDLE_MODE=1' : ''
|
|
60
59
|
|
|
61
60
|
s.pod_target_xcconfig = {
|
|
62
61
|
"USE_HEADERMAP" => "YES",
|
|
@@ -73,9 +72,9 @@ Pod::Spec.new do |s|
|
|
|
73
72
|
].join(' '),
|
|
74
73
|
"FRAMEWORK_SEARCH_PATHS" => '"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes"',
|
|
75
74
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
76
|
-
"GCC_PREPROCESSOR_DEFINITIONS[config=*Debug*]" => "$(inherited) #{hermes_debug_hidden_flags}
|
|
77
|
-
"GCC_PREPROCESSOR_DEFINITIONS[config=*Release*]" => "$(inherited)
|
|
78
|
-
"OTHER_CFLAGS" => "$(inherited) #{feature_flags} #{version_flags}",
|
|
75
|
+
"GCC_PREPROCESSOR_DEFINITIONS[config=*Debug*]" => "$(inherited) #{hermes_debug_hidden_flags}",
|
|
76
|
+
"GCC_PREPROCESSOR_DEFINITIONS[config=*Release*]" => "$(inherited)",
|
|
77
|
+
"OTHER_CFLAGS" => "$(inherited) #{feature_flags} #{version_flags} #{worklets_profiling_flag} #{bundle_mode_flag}",
|
|
79
78
|
}
|
|
80
79
|
s.xcconfig = {
|
|
81
80
|
"HEADER_SEARCH_PATHS" => [
|
package/android/CMakeLists.txt
CHANGED
|
@@ -21,6 +21,9 @@ string(
|
|
|
21
21
|
|
|
22
22
|
string(APPEND CMAKE_CXX_FLAGS " -fno-omit-frame-pointer -fstack-protector-all")
|
|
23
23
|
|
|
24
|
+
if(${WORKLETS_PROFILING})
|
|
25
|
+
string(APPEND CMAKE_CXX_FLAGS " -DWORKLETS_PROFILING")
|
|
26
|
+
endif()
|
|
24
27
|
if(${IS_REANIMATED_EXAMPLE_APP})
|
|
25
28
|
string(APPEND CMAKE_CXX_FLAGS " -DIS_REANIMATED_EXAMPLE_APP -Wpedantic")
|
|
26
29
|
endif()
|
package/android/build.gradle
CHANGED
|
@@ -103,6 +103,7 @@ def IS_REANIMATED_EXAMPLE_APP = safeAppExtGet("isReanimatedExampleApp", false)
|
|
|
103
103
|
def BUNDLE_MODE = safeAppExtGet("workletsBundleMode", false)
|
|
104
104
|
def WORKLETS_FEATURE_FLAGS = getStaticFeatureFlags()
|
|
105
105
|
def HERMES_V1_ENABLED = safeAppExtGet("hermesV1Enabled", false)
|
|
106
|
+
def WORKLETS_PROFILING = safeAppExtGet("enableWorkletsProfiling", false)
|
|
106
107
|
|
|
107
108
|
// Set version for prefab
|
|
108
109
|
version WORKLETS_VERSION
|
|
@@ -183,6 +184,7 @@ android {
|
|
|
183
184
|
versionCode 1
|
|
184
185
|
versionName WORKLETS_VERSION
|
|
185
186
|
|
|
187
|
+
buildConfigField("boolean", "WORKLETS_PROFILING", WORKLETS_PROFILING.toString())
|
|
186
188
|
buildConfigField("boolean", "IS_INTERNAL_BUILD", "false")
|
|
187
189
|
buildConfigField("int", "EXOPACKAGE_FLAGS", "0")
|
|
188
190
|
buildConfigField("int", "REACT_NATIVE_MINOR_VERSION", REACT_NATIVE_MINOR_VERSION.toString())
|
|
@@ -197,6 +199,7 @@ android {
|
|
|
197
199
|
"-DJS_RUNTIME=${JS_RUNTIME}",
|
|
198
200
|
"-DIS_REANIMATED_EXAMPLE_APP=${IS_REANIMATED_EXAMPLE_APP}",
|
|
199
201
|
"-DWORKLETS_BUNDLE_MODE=${BUNDLE_MODE}",
|
|
202
|
+
"-DWORKLETS_PROFILING=${WORKLETS_PROFILING}",
|
|
200
203
|
"-DWORKLETS_VERSION=${WORKLETS_VERSION}",
|
|
201
204
|
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
|
|
202
205
|
"-DWORKLETS_FEATURE_FLAGS=${WORKLETS_FEATURE_FLAGS}",
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* version used to build the native part of the library in runtime. Remember to
|
|
6
6
|
* keep this in sync with the version declared in `package.json`
|
|
7
7
|
*/
|
|
8
|
-
export const jsVersion = '0.8.0-nightly-
|
|
8
|
+
export const jsVersion = '0.8.0-nightly-20251205-3149e1123';
|
|
9
9
|
//# sourceMappingURL=jsVersion.js.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* version used to build the native part of the library in runtime. Remember to
|
|
4
4
|
* keep this in sync with the version declared in `package.json`
|
|
5
5
|
*/
|
|
6
|
-
export declare const jsVersion = "0.8.0-nightly-
|
|
6
|
+
export declare const jsVersion = "0.8.0-nightly-20251205-3149e1123";
|
|
7
7
|
//# sourceMappingURL=jsVersion.d.ts.map
|
package/package.json
CHANGED
package/src/debug/jsVersion.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* version used to build the native part of the library in runtime. Remember to
|
|
6
6
|
* keep this in sync with the version declared in `package.json`
|
|
7
7
|
*/
|
|
8
|
-
export const jsVersion = '0.8.0-nightly-
|
|
8
|
+
export const jsVersion = '0.8.0-nightly-20251205-3149e1123';
|