p-hatan/ mirror

pub repository

mirror.p-hatan.com

nm

0.6.0

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

Cached in Iran · upstream_checksum

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.com
flutter pub add nm
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.12020-10-15T23:28:15.286160ZCached3a615227c196ca212e3b42cacd503f47f5841e69729d6bbf11bc9f13e348656d
0.0.0-dev.22020-10-22T02:51:28.019079ZCached38872feed926280019b3c86e1977d56474ef1f6361b1e52b25b51419f5022124
0.0.0-dev.32020-10-30T02:13:27.508099ZCached474f533258023cce1ccf1d5b4f8fad8e4bb0ce266067b4b34044820ef8087605
0.0.0-dev.42021-02-04T03:55:26.257033ZCached881f32e523d898bcf9dbf2491db685cc3380b95ce1234779730d4a93426d7a32
0.0.0-dev.52021-02-11T01:51:08.479358ZCachedb301ec954eccb22103d19c8a2a67b6362bf6ae145b4f42170bf76094ddbafb6f
0.0.0-dev.62021-03-05T02:32:55.650775ZCached7fb1e6711aa750505a2e16766c87d4e7f4f136a539ea9e06af4fc4c081146357
0.1.02021-04-15T05:07:52.895453ZCachedff80e286e4aee544396ad788405f769c558c68419afa2ef5af682de52f7af4c2
0.2.02021-04-21T04:19:06.986451ZCached6d732ec1eda5c61f42fc2ac128f27e048f92a92de720433f83262f4eee2bd957
0.3.02021-05-17T04:42:27.229097ZCachedb47776ec6a4799d7df9e8dff48319e66efd791bf2bcab8d26408db8f716e3a0e
0.4.02021-08-23T04:26:26.078210ZCached86321363b8296a46a3245bb98f7a7df80a101427d7596d299461637605d542d8
0.4.12021-11-15T22:40:20.497088ZCached60e36fb5ab9147717f5b0246fd6d447fbc1e9961781388708d44153056639241
0.4.22021-12-13T20:37:43.561646ZCached8a2a2f24d809d5781a882c2685e8bf21d73c5ad199bd6f649f02c86e34d332b3
0.4.32022-01-30T23:17:01.523669ZCachede62869cf2065625e77ba43552748229b2c9e7bdb3221efc5cf199c1db68912b4
0.4.42022-02-07T22:20:02.502998ZCached94e1249299e4401daf62986e5daf9aea5fdc77ebfe3ad74971cafd8f658d6d56
0.5.02022-02-08T01:37:16.117185ZCached2c9aae4127bdc8993206464fcc063611e0e36e72018696cd9631023a31b24254
0.6.02026-09-23T22:55:15.849347ZCached2ae480aa3379716b8bb58dfebb168e2919394c92b629efaaa0baaa5d140786e6

Dependencies

dbus "^0.8.0"