perf(app): reduce startup websocket work
Make provider catalogs compact and content-addressed so repeat launches can reuse the persisted snapshot instead of transferring it again. Remove eager global catalog loading and the stopped-agent defensive tail fetch, while keeping sequence-gap and reconnect recovery as the correctness paths. Add an opt-in production-ID Android profiling build for local startup traces.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const { withAndroidManifest } = require("expo/config-plugins");
|
||||
|
||||
function withAndroidProfileable(config) {
|
||||
return withAndroidManifest(config, (modConfig) => {
|
||||
const application = modConfig.modResults.manifest.application?.[0];
|
||||
if (!application) {
|
||||
throw new Error("Could not enable Android profiling without an application manifest entry");
|
||||
}
|
||||
|
||||
application.profileable = [{ $: { "android:shell": "true" } }];
|
||||
return modConfig;
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = withAndroidProfileable;
|
||||
Reference in New Issue
Block a user