-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fixes for iOS-Bugs, Code Modernization & lowercase enum-members in dart #21
Conversation
Thank you @imdatsolak !! Your changes worked for me \o/ |
Hi, any updates on this PR acception? How can i test your latest suggestions, @imdatsolak ? |
You can just use my repo. Put this in your flutter_sharing_intent:
git:
url: git@github.com:imdatsolak/flutter_sharing_intent.git
ref: imdatsolak/ios-fix |
Hi, I'm trying to try your fix but I'm getting this error: |
If you are talking to me: you need to have access to github using your SSH key, otherwise access via SSH won't work. If you can't use an SSH key, you might need to go to my repo and get the HTTPs-clone URL and replace |
Hello @imdatsolak, may you synchronize your branch with bhagat-techind/flutter_sharing_intent and update the PR ? I hope this will help for the PR. And also, you should remove from your PR the team ID changes from XCode project, and keep that only locally on your computer; this will reduce the changes. |
@kristofb made the necessary changes (I hope). Please check. Also, the Team ID is done automatically by Xcode and required for testing purposes. I did make the changes manually with a text-editor. You probably still need to check them. |
Thank you sir @imdatsolak you saved my time after 4 days i found this helpful. worked for me. now i can receive text/url and images in my app |
@bhagat-techind Hi man! why this pr not merged?) |
Thank you @imdatsolak for the solution! |
Hello @imdatsolak , it gives me this error , any help ? Swift Compiler Error (Xcode): Cannot find type 'SharingFile' in scope Swift Compiler Error (Xcode): Cannot find type 'SharingFileType' in scope |
I can't really reproduce what you are doing. If you get my fork as described here you shouldn't have any problems. I don't know what @bhagat-techind is currently doing with merging since it created merge conflicts compared to their changes, but I am actively using my fork in my projects and I don't see any problems there. |
thank you it works now , thanks for the effort |
Changes
1. Bug-fix iOS
There was mismatch of
value
andpath
in the Swift Sharing-code. This resulted in a crash. I fixed this.Since I have only iOS 16 to test with, I am now supporting both keys in incoming data from iOS, i.e.
path
andvalue
when converting the data to JSON.Then, if there is anything in
path
, I still use it.2. Modernize Swift-Code
Also modernized the Swift-Code.
guard
3. dart
Comment
There is one warning left in Swift-code due to new SDK. This can be fixed by implementing the corresponding function as
async
as that only works with Swift 5.5