-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add ios implementation #2
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
base: feat/RMET-4046/implementation
Are you sure you want to change the base?
feat: add ios implementation #2
Conversation
77455ba
to
ae4236c
Compare
ae4236c
to
4383aef
Compare
], | ||
targets: [ | ||
.binaryTarget( | ||
name: "IONFileTransferLib", | ||
// url: "https://github.com/ionic-team/ion-ios-filetransfer/releases/download/1.0.0/IONFileTransferLib.zip", | ||
// checksum: "<compute_checksum>" // sha-256 | ||
path: "./ios/Sources/FileTransferPlugin/IONFileTransferLib.xcframework" | ||
path: "./ios/Sources/FileTransferPlugin/IONFileTransferLib.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we using the .zip instead of the xcframework? Is this temporary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to build the example-app locally but it fails because of the reference to the IONFileTransferLib library, so it may be related with this.
Do you have an .ipa of the app that I can use to test? Or is there a build of an OutSystems app that I can use?
shouldTrackProgress: Bool | ||
) -> (IONFLTRTransferResult) -> Void { | ||
return { result in | ||
if case let .ongoing(status) = result { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a switch
statement instead?
) -> (IONFLTRTransferResult) -> Void { | ||
return { result in | ||
if case let .ongoing(status) = result { | ||
if shouldTrackProgress { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use a guard
instead of this if to avoid nesting, like:
guard shouldTrackProgress else { return }
No description provided.