-
Notifications
You must be signed in to change notification settings - Fork 8
[Android] Set minSdk to 23 #656
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
Conversation
Size Comparison Report (x86_64)
|
platform/jvm/capture/src/main/kotlin/io/bitdrift/capture/attributes/NetworkAttributes.kt
Outdated
Show resolved
Hide resolved
0f59b78
to
f1f368b
Compare
f1f368b
to
28624d2
Compare
updateNetworkType(connectivityManager.getNetworkCapabilities(network)) | ||
} | ||
connectivityManager.registerDefaultNetworkCallback(this) | ||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean <23 devices will not receive networking info at all? sounds like we should fallback to the more expensive polling logic in these cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I just reverted to what we had prior to 24 6e6eff47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also to clarify we won't be supporting below 23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do more testing with various testing of network con
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops yeah sorry I meant <24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verified on this session, callbacks still happening due to older API call connectivityManager.registerNetworkCallback(NetworkRequest.Builder().build(), this)

16479a4
to
b16ddfb
Compare
Setting minSdk to 23. This is inline with androidx minSdk level
The most relevant changes:
JankStatsMonitor
to run againsendJankFrameData
outside main thread <24NetworkAttributes
to useregisterNetworkCallback
below <24Verification
Verified on API 23 device. Timeline session