You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c966897
Browse filesBrowse the repository at this point in the historyBrowse files
feat!: the build step runs the CLI's binary create — the Xcode script is scripts/binary-create-xcode.sh, the Gradle task createHotCodePushBinary
The CLI renamed bundle embed to binary create, so an app's Xcode phase names the new script and the CLI from 4e278c3 on runs it.
The baseline's preparation finds the phase by the script it runs, whichever name the demo gives it.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ When code and plan disagree, stop and surface it; never improvise.
13
13
src/ NativeHotCodePush.ts (the Codegen spec), hot-code-push.ts (the API object), use-updates.ts (the hook), definitions.ts
14
14
ios/ the Turbo Module (Objective-C++), the runtime and the bundle loader (Swift) over HotCodePushProtocol
15
15
android/src/main/java/com/hotcodepush/reactnative the Turbo Module, the runtime, the bundle loader and the React host over com.hotcodepush:protocol-android
16
-
android/hotcodepush.gradle the embed task the app's build.gradle applies
17
-
scripts/embed-xcode.sh the embed step the app's Xcode phase runs
16
+
android/hotcodepush.gradle the task that runs binary create, applied by the app's build.gradle
17
+
scripts/binary-create-xcode.sh binary create as the app's Xcode phase runs it
18
18
benchmarks/ the size and cold-start baseline, measured on the demo
The SDK reads `hotcodepush.json` from the app's resources, which the embed step writes on every native build that bundles the JavaScript. On iOS it is a Run Script phase after "Bundle React Native code and images":
36
+
The SDK reads `hotcodepush.json` from the app's resources, which the build step, the CLI's `binary create`, writes on every native build that bundles the JavaScript. On iOS it is a Run Script phase after "Bundle React Native code and images":
Copy file name to clipboardExpand all lines: benchmarks/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ What the package adds to an app, measured on the demo app and guarded from then
13
13
14
14
The first paint is the `[baseline] first paint` line both variants log on their first animation frame, read from the JavaScript console: logcat on Android, the unified log on iOS.
15
15
Both numbers come from release builds, since a debug build asks Metro for its JavaScript and the SDK stays off in it.
16
-
The "without" variant is the demo with the package and every line `init` wired removed — the embed step in Xcode and Gradle, the bundle the two apps ask the SDK for, the pinned pod — and the screen swapped for the same screen with nothing behind it.
16
+
The "without" variant is the demo with the package and every line `init` wired removed — the build step in Xcode and Gradle, the bundle the two apps ask the SDK for, the pinned pod — and the screen swapped for the same screen with nothing behind it.
17
17
18
-
The sizes are measured with the embed step unwired in the "with" variant too, `--no-embed`: the step needs a login, the resource file it writes weighs a few kilobytes against a binary of tens of megabytes, and the guard in CI holds no credential.
19
-
The cold starts are measured with the embed step in place, against a stack the CLI is logged in to, since an app without its resource file starts no SDK.
18
+
The sizes are measured with the build step unwired in the "with" variant too, `--no-binary-create`: the step needs a login, the resource file it writes weighs a few kilobytes against a binary of tens of megabytes, and the guard in CI holds no credential.
19
+
The cold starts are measured with the build step in place, against a stack the CLI is logged in to, since an app without its resource file starts no SDK.
20
20
21
21
## Where the bytes sit
22
22
@@ -28,13 +28,13 @@ The simulator app grows by about 3.6 MB, nearly all of it in the `HotCodePushDem
28
28
29
29
```sh
30
30
npm run build && npm pack --pack-destination /tmp
31
-
node benchmarks/prepare-demo.mjs ../react-native-code-push-demo /tmp/baseline/with with /tmp/hotcodepush-react-native-code-push-0.0.0.tgz --no-embed
31
+
node benchmarks/prepare-demo.mjs ../react-native-code-push-demo /tmp/baseline/with with /tmp/hotcodepush-react-native-code-push-0.0.0.tgz --no-binary-create
32
32
node benchmarks/prepare-demo.mjs ../react-native-code-push-demo /tmp/baseline/without without
For the cold starts, prepare the "with" variant again without `--no-embed`, with `HOTCODEPUSH_TOKEN` set and `hotcodepush.json` naming an app of that account, then:
37
+
For the cold starts, prepare the "with" variant again without `--no-binary-create`, with `HOTCODEPUSH_TOKEN` set and `hotcodepush.json` naming an app of that account, then:
0 commit comments