Skip to content

Commit 409f448

Browse files
Merge pull request #2022 from embrace-io/move-old-payload-classes
Move old payload classes
2 parents c659d7d + 0297322 commit 409f448

8 files changed

Lines changed: 0 additions & 36 deletions

File tree

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/ApplicationState.kt renamed to embrace-android-core/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/ApplicationState.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package io.embrace.android.embracesdk.internal.payload
22

3-
import com.squareup.moshi.JsonClass
4-
5-
@JsonClass(generateAdapter = false)
63
enum class ApplicationState {
74

85
/**

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/LifeEventType.kt renamed to embrace-android-core/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/LifeEventType.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
package io.embrace.android.embracesdk.internal.payload
22

3-
import com.squareup.moshi.Json
4-
import com.squareup.moshi.JsonClass
5-
63
/**
74
* Enum to discriminate the different ways a session can start / end
85
*/
9-
@JsonClass(generateAdapter = false)
106
enum class LifeEventType {
117

128
/* Session values */
13-
14-
@Json(name = "s")
159
STATE,
16-
17-
@Json(name = "m")
1810
MANUAL,
1911

2012
/* Background activity values */
21-
22-
@Json(name = "bs")
2313
BKGND_STATE,
24-
25-
@Json(name = "bm")
2614
BKGND_MANUAL
2715
}

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AnrInterval.kt renamed to embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AnrInterval.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package io.embrace.android.embracesdk.internal.payload
22

3-
import com.squareup.moshi.JsonClass
4-
53
/**
64
* Intervals during which the UI thread was blocked for more than 1 second, which
75
* determines that the application is not responding (ANR).
@@ -42,7 +40,6 @@ data class AnrInterval @JvmOverloads constructor(
4240
/**
4341
* The type of thread not responding. Currently only the UI thread is monitored.
4442
*/
45-
@JsonClass(generateAdapter = false)
4643
enum class Type {
4744
UI
4845
}

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AnrSample.kt renamed to embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AnrSample.kt

File renamed without changes.

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AnrSampleList.kt renamed to embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AnrSampleList.kt

File renamed without changes.

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/PushNotificationBreadcrumb.kt renamed to embrace-android-features/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/PushNotificationBreadcrumb.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package io.embrace.android.embracesdk.internal.payload
22

3-
import com.squareup.moshi.JsonClass
4-
53
class PushNotificationBreadcrumb {
64

7-
@JsonClass(generateAdapter = false)
85
enum class NotificationType(val type: String) {
96
NOTIFICATION("notif"),
107
DATA("data"),

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AppFramework.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
package io.embrace.android.embracesdk.internal.payload
22

3-
import com.squareup.moshi.Json
4-
import com.squareup.moshi.JsonClass
5-
63
/**
74
* The frameworks in use by the app. Previous name: a.f
85
*
96
* Values: NATIVE,REACT_NATIVE,UNITY,FLUTTER
107
*/
11-
@JsonClass(generateAdapter = false)
128
enum class AppFramework(val value: Int) {
13-
@Json(name = "1")
149
NATIVE(1),
15-
16-
@Json(name = "2")
1710
REACT_NATIVE(2),
18-
19-
@Json(name = "3")
2011
UNITY(3),
21-
22-
@Json(name = "4")
2312
FLUTTER(4);
2413

2514
companion object {

embrace-android-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/EnvelopeResource.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,14 @@ import com.squareup.moshi.JsonClass
5454
* Unity/React Native/Flutter. Previous name: a.unv
5555
* @param hostedSdkVersion The version of the hosted SDK used. Previous name: a.usv
5656
* @param unityBuildId (Unity) the Unity build ID number. Previous name: a.ubg
57-
* @param launchCount (iOS) The number of times the SDK has been launched. Previous name: a.lc
58-
* @param environmentDetail (iOS) The name of the environment, i.e. dev or prod. Previous name: a.ed
5957
* @param deviceManufacturer The device manufacturer. Previous name: d.dm
6058
* @param deviceModel The device model. Previous name: d.do
6159
* @param deviceArchitecture The CPU architecture used by the device. Previous name: d.da
6260
* @param jailbroken Whether the device is rooted/jailbroken or not. Previous name: d.jb
6361
* @param diskTotalCapacity The total capacity of internal storage for the whole device. Previous name: d.ms
6462
* @param osType A hardcoded string representing the operating system in use. Previous name: d.os
6563
* @param osVersion The human readable OS version string. Previous name: d.ov
66-
* @param osAlternateType (iOS) The alternate OS type. Previous name: d.oa
6764
* @param osCode (Android) The OS version code. Previous name: d.oc
68-
* @param osBuild (iOS) The OS build code. Previous name: d.ob
6965
* @param screenResolution The screen resolution. Previous name: d.sr
7066
* @param numCores (Android) The number of CPU cores the device has. Previous name: d.nc
7167
*/

0 commit comments

Comments
 (0)