Skip to content

Commit

Permalink
minor fixes, add license checker
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Feb 17, 2024
1 parent f217e54 commit b66556e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/pages/android_file_picker_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// Modified based on the example of library `file_manager`:
/// https://github.com/DevsOnFlutter/file_manager/blob/main/example/lib/main.dart
/// Originally distributed under BSD-3-Clause license
import 'dart:io';

Expand Down Expand Up @@ -73,7 +74,7 @@ class _AndroidFilePickerState extends State<AndroidFilePicker> {
// open the folder
controller.openDirectory(entity);
} else {
// select a file
// select or unselect a file
setStateS(() {
if (_selected.contains(entity)) {
_selected.remove(entity);
Expand All @@ -83,6 +84,16 @@ class _AndroidFilePickerState extends State<AndroidFilePicker> {
});
}
},
onLongPress: () async {
// select or unselect a file or a dir
setStateS(() {
if (_selected.contains(entity)) {
_selected.remove(entity);
} else {
_selected.add(entity);
}
});
},
),
);
},
Expand Down
1 change: 1 addition & 0 deletions lib/pages/rules_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class RulesPageState extends State<RulesPage> {
children: [
Row(
children: [
box,
Expanded(
child: CustomDrop<String>(
value: Shared.ruleName,
Expand Down
17 changes: 17 additions & 0 deletions license_checker_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
permittedLicenses:
- MIT
- BSD-2-Clause
- BSD-3-Clause
- Apache-2.0
- MIT
- MPL
- LGPL
- GPLv2+
- GPLv3
- AGPL

rejectedLicenses:
- GPLv2

omitDisclaimer:
- angles

0 comments on commit b66556e

Please sign in to comment.