Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host scan support for iOS #85

Merged
merged 7 commits into from
Sep 24, 2023
Merged

Host scan support for iOS #85

merged 7 commits into from
Sep 24, 2023

Conversation

git-elliot
Copy link
Collaborator

No description provided.

@git-elliot git-elliot changed the title Isolate runHost scan support for iOS Host scan support for iOS Sep 5, 2023
_targetIPEditingController.text,
int.parse(_singlePortEditingController.text),
).then((value) {
_handleEvent(value);
_handleOnDone();
});
} else if (_type == ScanType.top) {
_streamSubscription = PortScanner.customDiscover(
_streamSubscription = PortScannerFlutter.customDiscover(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why isn't it called PortScanner there is no need to specify that it is from a different library.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it can be kept same, but then users have to add alias to import statement when using both. To simplify it I'm suffixing Flutter word

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They aren't supposed to import both of the packages, flutter version should extended and replace dart package

And expose same functionality and more outside for the developer

pubspec.yaml Outdated
network_tools: ^3.2.1
# network_tools:
# path: ../network_tools/network_tools
network_tools: ^3.2.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

network_tools_flutter should include network_tools and expose everything that the user needs.
There is no reason users will have to add 2 packages.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The imported package 'network_tools' isn't a dependency of the importing package.
Try adding a dependency for 'network_tools' in the 'pubspec.yaml' file.dartdepend_on_referenced_packages

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we need to fix it, if we exposed the functions through network_tools_fluttet the programmers will add only one package

Copy link
Collaborator Author

@git-elliot git-elliot Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dart can not expose another package I guess and I can not replicate classes. Show me some example otherwise.

Copy link
Collaborator

@guyluz11 guyluz11 Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a file like this in network_tools_flutter
https://github.com/osociety/network_tools/blob/dev/lib/network_tools.dart
and point it to this file

@git-elliot git-elliot merged commit c77825d into dev Sep 24, 2023
1 check passed
@git-elliot git-elliot deleted the isolate-run branch September 24, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants