Skip to content

Commit 4ff485a

Browse files
committed
Fixes to imports
1 parent a5451ae commit 4ff485a

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

packages/core/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import io.sentry.ISentryExecutorService;
3737
import io.sentry.ISerializer;
3838
import io.sentry.Integration;
39+
import io.sentry.ProfileLifecycle;
3940
import io.sentry.ScopesAdapter;
4041
import io.sentry.ScreenshotStrategyType;
4142
import io.sentry.Sentry;
@@ -483,8 +484,7 @@ private SentryReplayQuality parseReplayQuality(@Nullable String qualityString) {
483484
}
484485
}
485486

486-
private void configureAndroidProfiling(
487-
@NotNull SentryAndroidOptions options, @NotNull ReadableMap rnOptions) {
487+
private void configureAndroidProfiling(@NotNull SentryAndroidOptions options, @NotNull ReadableMap rnOptions) {
488488
if (!rnOptions.hasKey("_experiments")) {
489489
return;
490490
}
@@ -516,24 +516,21 @@ private void configureAndroidProfiling(
516516
if (androidProfilingOptions.hasKey("lifecycle")) {
517517
final String lifecycle = androidProfilingOptions.getString("lifecycle");
518518
if ("manual".equalsIgnoreCase(lifecycle)) {
519-
options.setProfilingLifecycle(
520-
io.sentry.android.core.SentryAndroidOptions.ProfilingLifecycle.MANUAL);
521-
logger.log(SentryLevel.INFO, "Android UI Profiling lifecycle set to: MANUAL");
519+
options.setProfileLifecycle(ProfileLifecycle.MANUAL);
520+
logger.log(SentryLevel.INFO, "Android UI Profile Lifecycle set to MANUAL");
522521
} else if ("trace".equalsIgnoreCase(lifecycle)) {
523-
options.setProfilingLifecycle(
524-
io.sentry.android.core.SentryAndroidOptions.ProfilingLifecycle.TRACE);
525-
logger.log(SentryLevel.INFO, "Android UI Profiling lifecycle set to: TRACE");
522+
options.setProfileLifecycle(ProfileLifecycle.TRACE);
523+
logger.log(SentryLevel.INFO, "Android UI Profile Lifecycle set to TRACE");
526524
}
527525
}
528526

529527
// Set start on app start
530528
if (androidProfilingOptions.hasKey("startOnAppStart")) {
531529
final boolean startOnAppStart = androidProfilingOptions.getBoolean("startOnAppStart");
532-
options.setStartProfilingOnAppStart(startOnAppStart);
530+
options.setStartProfilerOnAppStart(startOnAppStart);
533531
logger.log(
534532
SentryLevel.INFO,
535-
String.format(
536-
"Android UI Profiling startOnAppStart set to: %b", startOnAppStart));
533+
String.format("Android UI Profiling startOnAppStart set to %b", startOnAppStart));
537534
}
538535
}
539536

0 commit comments

Comments
 (0)