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

Updated Share Action: added file sharing support #1777

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mehsaandev
Copy link
Contributor

No description provided.

@mehsaandev mehsaandev marked this pull request as ready for review December 18, 2024 10:56
@mehsaandev mehsaandev linked an issue Dec 18, 2024 that may be closed by this pull request
@mehsaandev
Copy link
Contributor Author

@kmahmood74 can you please take a look at this?

final evaluatedFiles = scopeManager.dataContext.eval(_files);
if (evaluatedFiles != null) {
final filesList =
evaluatedFiles is List ? evaluatedFiles : [evaluatedFiles];
Copy link
Collaborator

Choose a reason for hiding this comment

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

why would it not be a list?

return Future.value(null);
xFiles = filesList.map((file) {
// Handle case where file is a Map containing file info
if (file is Map) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

when is it a Map vs a String? how does it work across web, android and ios?

@kmahmood74 kmahmood74 requested a review from snehmehta December 22, 2024 23:23
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.

Require files sharing support in share action
2 participants