config.KuitoPermissions
Each permission the app uses, with the reason iOS shows in its prompt. Only these reach the shells: an undeclared permission fails at the prompt.
Verwendung
Validate a configuration in an app-development tool.
Dieser Typ wird verwendet von config.resolveConfig
// Validate a configuration in an app-development tool.
import { resolveConfig, SETTING_DEFAULTS, IOS_BACKGROUND_MODES } from 'kuito/config';
const config = resolveConfig(
{
name: 'Notes',
ios: { bundleIdentifier: 'com.example.notes' },
android: { applicationId: 'com.example.notes' },
environments: { staging: { idSuffix: '.staging' } },
},
'/project/kuito.config.ts',
'staging',
);
console.log(config.ios.bundleIdentifier, config.splash, config.icon);
console.log(SETTING_DEFAULTS.minSdk, IOS_BACKGROUND_MODES);Typdeklaration
export interface KuitoPermissions {
camera?: string;
microphone?: string;
photos?: string;
/** Foreground ("when in use") location. */
location?: string;
/** Location in the background too ("always"); needs `location` (docs/location.md). */
locationAlways?: string;
/** Face ID, for SecureStore's requireAuthentication (docs/secure-store.md). */
biometrics?: string;
/** Neither platform shows a reason for notifications. */
notifications?: true;
}Mitglieder 7
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
camera | string | Nein | — |
microphone | string | Nein | — |
photos | string | Nein | — |
location | string | Nein | Foreground ("when in use") location. |
locationAlways | string | Nein | Location in the background too ("always"); needs location (docs/location.md). |
biometrics | string | Nein | Face ID, for SecureStore's requireAuthentication (docs/secure-store.md). |
notifications | true | Nein | Neither platform shows a reason for notifications. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.