forked from dsutanto/bChot-android
refactoring to id.databisnis.bachot
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
plugins {
|
||||
id("io.element.android-compose-library")
|
||||
id("id.databisnis.android.bachot-compose-library")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "io.element.android.features.rageshake.api"
|
||||
namespace = "id.databisnis.android.bachot.features.rageshake.api"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api
|
||||
package id.databisnis.android.bachot.features.rageshake.api
|
||||
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.bugreport
|
||||
package id.databisnis.android.bachot.features.rageshake.api.bugreport
|
||||
|
||||
import com.bumble.appyx.core.modality.BuildContext
|
||||
import com.bumble.appyx.core.node.Node
|
||||
import com.bumble.appyx.core.plugin.Plugin
|
||||
import io.element.android.libraries.architecture.FeatureEntryPoint
|
||||
import id.databisnis.android.bachot.libraries.architecture.FeatureEntryPoint
|
||||
|
||||
interface BugReportEntryPoint : FeatureEntryPoint {
|
||||
fun createNode(
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.crash
|
||||
package id.databisnis.android.bachot.features.rageshake.api.crash
|
||||
|
||||
sealed interface CrashDetectionEvents {
|
||||
data object ResetAllCrashData : CrashDetectionEvents
|
||||
@@ -6,8 +6,8 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.crash
|
||||
package id.databisnis.android.bachot.features.rageshake.api.crash
|
||||
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
import id.databisnis.android.bachot.libraries.architecture.Presenter
|
||||
|
||||
interface CrashDetectionPresenter : Presenter<CrashDetectionState>
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.crash
|
||||
package id.databisnis.android.bachot.features.rageshake.api.crash
|
||||
|
||||
data class CrashDetectionState(
|
||||
val appName: String,
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.crash
|
||||
package id.databisnis.android.bachot.features.rageshake.api.crash
|
||||
|
||||
fun aCrashDetectionState() = CrashDetectionState(
|
||||
appName = "Element",
|
||||
@@ -6,15 +6,15 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.crash
|
||||
package id.databisnis.android.bachot.features.rageshake.api.crash
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import io.element.android.features.rageshake.api.R
|
||||
import io.element.android.libraries.designsystem.components.dialogs.ConfirmationDialog
|
||||
import io.element.android.libraries.designsystem.preview.ElementPreview
|
||||
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
||||
import io.element.android.libraries.ui.strings.CommonStrings
|
||||
import id.databisnis.android.bachot.features.rageshake.api.R
|
||||
import id.databisnis.android.bachot.libraries.designsystem.components.dialogs.ConfirmationDialog
|
||||
import id.databisnis.android.bachot.libraries.designsystem.preview.ElementPreview
|
||||
import id.databisnis.android.bachot.libraries.designsystem.preview.PreviewsDayNight
|
||||
import id.databisnis.android.bachot.libraries.ui.strings.CommonStrings
|
||||
|
||||
@Composable
|
||||
fun CrashDetectionView(
|
||||
@@ -6,9 +6,9 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.detection
|
||||
package id.databisnis.android.bachot.features.rageshake.api.detection
|
||||
|
||||
import io.element.android.features.rageshake.api.screenshot.ImageResult
|
||||
import id.databisnis.android.bachot.features.rageshake.api.screenshot.ImageResult
|
||||
|
||||
sealed interface RageshakeDetectionEvents {
|
||||
data object Dismiss : RageshakeDetectionEvents
|
||||
@@ -6,8 +6,8 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.detection
|
||||
package id.databisnis.android.bachot.features.rageshake.api.detection
|
||||
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
import id.databisnis.android.bachot.libraries.architecture.Presenter
|
||||
|
||||
interface RageshakeDetectionPresenter : Presenter<RageshakeDetectionState>
|
||||
@@ -6,9 +6,9 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.detection
|
||||
package id.databisnis.android.bachot.features.rageshake.api.detection
|
||||
|
||||
import io.element.android.features.rageshake.api.preferences.RageshakePreferencesState
|
||||
import id.databisnis.android.bachot.features.rageshake.api.preferences.RageshakePreferencesState
|
||||
|
||||
data class RageshakeDetectionState(
|
||||
val takeScreenshot: Boolean,
|
||||
@@ -6,9 +6,9 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.detection
|
||||
package id.databisnis.android.bachot.features.rageshake.api.detection
|
||||
|
||||
import io.element.android.features.rageshake.api.preferences.aRageshakePreferencesState
|
||||
import id.databisnis.android.bachot.features.rageshake.api.preferences.aRageshakePreferencesState
|
||||
|
||||
fun aRageshakeDetectionState() = RageshakeDetectionState(
|
||||
takeScreenshot = false,
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.detection
|
||||
package id.databisnis.android.bachot.features.rageshake.api.detection
|
||||
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
@@ -16,15 +16,15 @@ import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.LocalView
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.lifecycle.Lifecycle
|
||||
import io.element.android.features.rageshake.api.R
|
||||
import io.element.android.features.rageshake.api.screenshot.ImageResult
|
||||
import io.element.android.features.rageshake.api.screenshot.screenshot
|
||||
import io.element.android.libraries.androidutils.hardware.vibrate
|
||||
import io.element.android.libraries.designsystem.components.dialogs.ConfirmationDialog
|
||||
import io.element.android.libraries.designsystem.preview.ElementPreview
|
||||
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
||||
import io.element.android.libraries.designsystem.utils.OnLifecycleEvent
|
||||
import io.element.android.libraries.ui.strings.CommonStrings
|
||||
import id.databisnis.android.bachot.features.rageshake.api.R
|
||||
import id.databisnis.android.bachot.features.rageshake.api.screenshot.ImageResult
|
||||
import id.databisnis.android.bachot.features.rageshake.api.screenshot.screenshot
|
||||
import id.databisnis.android.bachot.libraries.androidutils.hardware.vibrate
|
||||
import id.databisnis.android.bachot.libraries.designsystem.components.dialogs.ConfirmationDialog
|
||||
import id.databisnis.android.bachot.libraries.designsystem.preview.ElementPreview
|
||||
import id.databisnis.android.bachot.libraries.designsystem.preview.PreviewsDayNight
|
||||
import id.databisnis.android.bachot.libraries.designsystem.utils.OnLifecycleEvent
|
||||
import id.databisnis.android.bachot.libraries.ui.strings.CommonStrings
|
||||
|
||||
@Composable
|
||||
fun RageshakeDetectionView(
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.logs
|
||||
package id.databisnis.android.bachot.features.rageshake.api.logs
|
||||
|
||||
import java.io.File
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.logs
|
||||
package id.databisnis.android.bachot.features.rageshake.api.logs
|
||||
|
||||
import io.element.android.features.rageshake.api.reporter.BugReporter
|
||||
import io.element.android.libraries.matrix.api.tracing.WriteToFilesConfiguration
|
||||
import id.databisnis.android.bachot.features.rageshake.api.reporter.BugReporter
|
||||
import id.databisnis.android.bachot.libraries.matrix.api.tracing.WriteToFilesConfiguration
|
||||
|
||||
fun BugReporter.createWriteToFilesConfiguration(): WriteToFilesConfiguration {
|
||||
return WriteToFilesConfiguration.Enabled(
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.preferences
|
||||
package id.databisnis.android.bachot.features.rageshake.api.preferences
|
||||
|
||||
sealed interface RageshakePreferencesEvents {
|
||||
data class SetSensitivity(val sensitivity: Float) : RageshakePreferencesEvents
|
||||
@@ -6,8 +6,8 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.preferences
|
||||
package id.databisnis.android.bachot.features.rageshake.api.preferences
|
||||
|
||||
import io.element.android.libraries.architecture.Presenter
|
||||
import id.databisnis.android.bachot.libraries.architecture.Presenter
|
||||
|
||||
interface RageshakePreferencesPresenter : Presenter<RageshakePreferencesState>
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.preferences
|
||||
package id.databisnis.android.bachot.features.rageshake.api.preferences
|
||||
|
||||
data class RageshakePreferencesState(
|
||||
val isFeatureEnabled: Boolean,
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.preferences
|
||||
package id.databisnis.android.bachot.features.rageshake.api.preferences
|
||||
|
||||
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
|
||||
|
||||
@@ -6,22 +6,22 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.preferences
|
||||
package id.databisnis.android.bachot.features.rageshake.api.preferences
|
||||
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.tooling.preview.PreviewParameter
|
||||
import io.element.android.features.rageshake.api.R
|
||||
import io.element.android.libraries.designsystem.components.preferences.PreferenceCategory
|
||||
import io.element.android.libraries.designsystem.components.preferences.PreferenceSlide
|
||||
import io.element.android.libraries.designsystem.components.preferences.PreferenceSwitch
|
||||
import io.element.android.libraries.designsystem.preview.ElementPreview
|
||||
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
||||
import io.element.android.libraries.designsystem.theme.components.ListItem
|
||||
import io.element.android.libraries.designsystem.theme.components.Text
|
||||
import io.element.android.libraries.ui.strings.CommonStrings
|
||||
import id.databisnis.android.bachot.features.rageshake.api.R
|
||||
import id.databisnis.android.bachot.libraries.designsystem.components.preferences.PreferenceCategory
|
||||
import id.databisnis.android.bachot.libraries.designsystem.components.preferences.PreferenceSlide
|
||||
import id.databisnis.android.bachot.libraries.designsystem.components.preferences.PreferenceSwitch
|
||||
import id.databisnis.android.bachot.libraries.designsystem.preview.ElementPreview
|
||||
import id.databisnis.android.bachot.libraries.designsystem.preview.PreviewsDayNight
|
||||
import id.databisnis.android.bachot.libraries.designsystem.theme.components.ListItem
|
||||
import id.databisnis.android.bachot.libraries.designsystem.theme.components.Text
|
||||
import id.databisnis.android.bachot.libraries.ui.strings.CommonStrings
|
||||
|
||||
@Composable
|
||||
fun RageshakePreferencesView(
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.reporter
|
||||
package id.databisnis.android.bachot.features.rageshake.api.reporter
|
||||
|
||||
import java.io.File
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.reporter
|
||||
package id.databisnis.android.bachot.features.rageshake.api.reporter
|
||||
|
||||
/**
|
||||
* Bug report upload listener.
|
||||
@@ -6,7 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.rageshake.api.screenshot
|
||||
package id.databisnis.android.bachot.features.rageshake.api.screenshot
|
||||
|
||||
import android.app.Activity
|
||||
import android.graphics.Bitmap
|
||||
Reference in New Issue
Block a user