@@ -7,6 +7,7 @@ plugins {
77 id(" kotlin-parcelize" )
88 kotlin(" plugin.serialization" )
99 id(" com.google.gms.google-services" )
10+ id(" io.sentry.android.gradle" ) version " 2.0.1"
1011}
1112
1213val hasReleaseKey: Boolean = project.rootProject.file(" release/yaba-release.jks" ).exists()
@@ -51,17 +52,18 @@ dependencies {
5152 implementation(Lib .Firebase .messagingDirectBoot)
5253 implementation(Lib .Jetpack .work)
5354 implementation(Lib .Jetpack .workMultiProcess)
55+ implementation(" io.sentry:sentry-android:5.0.1" )
5456}
5557
5658android {
57- compileSdk = 30
59+ compileSdk = AndroidConfig .compileSdk
5860 buildToolsVersion = " 31.0.0"
5961 defaultConfig {
6062 applicationId = " tech.alexib.yaba"
61- minSdk = 29
62- targetSdk = 30
63- versionCode = 1
64- versionName = " 1.0 "
63+ minSdk = AndroidConfig .minSdk
64+ targetSdk = AndroidConfig .targetSdk
65+ versionCode = AndroidConfig .versionCode
66+ versionName = AndroidConfig .versionName
6567 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
6668 vectorDrawables {
6769 useSupportLibrary = true
@@ -175,3 +177,22 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
175177 jvmTarget = " 11"
176178 }
177179}
180+
181+ sentry {
182+ // Enables or disables the automatic upload of mapping files
183+ // during a build. If you disable this, you'll need to manually
184+ // upload the mapping files with sentry-cli when you do a release.
185+ autoUpload.set(true )
186+
187+ // Disables or enables the automatic configuration of Native Symbols
188+ // for Sentry. This executes sentry-cli automatically so
189+ // you don't need to do it manually.
190+ // Default is disabled.
191+ uploadNativeSymbols.set(true )
192+
193+ // Does or doesn't include the source code of native code for Sentry.
194+ // This executes sentry-cli with the --include-sources param. automatically so
195+ // you don't need to do it manually.
196+ // Default is disabled.
197+ includeNativeSources.set(true )
198+ }
0 commit comments