Files
paseo/packages/app/plugins/with-android-profileable.js
T
Mohamed Boudra 7dbeff8290 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.
2026-08-04 15:45:55 +02:00

16 lines
503 B
JavaScript

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;