Skip to content

Commit d349aab

Browse files
committed
Add build distribution module.
This is the first step towards the build distribution library. I named it `sentry-build-distribution` not `sentry-android-build-distribution` because i thought the name was too long. This will only ever be an `android` based sdk so feel free to push back on the naming.
1 parent 4051bdc commit d349aab

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
plugins {
2+
id("com.android.library")
3+
alias(libs.plugins.kotlin.android)
4+
}
5+
6+
android {
7+
compileSdk = libs.versions.compileSdk.get().toInt()
8+
namespace = "io.sentry.build.distribution"
9+
10+
defaultConfig {
11+
minSdk = libs.versions.minSdk.get().toInt()
12+
}
13+
buildFeatures {
14+
// Determines whether to generate a BuildConfig class.
15+
buildConfig = false
16+
}
17+
}
18+
19+
androidComponents.beforeVariants {
20+
it.enable = !Config.Android.shouldSkipDebugVariant(it.buildType)
21+
}
22+
23+
dependencies {
24+
api(projects.sentry)
25+
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ includeBuild("build-logic")
2121
include(
2222
"sentry",
2323
"sentry-kotlin-extensions",
24+
"sentry-build-distribution",
2425
"sentry-android-core",
2526
"sentry-android-ndk",
2627
"sentry-android",

0 commit comments

Comments
 (0)