• stuartmorgan's avatar
    Support create for macOS (app and plugin) (#40851) · 0412977e
    stuartmorgan authored
    Adds macOS support for `flutter create`:
    - Currently it is behind a hidden flag.
    - Adds a TargetPlatform workaround to lib/main.dart in the standard app template when enabled.
    - Supports `app` and `plugin`; `module` support doesn't yet exist for macOS in general.
    
    This will eliminate the need to use FDE's examples as templates on macOS. The templates are based on the current state of FDE's examples, with templating support added (and with adoption of the new application delegate in the app, which hadn't been done yet in FDE, eliminating some boilerplate from the template).
    
    Fixes #30703 
    0412977e
AppInfo.xcconfig.tmpl 618 Bytes
// Application-level settings for the Runner target.
//
// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
// future. If not, the values below would default to using the project name when this becomes a
// 'flutter create' template.

// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = {{projectName}}

// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = {{macosIdentifier}}

// The copyright displayed in application information
PRODUCT_COPYRIGHT = Copyright © {{year}} {{organization}}. All rights reserved.