Skip to content

Commit d884d6f

Browse files
authored
fix: Remove appStartMillis and appStartEndMillis getters and make getAppStartTime public instead (#1629)
1 parent baab2d6 commit d884d6f

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

sentry-android-core/api/sentry-android-core.api

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public final class io/sentry/android/core/AppLifecycleIntegration : io/sentry/In
3535
}
3636

3737
public final class io/sentry/android/core/AppStartState {
38-
public fun getAppStartEndMillis ()Ljava/lang/Long;
39-
public fun getAppStartMillis ()Ljava/lang/Long;
38+
public fun getAppStartTime ()Ljava/util/Date;
4039
public static fun getInstance ()Lio/sentry/android/core/AppStartState;
4140
public fun isColdStart ()Z
4241
}

sentry-android-core/src/main/java/io/sentry/android/core/AppStartState.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ synchronized void setColdStart(final boolean coldStart) {
6060
}
6161

6262
@Nullable
63-
Date getAppStartTime() {
63+
public Date getAppStartTime() {
6464
return appStartTime;
6565
}
6666

@@ -72,12 +72,4 @@ synchronized void setAppStartTime(final long appStartMillis, final @NotNull Date
7272
this.appStartTime = appStartTime;
7373
this.appStartMillis = appStartMillis;
7474
}
75-
76-
public @Nullable Long getAppStartMillis() {
77-
return appStartMillis;
78-
}
79-
80-
public @Nullable Long getAppStartEndMillis() {
81-
return appStartEndMillis;
82-
}
8375
}

0 commit comments

Comments
 (0)