Skip to content

feat: Added optional speed parameter for proper location mocking#70

Merged
mykola-mokhnach merged 1 commit intoappium:masterfrom
salabogdan:CustomLocationSpeed
Mar 5, 2021
Merged

feat: Added optional speed parameter for proper location mocking#70
mykola-mokhnach merged 1 commit intoappium:masterfrom
salabogdan:CustomLocationSpeed

Conversation

@salabogdan
Copy link
Copy Markdown
Contributor

@salabogdan salabogdan commented Mar 5, 2021

This is required in order to properly mock location updates for applications that require valid speed.
Setting location speed to 0.0 will make the location.hasSpeed() method to wrongly report that it has valid speed even though location.speed is 0.0 and in documentation this value is considered as invalid speed.
This was improved by enabling to set speed from exterior by sending "speed" parameter or if no speed was provided then the speed field will no longer be set making the location object to correctly report that it does not have speed.

This is related to:

@salabogdan salabogdan changed the title feat!: Added optional speed parameter for proper location mocking. feat!: Added optional speed parameter for proper location mocking Mar 5, 2021
@mykola-mokhnach
Copy link
Copy Markdown
Contributor

Could you please sign the CLA?

@salabogdan
Copy link
Copy Markdown
Contributor Author

salabogdan commented Mar 5, 2021

Could you please sign the CLA?

Did that but i am not sure what is left to do i don't have anything else to do on the details link.
Screenshot 2021-03-05 at 20 39 08

@salabogdan
Copy link
Copy Markdown
Contributor Author

salabogdan commented Mar 5, 2021

Also the failing checks should not be related to my code changes. I am not sure if i need to do anything more there.

@mykola-mokhnach
Copy link
Copy Markdown
Contributor

I've addressed the linter issue in #71
You could rebase with it make CI pass

@salabogdan salabogdan changed the title feat!: Added optional speed parameter for proper location mocking feat: Added optional speed parameter for proper location mocking Mar 5, 2021
@salabogdan
Copy link
Copy Markdown
Contributor Author

After several attempts i finally did it! :))

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.

2 participants