Skip to content

Conversation

@yschimke
Copy link
Collaborator

@yschimke yschimke commented Apr 6, 2024

Apps may want to defer SSL init off the main thread, so warn if they have enabled Strict Mode.

Alternative or precursor to #8248, should land which ever way that goes.

@yschimke yschimke added the android Relates to usage specifically on Android label Apr 6, 2024
@yschimke yschimke requested a review from swankjesse April 6, 2024 10:58
@yschimke
Copy link
Collaborator Author

@swankjesse if we don't do #8248, then we should be noisy when it's used on main.

@yschimke
Copy link
Collaborator Author

@swankjesse any objections to this?

@yschimke yschimke requested a review from JakeWharton January 4, 2025 10:08
Comment on lines +63 to +65
.penaltyListener({ it.run() }) {
violations.add(it)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmmm. When was this added? I would assume after our minSdk, so it should really have an @SdkSuppress(minSdk=something) on the class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll check, also why it's not failing if so.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ahhh, just the tests. And not running because of mannodermaus/android-junit-framework#225 and a minSdk 26 requirement for tests.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah. JUnit 5 continues to prove that it's the wrong choice for any project.

@yschimke yschimke merged commit 9c653c7 into square:master Jan 5, 2025
22 checks passed
@yschimke yschimke deleted the OkHttp-warning branch August 2, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Relates to usage specifically on Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants