Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/battery_plus/battery_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.2

- Update Flutter dependencies

## 2.0.1

- Upgrade Android compile SDK version
Expand Down
4 changes: 2 additions & 2 deletions packages/battery_plus/battery_plus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: battery_plus
description: Flutter plugin for accessing information about the battery state(full, charging, discharging).
version: 2.0.1
version: 2.0.2
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

Expand All @@ -24,7 +24,7 @@ flutter:
dependencies:
flutter:
sdk: flutter
meta: ^1.3.0
meta: ^1.7.0
battery_plus_platform_interface: ^1.1.0
battery_plus_linux: ^1.0.3
battery_plus_macos: ^1.0.2
Expand Down
4 changes: 4 additions & 0 deletions packages/battery_plus/battery_plus_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.4

- Update Flutter dependencies

## 1.0.3

- Upgrade battery_plus_platform_interface dependency
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// ignore: import_of_legacy_library_into_null_safe
import 'dart:developer' as developer;

import 'package:dbus/dbus.dart';
Expand Down Expand Up @@ -30,7 +29,7 @@ class UPowerDevice extends DBusRemoteObject {
UPowerDevice._({
required DBusClient client,
required DBusObjectPath path,
}) : super(client, _kInterface, path);
}) : super(client, name: _kInterface, path: path);

factory UPowerDevice.display([DBusClient? client]) {
return UPowerDevice._(
Expand Down
8 changes: 4 additions & 4 deletions packages/battery_plus/battery_plus_linux/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: battery_plus_linux
description: Linux implementation of the battery_plus plugin
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/
version: 1.0.3
version: 1.0.4

environment:
sdk: ">=2.12.0 <3.0.0"
Expand All @@ -11,9 +11,9 @@ environment:
dependencies:
flutter:
sdk: flutter
battery_plus_platform_interface: ^1.1.0
dbus: ^0.5.1
meta: ^1.3.0
battery_plus_platform_interface: ^1.1.1
dbus: ^0.6.6
meta: ^1.7.0

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ class MockDevice implements UPowerDevice {
@override
DBusClient get client => throw UnimplementedError();

@override
String get destination => throw UnimplementedError();

@override
void dispose() {}

Expand Down Expand Up @@ -83,6 +80,9 @@ class MockDevice implements UPowerDevice {
throw UnimplementedError();
}

@override
String get name => throw UnimplementedError();

@override
DBusObjectPath get path => throw UnimplementedError();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.1

- Update Flutter dependencies

## 1.1.0

- Add method channel for power save mode state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: prefer_const_constructors

import 'dart:async';

import 'package:flutter/services.dart';
import 'package:meta/meta.dart';

import 'battery_plus_platform_interface.dart';
import 'src/enums.dart';
import 'src/utils.dart';

/// An implementation of [BatteryPlatform] that uses method channels.
class MethodChannelBattery extends BatteryPlatform {
/// The method channel used to interact with the native platform.
@visibleForTesting
MethodChannel methodChannel =
MethodChannel('dev.fluttercommunity.plus/battery');
const MethodChannel('dev.fluttercommunity.plus/battery');

/// The event channel used to receive BatteryState changes from the native platform.
@visibleForTesting
EventChannel eventChannel =
EventChannel('dev.fluttercommunity.plus/charging');
const EventChannel('dev.fluttercommunity.plus/charging');

Stream<BatteryState>? _onBatteryStateChanged;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: battery_plus_platform_interface
description: A common platform interface for the battery_plus plugin.
version: 1.1.0
version: 1.1.1
homepage: https://plus.fluttercommunity.dev/
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/

Expand All @@ -11,8 +11,8 @@ environment:
dependencies:
flutter:
sdk: flutter
meta: ^1.3.0
plugin_platform_interface: ^2.0.0
meta: ^1.7.0
plugin_platform_interface: ^2.0.2

dev_dependencies:
flutter_test:
Expand Down