← all modules

Std.Bundle

Std.Bundle

Types
  type Bundle
  type Permission = Location | LocationAlways | Camera | Microphone | Notifications | PhotoLibrary | Contacts | FaceId | LocalNetwork | Bluetooth
  type PushEnvironment = PushDevelopment | PushProduction
  type Entitlement = KeychainAccessGroup String | AppGroup String | AssociatedDomain String | PushNotifications PushEnvironment | ICloudContainer String

Values
  assetUrl : String -> String
      The URL a shipped asset is served at — `Bundle.assetUrl "logo.png"` →
  default : Bundle
      The empty manifest: every field defaulted by the packager (app name → the
  withAsset : String -> Bundle -> Bundle
      Ship a single asset FILE with the app (a path relative to the project, e.g.
  withAssetDir : String -> Bundle -> Bundle
      Ship a whole DIRECTORY of assets with the app (a path relative to the
  withBuild : Int -> Bundle -> Bundle
      Set the store build number — CFBundleVersion / `android:versionCode`. A
  withEntitlement : Entitlement -> Bundle -> Bundle
      Declare an `Entitlement` the signed app carries:
  withIcon : String -> Bundle -> Bundle
      Set the app icon — a path (relative to the project) to a source PNG the
  withId : String -> Bundle -> Bundle
      Set the reverse-DNS identifier — CFBundleIdentifier / the Android package
  withName : String -> Bundle -> Bundle
      Set the human display name — CFBundleDisplayName / `android:label` / the
  withPermission : Permission -> Bundle -> Bundle
      Declare that the app needs a native `Permission` (e.g.
  withUsage : Permission -> String -> Bundle -> Bundle
      Declare a `Permission` AND the purpose string the OS shows in its prompt
  withVersion : String -> Bundle -> Bundle
      Set the marketing version — CFBundleShortVersionString / `android:versionName`.