Skip to content

Instantly share code, notes, and snippets.

@ktvipin27
Created June 11, 2020 15:00
Show Gist options
  • Save ktvipin27/35312ce8b7322777856cadf338f2e9c8 to your computer and use it in GitHub Desktop.
Save ktvipin27/35312ce8b7322777856cadf338f2e9c8 to your computer and use it in GitHub Desktop.
DeviceDetails class for Timber configuration for pushing logs to Firebase realtime database.
data class DeviceDetails(
val deviceId: String,
val osVersion: String = Build.VERSION.RELEASE,
val manufacturer: String = Build.MANUFACTURER,
val brand: String = Build.BRAND,
val device: String = Build.DEVICE,
val model: String = Build.MODEL,
val appVersionName: String = BuildConfig.VERSION_NAME,
val appVersionCode: Int = BuildConfig.VERSION_CODE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment