-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added server time property to operations #92
Conversation
library/src/main/java/com/wultra/android/mtokensdk/operation/OperationsService.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/wultra/android/mtokensdk/operation/OperationsService.kt
Outdated
Show resolved
Hide resolved
Remarks fixed + I added one more assert to tests |
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.
Looks OK
library/src/main/java/com/wultra/android/mtokensdk/operation/OperationsService.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/wultra/android/mtokensdk/operation/OperationsService.kt
Outdated
Show resolved
Hide resolved
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 think that the algorithm for calculating the adjusted time is wrong. See my comment below.
library/src/main/java/com/wultra/android/mtokensdk/operation/OperationsService.kt
Outdated
Show resolved
Hide resolved
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.
Looks OK now. I would like to note that we should also update iOS implementation, because it's slightly different now. There's for example missing test for FORCED_SERVER_TIME_CHANGE_MS
Resolved #91
Adding a server time feature that can be retrieved from the operation list
Same feature was already implemented on iOS wultra/mtoken-sdk-ios#112