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
Analysis: Resolve synchronized on suspend coroutines warning
Warning Messages: "@synchronized annotation is not applicable to suspend
functions and lambdas"
It turns out that this '@synchronized' solution were already replacing
the previous (d5b9948) 'Mutex'
solution, and this, due to the fact that the existing (back then)
'Mutex' solution were causing crashes on Samsung devices running
Android 5 (API Level 21). However, this repo, and thus both, the
WordPress and Jetpack apps, are no longer supporting these devices as
the current 'minSdkVersion' is '24' (Android 7). Thus, this
'@synchronized' annotation can be now safely removed and the
'Mutex' solution reverting back.
For more info see:
- Fix crash in UploadStarter on Samsung devices with Android 5 #10877
(Introduced In): https://github.com/wordpress-mobile/WordPress-Android/
pull/10877/
- ExceptionInInitializerError #10827 (Crash Report):
#10827
- NoSuchFieldException with AtomicReferenceFieldUpdater on Samsung
Android 5.0.x devices #490 (Coroutines Issue):
Kotlin/kotlinx.coroutines#490
0 commit comments