Dev Notes: January 3 - 9, 2025
Work
- Released new Android version 9.0 to production, currently monitoring crashes and ANRs.
- Released a patch fix Android version 9.0.1 due to a couple of crashes I have yet to figure out.
Wrong analytics feedback
I noticed in the Mixpanel analytics that there was an unusual spike in the event “Sending Message Failed”. It turns out I have the implementation wrong.
if messageObservable.sendMessageStatus == .success {
#if RELEASE
Mixpanel.mainInstance().track(event: "Message Sent")
#endif
} else {
#if RELEASE
Mixpanel.mainInstance().track(event: "Sending Message Failed")
#endif
}
The sendMessageStatus has 4 cases, so every SendMessageStatus
case except success
will send the Sending Message Failed analytics. This should be fixed on the next version.
enum SendMessageStatus {
case none
case inProgress
case success
case failed
}
SwiftUI
Today I learned a quick implementation in gradient background. Gradient background is all the rage today, so let’s see if it looks good.
.background(LinearGradient(gradient: Gradient(colors: [Color(.gradient1), Color(.gradient2)]), startPoint: .top, endPoint: .bottom))