mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
disabled crash reporting because yall keep crashing
This commit is contained in:
parent
de720983a6
commit
5050ff65c0
5 changed files with 59 additions and 8 deletions
|
@ -47,8 +47,8 @@ android {
|
|||
minSdk = 21
|
||||
targetSdk = 33
|
||||
|
||||
versionCode = 55
|
||||
versionName = "3.4.0"
|
||||
versionCode = 56
|
||||
versionName = "3.5.0"
|
||||
|
||||
resValue("string", "app_version", "${defaultConfig.versionName}${versionNameSuffix ?: ""}")
|
||||
|
||||
|
|
|
@ -43,9 +43,9 @@ class CustomReportSender : ReportSender {
|
|||
override fun send(context: Context, errorContent: CrashReportData) {
|
||||
println("Sending report")
|
||||
val url =
|
||||
"https://docs.google.com/forms/u/0/d/e/1FAIpQLSe9Vff8oHGMRXcjgCXZwkjvx3eBdNpn4DzjO0FkcWEU1gEQpA/formResponse"
|
||||
"https://docs.google.com/forms/d/e/1FAIpQLSdOlbgCx7NeaxjvEGyEQlqdh2nCvwjm2vwpP1VwW7REj9Ri3Q/formResponse"
|
||||
val data = mapOf(
|
||||
"entry.1586460852" to errorContent.toJSON()
|
||||
"entry.753293084" to errorContent.toJSON()
|
||||
)
|
||||
|
||||
thread { // to not run it on main thread
|
||||
|
|
|
@ -14,7 +14,7 @@ import com.lagradost.cloudstream3.mvvm.logError
|
|||
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.aniListApi
|
||||
import com.lagradost.cloudstream3.syncproviders.AccountManager.Companion.malApi
|
||||
import com.lagradost.cloudstream3.ui.player.SubtitleData
|
||||
import com.lagradost.cloudstream3.ui.settings.SettingsFragment.Companion.isTvSettings
|
||||
import com.lagradost.cloudstream3.ui.result.UiText
|
||||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||
import com.lagradost.cloudstream3.utils.Coroutines.threadSafeListOf
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
|
@ -318,6 +318,57 @@ object APIHolder {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
// THIS IS WORK IN PROGRESS API
|
||||
interface ITag {
|
||||
val name: UiText
|
||||
}
|
||||
|
||||
data class SimpleTag(override val name: UiText, val data: String) : ITag
|
||||
|
||||
enum class SelectType {
|
||||
SingleSelect,
|
||||
MultiSelect,
|
||||
MultiSelectAndExclude,
|
||||
}
|
||||
|
||||
enum class SelectValue {
|
||||
Selected,
|
||||
Excluded,
|
||||
}
|
||||
|
||||
interface GenreSelector {
|
||||
val title: UiText
|
||||
val id : Int
|
||||
}
|
||||
|
||||
data class TagSelector(
|
||||
override val title: UiText,
|
||||
override val id : Int,
|
||||
val tags: Set<ITag>,
|
||||
val defaultTags : Set<ITag> = setOf(),
|
||||
val selectType: SelectType = SelectType.SingleSelect,
|
||||
) : GenreSelector
|
||||
|
||||
data class BoolSelector(
|
||||
override val title: UiText,
|
||||
override val id : Int,
|
||||
|
||||
val defaultValue : Boolean = false,
|
||||
) : GenreSelector
|
||||
|
||||
data class InputField(
|
||||
override val title: UiText,
|
||||
override val id : Int,
|
||||
|
||||
val hint : UiText? = null,
|
||||
) : GenreSelector
|
||||
|
||||
// This response describes how a user might filter the homepage or search results
|
||||
data class GenreResponse(
|
||||
val searchSelectors : List<GenreSelector>,
|
||||
val filterSelectors: List<GenreSelector> = searchSelectors
|
||||
) */
|
||||
|
||||
/*
|
||||
0 = Site not good
|
||||
|
|
|
@ -67,7 +67,7 @@ class SetupFragmentLayout : Fragment() {
|
|||
crash_reporting_text?.text = getText(text)
|
||||
}
|
||||
|
||||
val enableCrashReporting = !settingsManager.getBoolean(ACRA.PREF_DISABLE_ACRA, false)
|
||||
val enableCrashReporting = !settingsManager.getBoolean(ACRA.PREF_DISABLE_ACRA, true)
|
||||
acra_switch.isChecked = enableCrashReporting
|
||||
crash_reporting_text.text =
|
||||
getText(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:defaultValue="true"
|
||||
android:icon="@drawable/ic_baseline_bug_report_24"
|
||||
android:key="acra.disable"
|
||||
android:summaryOff="@string/bug_report_settings_off"
|
||||
|
|
Loading…
Reference in a new issue