/** * Expo Config Plugin for `expo-transaction-sms-reader`. * * Adds the dangerous SMS permissions to the merged `AndroidManifest.xml` of * any consuming app. Plugin opts in *all* consumers by default — there is no * way to use the live receiver without these permissions. Callers that only * want to *parse* SMS strings (without reading the inbox) can opt out via * `permissions: { read: false, receive: false }`. * * Usage in `app.json` / `app.config.ts`: * * "plugins": ["expo-transaction-sms-reader"] * * Or with options: * * ["expo-transaction-sms-reader", { * "android": { * "permissions": { "read": true, "receive": true } * } * }] * * To skip permission injection entirely (e.g. host app declares them itself): * * ["expo-transaction-sms-reader", { "android": { "skip": true } }] */ import { ConfigPlugin } from 'expo/config-plugins'; interface PluginOptions { android?: { /** Skip *all* permission injection. Useful when the host app declares them itself. */ skip?: boolean; /** Fine-grained control over which permissions to inject. Both default to `true`. */ permissions?: { read?: boolean; receive?: boolean; }; }; } declare const _default: ConfigPlugin; export default _default;