Skip to content
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

Add a StrictMode noteSlowCall for SSL init #8339

Merged
merged 9 commits into from
Jan 5, 2025

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-junit5#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
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