cloud_functions_platform_interface 1.1.0

  • Readme
  • Changelog
  • Installing
  • 96

cloud_functions_platform_interface #

A common platform interface for the cloud_functions plugin.

This interface allows platform-specific implementations of the cloud_functions plugin, as well as the plugin itself, to ensure they are supporting the same interface.

Usage #

To implement a new platform-specific implementation of cloud_functions, extend CloudFunctionsPlatform with an implementation that performs the platform-specific behavior, and when you register your plugin, set the default CloudFunctionsPlatform by calling CloudFunctionsPlatform.instance = MyCloudFunctions().

Note on breaking changes #

Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.

See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.

1.1.0 #

  • Change environment SDK requirement from >=2.0.0-dev.28.0 to >=2.0.0 to fix 'publishable' CI stage.

1.0.1 #

  • Make the pedantic dev_dependency explicit.

1.0.0 #

Initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  cloud_functions_platform_interface: ^1.1.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:cloud_functions_platform_interface/cloud_functions_platform_interface.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
96
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
89
Overall:
Weighted score of the above. [more]
96
Learn more about scoring.

We analyzed this package on Jun 5, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and cloud_functions_platform_interface.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-1 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
firebase_core ^0.4.0 0.4.5
flutter 0.0.0
meta ^1.0.5 1.1.8
plugin_platform_interface ^1.0.1 1.0.2
Transitive dependencies
charcode 1.1.3
collection 1.14.12
firebase 7.3.0
firebase_core_platform_interface 1.0.4
firebase_core_web 0.1.1+2
flutter_web_plugins 0.0.0
http 0.12.1
http_parser 3.1.4
js 0.6.1+1
matcher 0.12.6
path 1.7.0
quiver 2.1.3
sky_engine 0.0.99
source_span 1.7.0
stack_trace 1.9.3
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test
mockito ^4.1.1
pedantic ^1.8.0 1.9.0