Skip to content

Commit f16d330

Browse files
github-actions[bot]web-flowkrystofwoldrich
authored
chore(deps): update Android SDK to v6.13.0 (#2790)
Co-authored-by: GitHub <[email protected]> Co-authored-by: Krystof Woldrich <[email protected]>
1 parent 8bd86ac commit f16d330

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Dependencies
6+
7+
- Bump Android SDK from v6.12.1 to v6.13.0 ([#2790](https://github.com/getsentry/sentry-react-native/pull/2790))
8+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#6130)
9+
- [diff](https://github.com/getsentry/sentry-java/compare/6.12.1...6.13.0)
10+
311
## 4.14.0
412

513
### Features

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ android {
2424

2525
dependencies {
2626
implementation 'com.facebook.react:react-native:+'
27-
api 'io.sentry:sentry-android:6.12.1'
27+
api 'io.sentry:sentry-android:6.13.0'
2828
}

android/src/main/java/io/sentry/react/RNSentryModule.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.io.FileOutputStream;
3333
import java.io.InputStream;
3434
import java.nio.charset.Charset;
35-
import java.util.Date;
3635
import java.util.HashMap;
3736
import java.util.List;
3837
import java.util.Map;
@@ -41,10 +40,12 @@
4140
import java.util.concurrent.TimeUnit;
4241

4342
import io.sentry.Breadcrumb;
43+
import io.sentry.DateUtils;
4444
import io.sentry.HubAdapter;
4545
import io.sentry.ILogger;
4646
import io.sentry.Integration;
4747
import io.sentry.Sentry;
48+
import io.sentry.SentryDate;
4849
import io.sentry.SentryEvent;
4950
import io.sentry.SentryLevel;
5051
import io.sentry.UncaughtExceptionHandlerIntegration;
@@ -234,7 +235,7 @@ public void fetchNativeRelease(Promise promise) {
234235
@ReactMethod
235236
public void fetchNativeAppStart(Promise promise) {
236237
final AppStartState appStartInstance = AppStartState.getInstance();
237-
final Date appStartTime = appStartInstance.getAppStartTime();
238+
final SentryDate appStartTime = appStartInstance.getAppStartTime();
238239
final Boolean isColdStart = appStartInstance.isColdStart();
239240

240241
if (appStartTime == null) {
@@ -244,11 +245,11 @@ public void fetchNativeAppStart(Promise promise) {
244245
logger.log(SentryLevel.WARNING, "App start won't be sent due to missing isColdStart.");
245246
promise.resolve(null);
246247
} else {
247-
final double appStartTimestamp = (double) appStartTime.getTime();
248+
final double appStartTimestampMs = DateUtils.nanosToMillis(appStartTime.nanoTimestamp());
248249

249250
WritableMap appStart = Arguments.createMap();
250251

251-
appStart.putDouble("appStartTime", appStartTimestamp);
252+
appStart.putDouble("appStartTime", appStartTimestampMs);
252253
appStart.putBoolean("isColdStart", isColdStart);
253254
appStart.putBoolean("didFetchAppStart", didFetchAppStart);
254255

0 commit comments

Comments
 (0)