Reference
Platforms and permissions
Aegil generates native platform shells for 4 targets from project specifications and maps 5 abstract @permission declarations into platform-specific manifests, Info.plist entries, and entitlement files.
Platform targets (@platform)
Section titled “Platform targets (@platform)”| Target | Generated folder | What is generated |
|---|---|---|
ios |
client/ios/ |
Generates client/ios/ (Xcode project and workspace, Runner Info.plist with bundle ID, display name and @permission usage descriptions, AppDelegate.swift, storyboards) from Aegil text templates without running flutter create. |
android |
client/android/ |
Generates client/android/ (Gradle Kotlin DSL build files, AndroidManifest.xml for main/debug/profile, MainActivity.kt under the reverse-DNS package path, launch styles) with implied INTERNET permission and declared @permission entries. |
macos |
client/macos/ |
Generates client/macos/ (Xcode project and workspace, AppInfo.xcconfig, Info.plist, DebugProfile.entitlements and Release.entitlements with implied com.apple.security.network.client and declared @permission entitlements). |
web |
client/web/ |
Generates client/web/ (index.html with HTML-escaped display name and manifest.json with JSON-encoded app identity). Rejects capabilities browsers cannot honour, such as background location (level: always). |
Abstract permissions (@permission)
Section titled “Abstract permissions (@permission)”Network access (android.permission.INTERNET and macOS com.apple.security.network.client in debug and release) is implied for every Serverpod client and is never declared in the spec.
| Permission | Levels | iOS | Android | macOS | Web | Meaning |
|---|---|---|---|---|---|---|
camera |
— | declared (Info.plist) | declared (AndroidManifest.xml) | declared (Info.plist + entitlements) | runtime | Take photos and video with the device camera. Writes NSCameraUsageDescription on iOS and macOS (requires reason), com.apple.security.device.camera entitlement on macOS, and CAMERA + optional hardware feature on Android. |
microphone |
— | declared (Info.plist) | declared (AndroidManifest.xml) | declared (Info.plist + entitlements) | runtime | Record audio. Writes NSMicrophoneUsageDescription on iOS and macOS (requires reason), com.apple.security.device.audio-input entitlement on macOS, and RECORD_AUDIO on Android. |
photoLibrary |
— | declared (Info.plist) | declared (AndroidManifest.xml) | declared (Info.plist + entitlements) | runtime | Read images from the user’s photo library. Writes NSPhotoLibraryUsageDescription on iOS and macOS (requires reason), com.apple.security.personal-information.photos-library entitlement on macOS, and READ_MEDIA_IMAGES + maxSdkVersion 32 READ_EXTERNAL_STORAGE on Android. |
location |
whenInUse / always |
declared (Info.plist) | declared (AndroidManifest.xml) | declared (Info.plist + entitlements) | whenInUse: runtime; always: unsupported | Read the device location in the foreground (whenInUse, default) or background (always). Writes NSLocation* usage keys on iOS/macOS (requires reason), location entitlement on macOS, and ACCESS_COARSE/FINE_LOCATION (plus ACCESS_BACKGROUND_LOCATION for always) on Android. Background location (always) is rejected on web at compile time. |
notifications |
— | runtime | declared (AndroidManifest.xml) | runtime | runtime | Show user notifications. Declares POST_NOTIFICATIONS in AndroidManifest.xml (for Android 13+); iOS, macOS and Web request permission at runtime with no manifest or plist entry. |
Generated from aegil @ 948ae8e. Do not edit: change the code, or the description in site/annotations/.