mirror of
https://github.com/danilkinkin/buckwheat.git
synced 2025-12-31 04:13:02 +00:00
feat: added sentry
This commit is contained in:
parent
c2d7c0059a
commit
e155408000
3 changed files with 35 additions and 6 deletions
|
|
@ -18,6 +18,7 @@ android {
|
|||
versionCode = 3
|
||||
versionName = "alpha-3.0"
|
||||
testInstrumentationRunner = "com.danilkinkin.buckwheat.CustomTestRunner"
|
||||
manifestPlaceholders["sentryDsn"] = ""
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
arguments["dagger.hilt.disableModulesHaveInstallInCheck"] = "true"
|
||||
|
|
@ -33,16 +34,20 @@ android {
|
|||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro")
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro",
|
||||
)
|
||||
}
|
||||
|
||||
create("benchmark") {
|
||||
initWith(getByName("release"))
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
matchingFallbacks.add("release")
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-benchmark-rules.pro")
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-benchmark-rules.pro",
|
||||
)
|
||||
isDebuggable = false
|
||||
}
|
||||
}
|
||||
|
|
@ -114,6 +119,9 @@ dependencies {
|
|||
|
||||
implementation("io.coil-kt:coil-compose:2.2.2")
|
||||
|
||||
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.2.1")
|
||||
|
||||
androidTestImplementation("junit:junit:4.13.2")
|
||||
|
|
@ -129,3 +137,7 @@ dependencies {
|
|||
kaptAndroidTest("com.google.dagger:hilt-android-compiler:2.44")
|
||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
|
||||
}
|
||||
|
||||
secrets {
|
||||
defaultPropertiesFileName = "local.defaults.properties"
|
||||
}
|
||||
|
|
@ -13,19 +13,30 @@
|
|||
android:theme="@style/Theme.BuckwheatTheme"
|
||||
android:localeConfig="@xml/locales_config"
|
||||
tools:targetApi="33">
|
||||
|
||||
<meta-data
|
||||
android:name="io.sentry.dsn"
|
||||
android:value="${sentryDsn}" />
|
||||
<meta-data
|
||||
android:name="io.sentry.traces.sample-rate"
|
||||
android:value="1.0" />
|
||||
<meta-data
|
||||
android:name="io.sentry.traces.user-interaction.enable"
|
||||
android:value="true" />
|
||||
<profileable
|
||||
android:shell="true"
|
||||
tools:targetApi="q" />
|
||||
|
||||
<activity
|
||||
android:name="com.danilkinkin.buckwheat.home.MainActivity"
|
||||
android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
6
local.defaults.properties
Normal file
6
local.defaults.properties
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
## Default values used by secrets-gradle-plugin
|
||||
# Do **not** put your secrets in this file, this is mainly so that
|
||||
# the app can compile and use a default value for the googleMapsKey.
|
||||
# Create a new entry for `googleMapsKey` and place your actual key
|
||||
# in the `local.properties` file instead.
|
||||
sentryDsn=''
|
||||
Loading…
Add table
Add a link
Reference in a new issue