diff --git a/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/CrashLoggingDataProvider.kt b/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/CrashLoggingDataProvider.kt index c98abffe..e2b1e068 100644 --- a/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/CrashLoggingDataProvider.kt +++ b/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/CrashLoggingDataProvider.kt @@ -14,11 +14,6 @@ interface CrashLoggingDataProvider { */ val buildType: String - /** - * Provides [CrashLogging] with the name of this release. - */ - val releaseName: String - /** * Provides the [CrashLogging] with information about the user's current locale */ diff --git a/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/internal/SentryCrashLogging.kt b/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/internal/SentryCrashLogging.kt index 17ee8781..8cb9b814 100644 --- a/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/internal/SentryCrashLogging.kt +++ b/AutomatticTracks/src/main/java/com/automattic/android/tracks/crashlogging/internal/SentryCrashLogging.kt @@ -44,7 +44,6 @@ internal class SentryCrashLogging constructor( options.apply { dsn = dataProvider.sentryDSN environment = dataProvider.buildType - release = dataProvider.releaseName this.tracesSampleRate = tracesSampleRate this.profilesSampleRate = profilesSampleRate isDebug = dataProvider.enableCrashLoggingLogs diff --git a/AutomatticTracks/src/test/java/com/automattic/android/tracks/crashlogging/SentryCrashLoggingTest.kt b/AutomatticTracks/src/test/java/com/automattic/android/tracks/crashlogging/SentryCrashLoggingTest.kt index 437ce9d6..b153f287 100644 --- a/AutomatticTracks/src/test/java/com/automattic/android/tracks/crashlogging/SentryCrashLoggingTest.kt +++ b/AutomatticTracks/src/test/java/com/automattic/android/tracks/crashlogging/SentryCrashLoggingTest.kt @@ -80,7 +80,7 @@ class SentryCrashLoggingTest { SoftAssertions().apply { assertThat(options.dsn).isEqualTo(dataProvider.sentryDSN) assertThat(options.environment).isEqualTo(dataProvider.buildType) - assertThat(options.release).isEqualTo(dataProvider.releaseName) + assertThat(options.release).isNull() }.assertAll() } } diff --git a/AutomatticTracks/src/test/java/com/automattic/android/tracks/fakes/FakeDataProvider.kt b/AutomatticTracks/src/test/java/com/automattic/android/tracks/fakes/FakeDataProvider.kt index be58800b..41051c33 100644 --- a/AutomatticTracks/src/test/java/com/automattic/android/tracks/fakes/FakeDataProvider.kt +++ b/AutomatticTracks/src/test/java/com/automattic/android/tracks/fakes/FakeDataProvider.kt @@ -13,7 +13,6 @@ import java.util.Locale class FakeDataProvider( override val sentryDSN: String = BuildConfig.SENTRY_TEST_PROJECT_DSN, override val buildType: String = "testBuildType", - override val releaseName: String = "testReleaseName", override val locale: Locale? = Locale.US, override val enableCrashLoggingLogs: Boolean = true, var crashLoggingEnabled: Boolean = true, diff --git a/sampletracksapp/src/main/java/com/example/sampletracksapp/MainActivity.kt b/sampletracksapp/src/main/java/com/example/sampletracksapp/MainActivity.kt index 512d4ea2..08befc96 100644 --- a/sampletracksapp/src/main/java/com/example/sampletracksapp/MainActivity.kt +++ b/sampletracksapp/src/main/java/com/example/sampletracksapp/MainActivity.kt @@ -41,7 +41,6 @@ class MainActivity : AppCompatActivity() { object : CrashLoggingDataProvider { override val sentryDSN = BuildConfig.SENTRY_TEST_PROJECT_DSN override val buildType = BuildConfig.BUILD_TYPE - override val releaseName = "test" override val locale = Locale.US override val enableCrashLoggingLogs = true override val performanceMonitoringConfig = PerformanceMonitoringConfig.Enabled(sampleRate = 1.0, profilesSampleRate = 1.0)