Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Aug 5, 2024
1 parent 3679894 commit f96afdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin-build/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dependencies {
testImplementationAar(Libs.SQLITE)
testImplementationAar(Libs.SQLITE_FRAMEWORK)
testRuntimeOnly(files(androidSdkPath))
testImplementation(Libs.SENTRY_ANDROID)
testImplementationAar(Libs.SENTRY_ANDROID)
testImplementationAar(Libs.SENTRY_ANDROID_OKHTTP)
testImplementationAar(Libs.SENTRY_OKHTTP)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import io.sentry.android.gradle.telemetry.SentryTelemetryService
import io.sentry.android.gradle.telemetry.withSentryTelemetry
import io.sentry.android.gradle.util.contentHash
import io.sentry.android.gradle.util.info
import java.util.UUID
import org.gradle.api.Project
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.file.Directory
Expand All @@ -15,7 +16,6 @@ import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.TaskProvider
import org.gradle.work.DisableCachingByDefault
import java.util.UUID

@DisableCachingByDefault
abstract class SentryGenerateProguardUuidTask : PropertiesFileOutputTask() {
Expand Down Expand Up @@ -67,8 +67,9 @@ abstract class SentryGenerateProguardUuidTask : PropertiesFileOutputTask() {
) { task ->
output?.let { task.output.set(it) }
task.withSentryTelemetry(extension, sentryTelemetryProvider)
if (proguardMappingFile != null)
if (proguardMappingFile != null) {
task.proguardMappingFiles.from(proguardMappingFile)
}
task.outputs.upToDateWhen { false }
}
return generateUuidTask
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ class SentryPluginTest :
assertEquals(uuid1, uuid2)
}


@Test
fun `does not regenerate UUID every build`() {
runner.appendArguments(":app:assembleRelease")
Expand Down

0 comments on commit f96afdd

Please sign in to comment.