-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move arch classes to core package
- Loading branch information
1 parent
029717f
commit b8d9570
Showing
32 changed files
with
131 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...nal/arch/destination/SessionSpanWriter.kt → ...nal/arch/destination/SessionSpanWriter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ore/src/main/kotlin/io/embrace/android/embracesdk/internal/arch/schema/SendImmediately.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package io.embrace.android.embracesdk.internal.arch.schema | ||
|
||
public object SendImmediately : FixedAttribute { | ||
override val key: EmbraceAttributeKey = EmbraceAttributeKey(id = "send_immediately") | ||
override val value: String = "true" | ||
} |
3 changes: 0 additions & 3 deletions
3
...ternal/arch/schema/TelemetryAttributes.kt → ...ternal/arch/schema/TelemetryAttributes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...k/internal/config/behavior/AnrBehavior.kt → ...k/internal/config/behavior/AnrBehavior.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ternal/config/behavior/NetworkBehavior.kt → ...ternal/config/behavior/NetworkBehavior.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/config/remote/Unwinder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package io.embrace.android.embracesdk.internal.config.remote | ||
|
||
public enum class Unwinder(public val code: Int) { | ||
LIBUNWIND(0), | ||
LIBUNWINDSTACK(1) | ||
} |
24 changes: 12 additions & 12 deletions
24
...cesdk/internal/payload/AppExitInfoData.kt → ...cesdk/internal/payload/AppExitInfoData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
package io.embrace.android.embracesdk.internal.payload | ||
|
||
internal data class AppExitInfoData( | ||
internal val sessionId: String?, | ||
public data class AppExitInfoData( | ||
public val sessionId: String?, | ||
|
||
internal val sessionIdError: String?, | ||
public val sessionIdError: String?, | ||
|
||
// the importance of the process that it used to have before the death. | ||
internal val importance: Int?, | ||
public val importance: Int?, | ||
|
||
// Last proportional set size of the memory that the process had used in Bytes. | ||
internal val pss: Long?, | ||
public val pss: Long?, | ||
|
||
internal val reason: Int?, | ||
public val reason: Int?, | ||
|
||
// Last resident set size of the memory that the process had used in Bytes. | ||
internal val rss: Long?, | ||
public val rss: Long?, | ||
|
||
// The exit status argument of exit() if the application calls it, | ||
// or the signal number if the application is signaled. | ||
internal val status: Int?, | ||
public val status: Int?, | ||
|
||
internal val timestamp: Long?, | ||
public val timestamp: Long?, | ||
|
||
// file with ANR/CRASH traces compressed as string | ||
internal val trace: String?, | ||
public val trace: String?, | ||
|
||
internal val description: String?, | ||
public val description: String?, | ||
|
||
// Error or Exception if the traces couldn't be collected | ||
internal val traceStatus: String? | ||
public val traceStatus: String? | ||
) |
37 changes: 37 additions & 0 deletions
37
...id-payload/src/main/kotlin/io/embrace/android/embracesdk/internal/payload/AppFramework.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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) | ||
public enum class AppFramework(public val value: Int) { | ||
@Json(name = "1") | ||
NATIVE(1), | ||
|
||
@Json(name = "2") | ||
REACT_NATIVE(2), | ||
|
||
@Json(name = "3") | ||
UNITY(3), | ||
|
||
@Json(name = "4") | ||
FLUTTER(4); | ||
|
||
public companion object { | ||
|
||
public fun fromInt(type: Int): AppFramework? = values().associateBy(AppFramework::value)[type] | ||
|
||
public fun fromString(type: String?): AppFramework? = when (type) { | ||
"react_native" -> REACT_NATIVE | ||
"unity" -> UNITY | ||
"flutter" -> FLUTTER | ||
"native" -> NATIVE | ||
else -> null | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.