Skip to content

Commit d41d979

Browse files
committed
Update doc
1 parent cf8f0fa commit d41d979

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

superuser/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 2.1.0
22

33
* Change Dart SDK to `^3.6.0` for monorepo support.
4+
* `Superuser.groups` returns `Set` rather than `Iterable`.
45

56
## 2.0.0
67

superuser/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
Superuser is a special user, who granted as much as possible to access system files for maintenance purpose. Different systems has different names to refer superuser (e.g. `root` in various UNIX system and `Administrator` in Windows).
44

5-
Although `pub.dev` has numerous of packages to detect superuser, they are designed for Android and some packages added iOS support already. Hence, these package may become bulky because of unnessary callbacks along with detection.
5+
Although `pub.dev` has numerous of packages to detect superuser, they are designed for Android and some packages added iOS support already. Hence, these package may become bulky because of unnessary callbacks along with detection only.
66

7-
Instead, `superuser` package offers superuser detection in Flutter desktop and two replicated identification command from UNIX (`whoami` and `group`).
7+
Instead, `superuser` package offers superuser detection in Flutter desktop and two replicated identification command from UNIX (`whoami` and `group`) for additional verification if necessary.
8+
9+
## Limitations
10+
11+
This package only tested using informations given on **local machines** only. It may not perform identically if running devices
12+
is domain joined.
813

914
## Implementations
1015

superuser/lib/superuser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ abstract final class Superuser {
5555
static String get whoAmI => instance.whoAmI;
5656

5757
/// Obtain user's associated groups in local system.
58-
static Iterable<String> get groups => instance.groups;
58+
static Set<String> get groups => Set.unmodifiable(instance.groups);
5959
}

0 commit comments

Comments
 (0)