-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove manual serializers for NDK layer
- Loading branch information
1 parent
e3af057
commit 2fe3c99
Showing
13 changed files
with
43 additions
and
273 deletions.
There are no files selected for viewing
56 changes: 0 additions & 56 deletions
56
...ce-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/utils/MessageUtils.kt
This file was deleted.
Oops, something went wrong.
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
18 changes: 1 addition & 17 deletions
18
...ce-android-sdk/src/main/java/io/embrace/android/embracesdk/payload/NativeCrashMetadata.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,26 +1,10 @@ | ||
package io.embrace.android.embracesdk.payload | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import io.embrace.android.embracesdk.internal.utils.MessageUtils.withMap | ||
|
||
internal class NativeCrashMetadata( | ||
@SerializedName("a") val appInfo: AppInfo, | ||
@SerializedName("d") val deviceInfo: DeviceInfo, | ||
@SerializedName("u") val userInfo: UserInfo, | ||
@SerializedName("sp") val sessionProperties: Map<String?, String?>? | ||
) { | ||
|
||
fun toJson(): String { | ||
val sb = StringBuilder() | ||
sb.append("{\"a\":") | ||
sb.append(appInfo.toJson()) | ||
sb.append(",\"d\":") | ||
sb.append(deviceInfo.toJson()) | ||
sb.append(",\"u\":") | ||
sb.append(userInfo.toJson()) | ||
sb.append(",\"sp\":") | ||
sb.append(withMap(sessionProperties)) | ||
sb.append("}") | ||
return sb.toString() | ||
} | ||
} | ||
) |
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
94 changes: 0 additions & 94 deletions
94
embrace-android-sdk/src/test/java/io/embrace/android/embracesdk/MessageUtilsTest.kt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.