react-native-update 10.38.0-beta.3 → 10.38.1
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.
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
export function reactNativeUpdatePlugin() {
|
|
5
|
+
return {
|
|
6
|
+
pluginId: 'reactNativeUpdatePlugin',
|
|
7
|
+
apply() {
|
|
8
|
+
const cwd = process.cwd();
|
|
9
|
+
const metaFilePath = path.resolve(
|
|
10
|
+
cwd,
|
|
11
|
+
'entry/src/main/resources/rawfile/meta.json',
|
|
12
|
+
);
|
|
13
|
+
fs.mkdirSync(path.dirname(metaFilePath), { recursive: true });
|
|
14
|
+
|
|
15
|
+
const moduleJsonPath = path.resolve(cwd, 'AppScope/app.json5');
|
|
16
|
+
let versionName = '';
|
|
17
|
+
if (fs.existsSync(moduleJsonPath)) {
|
|
18
|
+
const content = fs.readFileSync(moduleJsonPath, 'utf-8');
|
|
19
|
+
const match = content.match(
|
|
20
|
+
/(?:"versionName"|versionName):\s*["']([^"']+)["']/,
|
|
21
|
+
);
|
|
22
|
+
versionName = match?.[1] || '';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const metaContent = {
|
|
26
|
+
pushy_build_time: String(Date.now()),
|
|
27
|
+
versionName,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
fs.writeFileSync(metaFilePath, JSON.stringify(metaContent, null, 2));
|
|
31
|
+
console.log(`Build time written to ${metaFilePath}`);
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
package/harmony/pushy.har
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-update",
|
|
3
|
-
"version": "10.38.
|
|
3
|
+
"version": "10.38.1",
|
|
4
4
|
"description": "react-native hot update",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"prepack": "bun submodule && bun lint",
|
|
11
11
|
"lint": "eslint \"src/*.@(ts|tsx|js|jsx)\" && tsc --noEmit",
|
|
12
12
|
"submodule": "git submodule update --init --recursive",
|
|
13
|
-
"test": "
|
|
13
|
+
"test": "bun test src/__tests__",
|
|
14
14
|
"test:patch-core": "./scripts/test-patch-core.sh",
|
|
15
15
|
"build:harmony-har": "node scripts/build-harmony-har.js",
|
|
16
16
|
"build:so": "bun submodule && $ANDROID_HOME/ndk/28.2.13676358/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_APPLICATION_MK=android/jni/Application.mk NDK_LIBS_OUT=android/lib && ./scripts/prune-host-stl.sh android/lib",
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
"ts-jest": "^29.4.6",
|
|
79
79
|
"typescript": "^5.6.3"
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
arguments=--init-script /var/folders/l6/0fn3x28s5s585ld3p04gsy1h0000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/l6/0fn3x28s5s585ld3p04gsy1h0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
|
|
2
|
-
auto.sync=false
|
|
3
|
-
build.scans.enabled=false
|
|
4
|
-
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
|
|
5
|
-
connection.project.dir=
|
|
6
|
-
eclipse.preferences.version=1
|
|
7
|
-
gradle.user.home=
|
|
8
|
-
java.home=/Users/sunny/.sdkman/candidates/java/17.0.9-zulu/zulu-17.jdk/Contents/Home
|
|
9
|
-
jvm.arguments=
|
|
10
|
-
offline.mode=false
|
|
11
|
-
override.workspace.settings=true
|
|
12
|
-
show.console.view=true
|
|
13
|
-
show.executions.view=true
|