Viewing version 0.6.0. Open the latest package page.

nm

0.6.0

Provides a client to connect to NetworkManager - the service that manages network connections on Linux.

Download archive

Readme

Pub Package codecov

Provides a client to connect to NetworkManager - the service that manages network connections on Linux.

import 'package:nm/nm.dart';

var client = NetworkManagerClient();
await client.connect();
print('Running NetworkManager ${client.version}');
await client.close();

Contributing to nm.dart

We welcome contributions! See the contribution guide for more details.

Changelog

Changelog

0.6.0

  • Require dbus 0.8.
  • Require Dart 3.

0.5.0

  • Fix constants not in camel case form.
  • Require dbus 0.7.

0.4.4

  • Only list as supporting Linux.

0.4.3

  • Remove wrong assertions when activating WiFi connections with hidden access points.

0.4.2

  • Add NetworkManagerClient.state.
  • Fix device state reason.

0.4.1

  • Add NetworkManagerClient.addAndActivateConnection().
  • Improve test coverage.

0.4.0

  • Fix detection of removed device/connection device when they re-appear.

0.3.0

  • Add NetworkManagerClient.activate/deactivateConnection().
  • Fix typo in NetworkManagerWifiAccessPointFlag, NetworkManagerWifiAccessPointSecurityFlag enum names.
  • Reliably detect when an object is removed, rather than just some of its interfaces.
  • Add more toString() methods for easier debugging.
  • Use dbus 0.5.
  • Rename test file so can just run 'dart test'.

0.2.0

  • Various new API additions and fixes.
  • Make device interface objects null if the interface is not present.
  • Add equality operators to public classes.
  • Replace setters with methods so they can be async.
  • Added many more tests.

0.1.0

  • Initial release

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'nm:0.6.0'
pubspec.yaml
name: nm
version: 0.6.0

description:
  Provides a client to connect to NetworkManager - the service that manages network connections on Linux.

homepage: https://github.com/canonical/nm.dart

environment:
  sdk: '>=3.0.0 <4.0.0'

platforms:
  linux:

dependencies:
  dbus: ^0.8.0

dev_dependencies:
  lints: ^2.0.0
  test: ^1.16.8
  test_cov: ^1.0.1

Version history

VersionPublishedArchiveSHA-256
0.0.0-dev.1Cached · Upstream SHA-256 matchedDownload3a615227…48656d
0.0.0-dev.2Cached · Upstream SHA-256 matchedDownload38872fee…022124
0.0.0-dev.3Cached · Upstream SHA-256 matchedDownload474f5332…087605
0.0.0-dev.4Cached · Upstream SHA-256 matchedDownload881f32e5…6d7a32
0.0.0-dev.5Cached · Upstream SHA-256 matchedDownloadb301ec95…bafb6f
0.0.0-dev.6Cached · Upstream SHA-256 matchedDownload7fb1e671…146357
0.1.0Cached · Upstream SHA-256 matchedDownloadff80e286…7af4c2
0.2.0Cached · Upstream SHA-256 matchedDownload6d732ec1…2bd957
0.3.0Cached · Upstream SHA-256 matchedDownloadb47776ec…6e3a0e
0.4.0Cached · Upstream SHA-256 matchedDownload86321363…d542d8
0.4.1Cached · Upstream SHA-256 matchedDownload60e36fb5…639241
0.4.2Cached · Upstream SHA-256 matchedDownload8a2a2f24…d332b3
0.4.3Cached · Upstream SHA-256 matchedDownloade62869cf…8912b4
0.4.4Cached · Upstream SHA-256 matchedDownload94e12492…8d6d56
0.5.0Cached · Upstream SHA-256 matchedDownload2c9aae41…b24254
0.6.0Cached · Upstream SHA-256 matchedDownload2ae480aa…0786e6

Dependencies

dbus "^0.8.0"