Skip to content

Conversation

@SergioEstevao
Copy link
Contributor

No description provided.

@SergioEstevao SergioEstevao added this to the Beta milestone Jan 23, 2019
@SergioEstevao SergioEstevao requested a review from mzorz January 23, 2019 12:28
do {
try data.write(to: url)
mediaCallback(mediaID, url.absoluteString)
mediaCallback(mediaID.hashValue, url.absoluteString)
Copy link
Contributor

Choose a reason for hiding this comment

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

Was reading this:
https://developer.apple.com/documentation/swift/hashable/1540917-hashvalue

Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution

Does it have any implications then, for example if you're uploading something and then close the app and open it again?

Copy link
Contributor

@mzorz mzorz left a comment

Choose a reason for hiding this comment

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

After discussing elsewhere, TIL this here is used only for tests, and given the main purpose of the PR is to change the mediaId type from String to Int, giving this one the go :shipit:

@SergioEstevao SergioEstevao merged commit 8e017cf into feature/upload_media_file_android Jan 23, 2019
@SergioEstevao SergioEstevao deleted the feature/upload_media_file_ios_part_3 branch January 23, 2019 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants