Skip to content

Commit

Permalink
[connecitivity_macos] Fix warnings to publish (flutter#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscojma86 authored Dec 7, 2019
1 parent 828358a commit 78da728
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
30 changes: 30 additions & 0 deletions packages/connectivity/connectivity_macos/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# shared_preferences_macos

The macos implementation of [`connectivity`].

## Usage

### Import the package

To use this plugin in your Flutter Web app, simply add it as a dependency in
your `pubspec.yaml` alongside the base `connectivity` plugin.

_(This is only temporary: in the future we hope to make this package an
"endorsed" implementation of `connectivity`, so that it is automatically
included in your Flutter macos app when you depend on `package:connectivity_macos`.)_

This is what the above means to your `pubspec.yaml`:

```yaml
...
dependencies:
...
connectivity: ^0.4.6
connectivity_macos: ^0.0.1
...
```

### Use the plugin

Once you have the `connectivity_macos` dependency in your pubspec, you should
be able to use `package:connectivity` as normal.
5 changes: 2 additions & 3 deletions packages/connectivity/connectivity_macos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: connectivity_macos
description: macOS implementation of the connectivity plugin.
version: 0.0.1
author: Flutter Team <[email protected]>
version: 0.0.2
homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity_macos

flutter:
Expand All @@ -12,7 +11,7 @@ flutter:

environment:
sdk: ">=2.1.0 <3.0.0"
flutter: ">=1.9.1+hotfix.6 <2.0.0"
flutter: ">=1.10.0 <2.0.0"

dependencies:
flutter:
Expand Down

0 comments on commit 78da728

Please sign in to comment.