Skip to content

Conversation

@jimmyjames
Copy link
Contributor

As reported in #136, the introduction of support for Duration causes an issue when using com.google.guava:guava:30.1.1-android, as the Android version does not support configuration with Duration (the comment here suggests it should be added). In this case we can just invert the constructor delegation of GuavaCachedJwkProvider to call Guava using TimeUnit.

In my tests using a project with a dependency on com.google.guava:guava:30.1.1-android, this change fixed the reported issue.

@jimmyjames jimmyjames added this to the v0-Next milestone Jan 28, 2022
@jimmyjames jimmyjames requested a review from a team as a code owner January 28, 2022 20:57
Copy link
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

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

Looks good 👍 Neat solution.

@jimmyjames jimmyjames merged commit daf0c34 into master Feb 1, 2022
@jimmyjames jimmyjames modified the milestones: v0-Next, 0.20.2 Feb 1, 2022
@jimmyjames jimmyjames mentioned this pull request Feb 1, 2022
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