- 🔭 I’m currently working at Marco Polo
- 😄 Pronouns: he/him
- 🫱🏻🫲 Connect with me on LinkedIn
- 🦋 Follow me on Bluesky
- 👤 Learn more about me on my website
🏖️
Working on Marco Polo :)
I have two cats and a wife.
- Youngstown, OH
-
21:07
(UTC -05:00) - adammagana.com
- in/adammagana
Highlights
- Pro
Pinned Loading
-
A means to preserve logging on Andro...
A means to preserve logging on Android without breaking simple unit tests. 1import android.util.Log
2import kotlin.reflect.KClass
34/**
5* An interface meant to trivialize the mocking of Android's [Log] methods.
-
An Android "Resource Provider" patte...
An Android "Resource Provider" pattern that I often use. Peep the Javadoc comments for details. 1import android.content.Context
2import android.graphics.drawable.Drawable
3import androidx.annotation.ColorInt
4import androidx.annotation.ColorRes
5import androidx.annotation.DrawableRes
-
An Android SkuDetails property exten...
An Android SkuDetails property extension that calculates price-per-month. 1import com.android.billingclient.api.SkuDetails
2import java.lang.Exception
3import java.text.NumberFormat
4import java.util.*
5 -
A convenient Swift protocol and wrap...
A convenient Swift protocol and wrapper for OSLog. 1import os
23private let subsystem = "<ENTER-YOUR-SUBSYSTEM-STRING-HERE>"
45// MARK: - Protocol
-
Helper method for updating constrain...
Helper method for updating constraints on a ConstraintLayout with Transitions. 1import androidx.constraintlayout.widget.ConstraintLayout
2import androidx.constraintlayout.widget.ConstraintSet
3import androidx.transition.Transition
4import androidx.transition.TransitionManager
5 -
An Android SharedPreferences functio...
An Android SharedPreferences function extension that simplifies the edit-and-apply flow 1import android.content.SharedPreferences
23/**
4* Simple extension to remove the need to call `SharedPreferences.edit()` and `SharedPreference.Editor.apply()` for
5* every preferences change.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.