Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package io.embrace.android.embracesdk.internal.payload

import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = false)
enum class ApplicationState {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
package io.embrace.android.embracesdk.internal.payload

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
* Enum to discriminate the different ways a session can start / end
*/
@JsonClass(generateAdapter = false)
enum class LifeEventType {

/* Session values */

@Json(name = "s")
STATE,

@Json(name = "m")
MANUAL,

/* Background activity values */

@Json(name = "bs")
BKGND_STATE,

@Json(name = "bm")
BKGND_MANUAL
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.embrace.android.embracesdk.internal.payload

import com.squareup.moshi.JsonClass

/**
* Intervals during which the UI thread was blocked for more than 1 second, which
* determines that the application is not responding (ANR).
Expand Down Expand Up @@ -42,7 +40,6 @@ data class AnrInterval @JvmOverloads constructor(
/**
* The type of thread not responding. Currently only the UI thread is monitored.
*/
@JsonClass(generateAdapter = false)
enum class Type {
UI
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package io.embrace.android.embracesdk.internal.payload

import com.squareup.moshi.JsonClass

class PushNotificationBreadcrumb {

@JsonClass(generateAdapter = false)
enum class NotificationType(val type: String) {
NOTIFICATION("notif"),
DATA("data"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
package io.embrace.android.embracesdk.internal.payload

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
* The frameworks in use by the app. Previous name: a.f
*
* Values: NATIVE,REACT_NATIVE,UNITY,FLUTTER
*/
@JsonClass(generateAdapter = false)
enum class AppFramework(val value: Int) {
@Json(name = "1")
NATIVE(1),

@Json(name = "2")
REACT_NATIVE(2),

@Json(name = "3")
UNITY(3),

@Json(name = "4")
FLUTTER(4);

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,14 @@ import com.squareup.moshi.JsonClass
* Unity/React Native/Flutter. Previous name: a.unv
* @param hostedSdkVersion The version of the hosted SDK used. Previous name: a.usv
* @param unityBuildId (Unity) the Unity build ID number. Previous name: a.ubg
* @param launchCount (iOS) The number of times the SDK has been launched. Previous name: a.lc
* @param environmentDetail (iOS) The name of the environment, i.e. dev or prod. Previous name: a.ed
* @param deviceManufacturer The device manufacturer. Previous name: d.dm
* @param deviceModel The device model. Previous name: d.do
* @param deviceArchitecture The CPU architecture used by the device. Previous name: d.da
* @param jailbroken Whether the device is rooted/jailbroken or not. Previous name: d.jb
* @param diskTotalCapacity The total capacity of internal storage for the whole device. Previous name: d.ms
* @param osType A hardcoded string representing the operating system in use. Previous name: d.os
* @param osVersion The human readable OS version string. Previous name: d.ov
* @param osAlternateType (iOS) The alternate OS type. Previous name: d.oa
* @param osCode (Android) The OS version code. Previous name: d.oc
* @param osBuild (iOS) The OS build code. Previous name: d.ob
* @param screenResolution The screen resolution. Previous name: d.sr
* @param numCores (Android) The number of CPU cores the device has. Previous name: d.nc
*/
Expand Down
Loading