forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[connecitivity_macos] Fix warnings to publish (flutter#2366)
- Loading branch information
1 parent
828358a
commit 78da728
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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: | ||
|