react-native-worklets 0.7.0-nightly-20251201-9895af6df → 0.7.0-nightly-20251203-ef543ec28
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/android/build.gradle
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
tasks.configureEach { task ->
|
|
2
|
+
// Make sure that we generate our prefab publication file only after having built the native library
|
|
3
|
+
// so that not a header publication file, but a full configuration publication will be generated, which
|
|
4
|
+
// will include the .so file
|
|
5
|
+
|
|
6
|
+
def prefabConfigurePattern = ~/^prefab(.+)ConfigurePackage$/
|
|
7
|
+
def matcher = task.name =~ prefabConfigurePattern
|
|
8
|
+
if (matcher.matches()) {
|
|
9
|
+
def variantName = matcher[0][1]
|
|
10
|
+
task.outputs.upToDateWhen { false }
|
|
11
|
+
task.dependsOn("externalNativeBuild${variantName}")
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
afterEvaluate {
|
|
16
|
+
def abis = reactNativeArchitectures()
|
|
17
|
+
rootProject.allprojects.each { proj ->
|
|
18
|
+
|
|
19
|
+
if (proj === rootProject) return
|
|
20
|
+
|
|
21
|
+
def dependsOnThisLib = proj.configurations.any { config ->
|
|
22
|
+
config.dependencies.any { dep ->
|
|
23
|
+
dep.group == project.group && dep.name == project.name
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (!dependsOnThisLib && proj != project) return
|
|
28
|
+
|
|
29
|
+
if (!proj.plugins.hasPlugin('com.android.application') && !proj.plugins.hasPlugin('com.android.library')) {
|
|
30
|
+
return
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def variants = proj.android.hasProperty('applicationVariants') ? proj.android.applicationVariants : proj.android.libraryVariants
|
|
34
|
+
// Touch the prefab_config.json files to ensure that in ExternalNativeJsonGenerator.kt we will re-trigger the prefab CLI to
|
|
35
|
+
// generate a libnameConfig.cmake file that will contain our native library (.so).
|
|
36
|
+
// See this condition: https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:build-system/gradle-core/src/main/java/com/android/build/gradle/tasks/ExternalNativeJsonGenerator.kt;l=207-219?q=createPrefabBuildSystemGlue
|
|
37
|
+
variants.all { variant ->
|
|
38
|
+
def variantName = variant.name
|
|
39
|
+
abis.each { abi ->
|
|
40
|
+
def searchDir = new File(proj.projectDir, ".cxx/${variantName}")
|
|
41
|
+
if (!searchDir.exists()) return
|
|
42
|
+
def matches = []
|
|
43
|
+
searchDir.eachDir { randomDir ->
|
|
44
|
+
def prefabFile = new File(randomDir, "${abi}/prefab_config.json")
|
|
45
|
+
if (prefabFile.exists()) matches << prefabFile
|
|
46
|
+
}
|
|
47
|
+
matches.each { prefabConfig ->
|
|
48
|
+
prefabConfig.setLastModified(System.currentTimeMillis())
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -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.7.0-nightly-
|
|
8
|
+
export const jsVersion = '0.7.0-nightly-20251203-ef543ec28';
|
|
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.7.0-nightly-
|
|
6
|
+
export declare const jsVersion = "0.7.0-nightly-20251203-ef543ec28";
|
|
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.7.0-nightly-
|
|
8
|
+
export const jsVersion = '0.7.0-nightly-20251203-ef543ec28';
|