You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc2bd59
Browse filesBrowse the repository at this point in the historyBrowse files
ref(android): Address the review of the cellular technology
* `CellularNetworkTechnologyProvider` guards its registration with
`synchronized` instead of `AutoClosableReentrantLock`. That lock only
exists for a JVM bug, and this code is Android only.
* The provider takes the executor service and builds the executor the
telephony framework calls, with the guard against a rejection. The
constructor of `AndroidConnectionStatusProvider` no longer sets up
that exception handling.
* `Connection` moves out of `AndroidConnectionStatusProvider`, which is
already a large class, into a top level `NetworkConnection`. The name
is not `ConnectionType`, because the class holds the connection type
and the effective type.
* The test for the rejected executor is removed, together with its
executor double.
Copy file name to clipboardExpand all lines: sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidConnectionStatusProvider.java
Copy file name to clipboardExpand all lines: sentry-android-core/src/main/java/io/sentry/android/core/internal/util/CellularNetworkTechnologyProvider.java
Copy file name to clipboardExpand all lines: sentry-android-core/src/test/java/io/sentry/android/core/internal/util/AndroidConnectionStatusProviderTest.kt
Copy file name to clipboardExpand all lines: sentry-android-core/src/test/java/io/sentry/android/core/internal/util/CellularNetworkTechnologyProviderTest.kt
0 commit comments