-
-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
179 additions
and
10 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
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
22 changes: 22 additions & 0 deletions
22
sentry-android-core/src/main/java/io/sentry/android/core/IActivityFramesTracker.java
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,22 @@ | ||
package io.sentry.android.core; | ||
|
||
import android.app.Activity; | ||
import io.sentry.protocol.MeasurementValue; | ||
import io.sentry.protocol.SentryId; | ||
import java.util.Map; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface IActivityFramesTracker { | ||
@SuppressWarnings("NullAway") | ||
void addActivity(@NotNull Activity activity); | ||
|
||
@SuppressWarnings("NullAway") | ||
void setMetrics(@NotNull Activity activity, @NotNull SentryId transactionId); | ||
|
||
@Nullable | ||
Map<String, @NotNull MeasurementValue> takeMetrics(@NotNull SentryId transactionId); | ||
|
||
@SuppressWarnings("NullAway") | ||
void stop(); | ||
} |
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
25 changes: 25 additions & 0 deletions
25
sentry-android-core/src/main/java/io/sentry/android/core/NoOpActivityFramesTracker.java
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,25 @@ | ||
package io.sentry.android.core; | ||
|
||
import android.app.Activity; | ||
import io.sentry.protocol.MeasurementValue; | ||
import io.sentry.protocol.SentryId; | ||
import java.util.Map; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public final class NoOpActivityFramesTracker implements IActivityFramesTracker { | ||
@Override | ||
public void addActivity(@NotNull Activity activity) {} | ||
|
||
@Override | ||
public void setMetrics(@NotNull Activity activity, @NotNull SentryId transactionId) {} | ||
|
||
@Override | ||
public @Nullable Map<String, @NotNull MeasurementValue> takeMetrics( | ||
@NotNull SentryId transactionId) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void stop() {} | ||
} |
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