-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
build.gradle.kts
78 lines (66 loc) · 2.19 KB
/
build.gradle.kts
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
70
71
72
73
74
75
76
77
78
plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
id("io.sentry.android.gradle")
}
// useful for local debugging of the androidx.sqlite lib
// make sure to checkout the lib from https://github.com/androidx/androidx/tree/androidx-main/sqlite/sqlite-framework
// configurations.all {
// resolutionStrategy.dependencySubstitution {
// substitute(module("androidx.sqlite:sqlite-framework")).using(project(":sqlite-framework"))
// }
// }
android {
compileSdk = LibsVersion.SDK_VERSION
defaultConfig {
minSdk = LibsVersion.MIN_SDK_VERSION
targetSdk = LibsVersion.SDK_VERSION
versionCode = 1
versionName = "1.0"
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles.add(getDefaultProguardFile("proguard-android-optimize.txt"))
signingConfig = signingConfigs.getByName("debug")
}
}
signingConfigs {
getByName("debug") {
storeFile = file("debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkey"
keyPassword = "android"
}
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
namespace = "io.sentry.samples.instrumentation"
}
// useful, when we want to modify room-generated classes, and then compile them into .class files
// so room does not re-generate and overwrite our changes
// afterEvaluate {
// tasks.getByName("kaptDebugKotlin").enabled = false
// }
dependencies {
implementation(Samples.AndroidX.recyclerView)
implementation(Samples.AndroidX.lifecycle)
implementation(Samples.AndroidX.appcompat)
implementation(Samples.Coroutines.core)
implementation(Samples.Coroutines.android)
implementation(Samples.Room.runtime)
implementation(Samples.Room.ktx)
implementation(Samples.Room.rxjava)
implementation(Samples.Timber.timber)
implementation(Samples.Fragment.fragmentKtx)
implementation(project(":examples:android-room-lib"))
kapt(Samples.Room.compiler)
}
sentry {
autoUploadProguardMapping.set(false)
tracingInstrumentation {
forceInstrumentDependencies.set(true)
}
}