From 5475319a0f0a4dc5fb2f1e2fd71a933dff8ae94f Mon Sep 17 00:00:00 2001 From: Perondas Date: Thu, 25 Aug 2022 09:40:12 +0200 Subject: [PATCH] Fix in documentation --- CHANGELOG.md | 6 +++++ example/pubspec.lock | 2 +- lib/signal_strength_method_channel.dart | 3 +-- pubspec.yaml | 33 +------------------------ 4 files changed, 9 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0bd041..b0bdf8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.0.3 + +* Fixed mistakes in the documentation. +## 0.0.2 + +* Code cleanup ## 0.0.1 * Initial release. diff --git a/example/pubspec.lock b/example/pubspec.lock index 808f4cb..292e9d9 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -122,7 +122,7 @@ packages: path: ".." relative: true source: path - version: "0.0.2" + version: "0.0.3" sky_engine: dependency: transitive description: flutter diff --git a/lib/signal_strength_method_channel.dart b/lib/signal_strength_method_channel.dart index c1aa18c..7c3c67e 100644 --- a/lib/signal_strength_method_channel.dart +++ b/lib/signal_strength_method_channel.dart @@ -13,8 +13,7 @@ class MethodChannelSignalStrength extends SignalStrengthPlatform { Future?> getCellularSignalStrength() async { var res = await methodChannel .invokeMethod>('getCellSignalStrengths'); - var r = res?.map((e) => e as int).toList(); - return r; + return res?.map((e) => e as int).toList(); } @override diff --git a/pubspec.yaml b/pubspec.yaml index c967ab6..21cb81a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: signal_strength description: Get your phones current signal strengths. Currently only works on android. -version: 0.0.2 +version: 0.0.3 homepage: https://github.com/Perondas/signal_strength environment: @@ -37,34 +37,3 @@ flutter: android: package: com.perondas.signal_strength pluginClass: SignalStrengthPlugin - - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # To add custom fonts to your plugin package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages