Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ subprojects {
}
}

if (!this.name.contains("sample") && !this.name.contains("integration-tests") && this.name != "sentry-system-test-support" && this.name != "sentry-test-support") {
if (!this.name.contains("sample") && !this.name.contains("integration-tests") && this.name != "sentry-system-test-support" && this.name != "sentry-test-support" && this.name != "sentry-android-distribution") {
apply<DistributionPlugin>()
apply<com.vanniktech.maven.publish.MavenPublishPlugin>()

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public final class io/sentry/android/distribution/Distribution {
public fun <init> ()V
}

30 changes: 30 additions & 0 deletions sentry-android-distribution/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import org.jetbrains.kotlin.config.KotlinCompilerVersion
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

plugins {
id("com.android.library")
alias(libs.plugins.kotlin.android)
}

android {
compileSdk = libs.versions.compileSdk.get().toInt()
namespace = "io.sentry.android.distribution"

defaultConfig { minSdk = libs.versions.minSdk.get().toInt() }
buildFeatures { buildConfig = false }
}

kotlin {
jvmToolchain(17)
compilerOptions.languageVersion = KotlinVersion.KOTLIN_1_9
explicitApi()
}

androidComponents.beforeVariants {
it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType)
}

dependencies {
implementation(projects.sentry)
implementation(kotlin(Config.kotlinStdLib, KotlinCompilerVersion.VERSION))
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package io.sentry.android.distribution

public class Distribution {}
3 changes: 2 additions & 1 deletion sentry-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ dependencies {
.filter {
!it.name.startsWith("sentry-samples") &&
it.name != project.name &&
!it.name.contains("test", ignoreCase = true)
!it.name.contains("test", ignoreCase = true) &&
!it.name.contains("sentry-android-distribution")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Inconsistent BOM Exclusion Logic

The BOM's exclusion for sentry-android-distribution uses a substring match, which is inconsistent with other exact-name exclusions. This could unintentionally prevent future modules whose names contain "sentry-android-distribution" from being included in the BOM.

Fix in Cursor Fix in Web

}
.forEach { project ->
evaluationDependsOn(project.path)
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ includeBuild("build-logic")
include(
"sentry",
"sentry-kotlin-extensions",
"sentry-android-distribution",
"sentry-android-core",
"sentry-android-ndk",
"sentry-android",
Expand Down
Loading