fix: draft fixed sentry upload sources

This commit is contained in:
danilkinkin 2022-11-16 23:20:40 +04:00
parent 7e71670808
commit 1ef257b622
4 changed files with 48 additions and 20 deletions

View file

@ -4,6 +4,7 @@ plugins {
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
id("io.sentry.android.gradle")
}
android {
@ -67,7 +68,6 @@ android {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
implementation("androidx.appcompat:appcompat:1.5.1")
implementation("androidx.activity:activity-compose:1.6.1")
implementation("androidx.compose.runtime:runtime:1.3.1")
@ -83,33 +83,21 @@ dependencies {
implementation("androidx.compose.material3:material3:1.0.1")
implementation("androidx.compose.material:material:1.3.1")
implementation("androidx.datastore:datastore-preferences:1.0.0")
implementation("com.google.accompanist:accompanist-systemuicontroller:0.25.1")
implementation("androidx.room:room-runtime:2.5.0-beta02")
kapt("androidx.room:room-compiler:2.5.0-beta02")
implementation("androidx.room:room-ktx:2.5.0-beta02")
implementation("androidx.room:room-paging:2.4.3")
implementation("com.google.dagger:dagger:2.44")
kapt("com.google.dagger:dagger-compiler:2.44")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1")
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
implementation("com.google.dagger:hilt-android:2.44")
kapt("com.google.dagger:hilt-android-compiler:2.44")
kapt("androidx.hilt:hilt-compiler:1.0.0")
implementation("io.coil-kt:coil-compose:2.2.2")
implementation("androidx.core:core-splashscreen:1.0.0")
implementation("io.sentry:sentry-android:6.5.0")
implementation("io.sentry:sentry-compose-android:6.5.0")
debugImplementation("androidx.compose.ui:ui-test-manifest:1.3.1")
androidTestImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test:core:1.5.0")
androidTestImplementation("androidx.test:runner:1.5.1")
@ -124,6 +112,32 @@ dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.2")
}
// For more info see: https://docs.sentry.io/platforms/android/gradle/
sentry {
includeProguardMapping.set(true)
autoUploadProguardMapping.set(true)
experimentalGuardsquareSupport.set(true)
uploadNativeSymbols.set(true)
includeNativeSources.set(true)
tracingInstrumentation {
enabled.set(true)
features.set(
setOf(
io.sentry.android.gradle.extensions.InstrumentationFeature.DATABASE,
io.sentry.android.gradle.extensions.InstrumentationFeature.FILE_IO,
io.sentry.android.gradle.extensions.InstrumentationFeature.OKHTTP,
io.sentry.android.gradle.extensions.InstrumentationFeature.COMPOSE,
)
)
}
autoInstallation {
enabled.set(true)
sentryVersion.set("6.6.0")
}
includeDependenciesReport.set(true)
ignoredBuildTypes.set(setOf("debug"))
}
secrets {
defaultPropertiesFileName = "local.defaults.properties"
}

View file

@ -5,6 +5,7 @@ buildscript {
maven { url=uri("https://androidx.dev/snapshots/builds/-/artifacts/repository") }
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.google.dagger:hilt-android-gradle-plugin:2.44")
@ -21,16 +22,25 @@ subprojects {
}
pluginManager.apply("com.diffplug.spotless")
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/*.kt")
targetExclude("$buildDir/**/*.kt")
targetExclude("bin/**/*.kt")
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
// by default the target is every '.kt' and '.kts` file in the java sourcesets
ktfmt() // has its own section below
ktlint() // has its own section below
diktat() // has its own section below
prettier() // has its own section below
licenseHeaderFile(rootProject.file("spotless/copyright.kt")) // or licenseHeaderFile
}
kotlinGradle {
target("*.gradle.kts") // default target for kotlinGradle
ktlint() // or ktfmt() or prettier()
}
}
}
plugins {
id("com.github.ben-manes.versions") version "0.43.0"
}
id("io.sentry.android.gradle") version "3.3.0"
}

4
sentry.properties Normal file
View file

@ -0,0 +1,4 @@
defaults.project=android
defaults.org=buckwheat
auth.token=ff62fe5da6ef4fbfa7709f5a27321a96c2d44f55a9d14e149fb08841e2f385c7
auth.dsn=https://0b6a231c0a1b4496ae6b46d4e9b4f55f@o4504005690589184.ingest.sentry.io/4504005718441984

View file

@ -1,3 +1,3 @@
/*
* Copyright $YEAR, Danil Zakhvatkin (Danilkinkin), All rights reserved.
* Copyright 2022, Danil Zakhvatkin (Danilkinkin), All rights reserved.
*/