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.
16 lines
503 B
JavaScript
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;
|