Skip to content

v1.4.1 - Hot fix for LOCATION_ALWAYS

Choose a tag to compare

@vietnguyentuan2019 vietnguyentuan2019 released this 12 May 02:40

🐛 Bug Fixes

  • LOCATION_ALWAYS Flow: Fixed a regression introduced in 1.4.0 where a duplicate background location request caused a 60-second timeout if the app already possessed foreground location permissions (Issue #33).

🧪 Tests

  • Added Robolectric regression test Issue33HotfixDuplicateRequestTest (#36) that pins the v1.4.1 guard. Mocks GrantRequestActivity.requestGrants to count invocations; asserts exactly one call when the request starts from PARTIAL_GRANTED. Counter-test verifies the legitimate 2-step flow from NOT_DETERMINED is not over-restricted. Test was verified locally by temporarily reverting the guard — it correctly fails with Got 2 invocations.

Note: The test was added post-release in #36 (merge commit 8f27527). The v1.4.1 git tag still points to f3a41aa for stability; the published Maven Central artifact is unchanged (tests are not shipped). Future releases will include the regression coverage from main.