mirror of
https://github.com/pachli/pachli-android.git
synced 2024-12-11 08:36:40 +01:00
1488c13c42
Getting error reports with logs of strange behaviour is useful even if the app doesn't crash. Move crash reporting in to `core.activity`, and provide a menu option (in orange builds) to trigger a non-fatal crash report that is handled the same way (i.e., sent by e-mail) as a regular crash report. `BaseActivity` has to be able to create and handle menus, so adjust subclasses to call the superclass when necessary. Update `tools/mvstring` to be able to move strings between different flavour directories, not just `main`.
56 lines
1.7 KiB
Plaintext
56 lines
1.7 KiB
Plaintext
/*
|
|
* Copyright 2023 Pachli Association
|
|
*
|
|
* This file is a part of Pachli.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* Pachli is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
* Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with Pachli; if not,
|
|
* see <http://www.gnu.org/licenses>.
|
|
*/
|
|
|
|
plugins {
|
|
alias(libs.plugins.pachli.android.library)
|
|
alias(libs.plugins.pachli.android.hilt)
|
|
}
|
|
|
|
android {
|
|
namespace = "app.pachli.core.activity"
|
|
|
|
defaultConfig {
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
testInstrumentationRunnerArguments["disableAnalytics"] = "true"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// BaseActivity exposes AccountManager as an injected property
|
|
api(projects.core.accounts)
|
|
|
|
implementation(projects.core.common)
|
|
implementation(projects.core.designsystem)
|
|
implementation(projects.core.navigation)
|
|
|
|
// BottomSheetActivity needs MastodonApi for searching
|
|
implementation(projects.core.network)
|
|
|
|
implementation(projects.core.preferences)
|
|
|
|
implementation(libs.bundles.androidx)
|
|
|
|
// Loading avatars
|
|
implementation(libs.bundles.glide)
|
|
|
|
// Crash reporting in orange (Pachli Current) builds only
|
|
orangeImplementation(libs.bundles.acra)
|
|
|
|
// BottomSheetActivityTest uses mockito
|
|
testImplementation(libs.bundles.mockito)
|
|
}
|