Viewing version 1.0.0. Open the latest package page.

cross_file_darwin

1.0.0

Implementation of cross_file_platform_interface for iOS and macOS.

Download archive

Readme

cross_file_darwin

The Darwin implementation of cross_file.

This plugin provides support for traditional file systems and Apple's app sandbox, security scoped resources, and PhotoKit assets.

When using the FileSystem implementations on iOS or macOS, this implementation returns the implementation created by CrossFileIO.

For the ScopedStorage implementation, this implementation uses dart:io for typical file interactions while providing access to security scoped resource features. See https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller#Work-with-external-documents.

Usage

This package is endorsed, which means you can simply use cross_file normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Changelog

1.0.0

  • Initial release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'cross_file_darwin:1.0.0'
pubspec.yaml
name: cross_file_darwin
description: Implementation of cross_file_platform_interface for iOS and macOS.
repository: https://github.com/flutter/packages/tree/main/packages/cross_file/cross_file_darwin
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cross_file%22
version: 1.0.0

environment:
  sdk: ^3.10.0
  flutter: ">=3.38.0"

flutter:
  plugin:
    implements: cross_file
    platforms:
      ios:
        dartPluginClass: CrossFileDarwin
        pluginClass: CrossFileDarwinPlugin
        sharedDarwinSource: true
      macos:
        dartPluginClass: CrossFileDarwin
        pluginClass: CrossFileDarwinPlugin
        sharedDarwinSource: true

dependencies:
  cross_file_io: ^1.0.0
  cross_file_platform_interface: ^1.0.0
  ffi: ^2.2.0
  flutter:
    sdk: flutter
  meta: ^1.17.0
  objective_c: ^9.5.0
  path: ^1.9.1

dev_dependencies:
  build_runner: ^2.15.1
  ffigen: ^21.0.0
  flutter_test:
    sdk: flutter
  mockito: ^5.6.4
  pigeon: ^27.3.2

topics:
  - file
  - cross-file

Version history

VersionPublishedArchiveSHA-256
1.0.0Cached · Upstream SHA-256 matchedDownload5ae2e016…c37330

Dependencies

cross_file_io "^1.0.0"

cross_file_platform_interface "^1.0.0"

ffi "^2.2.0"

flutter { "sdk": "flutter" }

meta "^1.17.0"

objective_c "^9.5.0"

path "^1.9.1"