-
-
Notifications
You must be signed in to change notification settings - Fork 466
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
69 lines (61 loc) · 1.81 KB
/
build.gradle.kts
File metadata and controls
69 lines (61 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import io.gitlab.arturbosch.detekt.Detekt
plugins {
id("com.android.application")
kotlin("android")
}
android {
compileSdk = Config.Android.compileSdkVersion
namespace = "io.sentry.uitest.android.critical"
signingConfigs {
getByName("debug") {
// Debug config remains unchanged
}
}
defaultConfig {
applicationId = "io.sentry.uitest.android.critical"
minSdk = Config.Android.minSdkVersionCompose
targetSdk = Config.Android.targetSdkVersion
versionCode = 1
versionName = "1.0"
}
buildTypes {
release {
isMinifyEnabled = false
signingConfig = signingConfigs.getByName("debug")
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = Config.androidComposeCompilerVersion
}
variantFilter {
if (Config.Android.shouldSkipDebugVariant(buildType.name)) {
ignore = true
}
}
}
dependencies {
implementation(kotlin(Config.kotlinStdLib, org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION))
implementation(Config.Libs.androidxCore)
implementation(Config.Libs.composeActivity)
implementation(Config.Libs.composeFoundation)
implementation(Config.Libs.composeMaterial)
implementation(Config.Libs.constraintLayout)
implementation(projects.sentryAndroidCore)
}
tasks.withType<Detekt> {
// Target version of the generated JVM bytecode. It is used for type resolution.
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
kotlin {
explicitApi()
}