-
Notifications
You must be signed in to change notification settings - Fork 3k
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
DO NOT MERGE: WILL BREAK RUNTIME. See conversation. Enable the thread police 👮 for debug builds #1050
Open
keyboardsurfer
wants to merge
1
commit into
main
Choose a base branch
from
bw/threadPolicy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lihenggui
reviewed
Nov 20, 2023
app/src/main/kotlin/com/google/samples/apps/nowinandroid/NiaApplication.kt
Outdated
Show resolved
Hide resolved
lihenggui
reviewed
Nov 20, 2023
app/src/main/kotlin/com/google/samples/apps/nowinandroid/NiaApplication.kt
Outdated
Show resolved
Hide resolved
After enabling the StrictMode, the application will crash when launched.
|
Quick question: should we also enable strict VmPolicy? |
keyboardsurfer
force-pushed
the
bw/threadPolicy
branch
2 times, most recently
from
November 21, 2023 10:26
b4e077c
to
d45ad54
Compare
alexvanyo
reviewed
Nov 21, 2023
app/src/main/kotlin/com/google/samples/apps/nowinandroid/MainActivity.kt
Outdated
Show resolved
Hide resolved
trietbui85
reviewed
Nov 24, 2023
app/src/main/kotlin/com/google/samples/apps/nowinandroid/MainActivity.kt
Outdated
Show resolved
Hide resolved
keyboardsurfer
force-pushed
the
bw/threadPolicy
branch
from
November 27, 2023 15:45
d45ad54
to
5b5b534
Compare
The RemoteConfig issue is being tracked here: firebase/firebase-android-sdk#5347 and I'm following up with the team. |
jdkoren
requested changes
Nov 27, 2023
app/src/main/kotlin/com/google/samples/apps/nowinandroid/MainActivity.kt
Outdated
Show resolved
Hide resolved
keyboardsurfer
force-pushed
the
bw/threadPolicy
branch
3 times, most recently
from
November 27, 2023 20:29
6812237
to
7af51af
Compare
keyboardsurfer
changed the title
Enable the thread police 👮 for debug builds
DO NOT MERGE: WILL BREAK RUNTIME. See conversation. Enable the thread police 👮 for debug builds
Nov 28, 2023
jdkoren
approved these changes
Mar 7, 2024
* App will now crash if someone does funky stuff on the main thread. Change-Id: I9026c100705f2fec6963a1d888b40906186f9d28
keyboardsurfer
force-pushed
the
bw/threadPolicy
branch
from
September 5, 2024 15:25
7af51af
to
87002c2
Compare
Combined test coverage report
Files
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I have done and why
App will now crash if someone does funky stuff on the main thread for debug builds.
This enforces programming thread safe programming (even though there are no obvious violations at the moment).
g
Do tests pass?
DemoDebug
variant:./gradlew testDemoDebug
./gradlew --init-script gradle/init.gradle.kts spotlessApply
Is this your first pull request?
./tools/setup.sh