From ce59aa6700ca44d0e448141d8ec8eff5db509e94 Mon Sep 17 00:00:00 2001 From: F0x1d Date: Sat, 29 Jun 2024 21:39:15 +0300 Subject: [PATCH] [build]: moved setup to standalone module --- app/build.gradle.kts | 1 + .../main/kotlin/com/f0x1d/logfox/LogFoxApp.kt | 7 +- .../com/f0x1d/logfox/receiver/BootReceiver.kt | 4 +- .../f0x1d/logfox/ui/activity/MainActivity.kt | 39 ++--- app/src/main/res/drawable/ic_adb.xml | 10 -- app/src/main/res/drawable/ic_add.xml | 9 -- app/src/main/res/drawable/ic_alert.xml | 9 -- app/src/main/res/drawable/ic_android.xml | 10 -- app/src/main/res/drawable/ic_android_anim.xml | 16 -- app/src/main/res/drawable/ic_android_avd.xml | 38 ----- app/src/main/res/drawable/ic_archive.xml | 10 -- app/src/main/res/drawable/ic_arrow_back.xml | 11 -- .../main/res/drawable/ic_arrow_drop_down.xml | 10 -- app/src/main/res/drawable/ic_bug.xml | 9 -- app/src/main/res/drawable/ic_bug_anim.xml | 16 -- app/src/main/res/drawable/ic_bug_avd.xml | 38 ----- .../main/res/drawable/ic_bug_notification.xml | 9 -- app/src/main/res/drawable/ic_checklist.xml | 9 -- app/src/main/res/drawable/ic_clear.xml | 9 -- app/src/main/res/drawable/ic_clear_all.xml | 9 -- app/src/main/res/drawable/ic_copy.xml | 9 -- app/src/main/res/drawable/ic_delete.xml | 9 -- app/src/main/res/drawable/ic_dialog_adb.xml | 10 -- .../res/drawable/ic_dialog_date_format.xml | 10 -- app/src/main/res/drawable/ic_dialog_eye.xml | 10 -- app/src/main/res/drawable/ic_dialog_list.xml | 11 -- .../ic_dialog_notification_important.xml | 10 -- .../main/res/drawable/ic_dialog_terminal.xml | 9 -- .../res/drawable/ic_dialog_text_fields.xml | 10 -- app/src/main/res/drawable/ic_dialog_theme.xml | 9 -- .../res/drawable/ic_dialog_time_format.xml | 11 -- app/src/main/res/drawable/ic_dialog_timer.xml | 11 -- .../main/res/drawable/ic_dialog_warning.xml | 10 -- app/src/main/res/drawable/ic_export.xml | 9 -- app/src/main/res/drawable/ic_eye.xml | 10 -- app/src/main/res/drawable/ic_filter.xml | 9 -- app/src/main/res/drawable/ic_info.xml | 9 -- .../res/drawable/ic_launcher_foreground.xml | 9 -- app/src/main/res/drawable/ic_logfox.xml | 18 --- app/src/main/res/drawable/ic_logfox_anim.xml | 16 -- app/src/main/res/drawable/ic_logfox_avd.xml | 44 ----- app/src/main/res/drawable/ic_pause.xml | 9 -- app/src/main/res/drawable/ic_play.xml | 9 -- app/src/main/res/drawable/ic_recording.xml | 9 -- .../main/res/drawable/ic_recording_anim.xml | 16 -- .../main/res/drawable/ic_recording_avd.xml | 82 ---------- .../drawable/ic_recording_notification.xml | 9 -- .../ic_recording_play_notification.xml | 10 -- app/src/main/res/drawable/ic_save.xml | 10 -- app/src/main/res/drawable/ic_search.xml | 9 -- app/src/main/res/drawable/ic_select.xml | 9 -- app/src/main/res/drawable/ic_select_all.xml | 9 -- app/src/main/res/drawable/ic_settings.xml | 12 -- .../main/res/drawable/ic_settings_anim.xml | 16 -- app/src/main/res/drawable/ic_settings_avd.xml | 51 ------ .../main/res/drawable/ic_settings_code.xml | 10 -- .../main/res/drawable/ic_settings_crashes.xml | 10 -- .../res/drawable/ic_settings_handyman.xml | 14 -- .../main/res/drawable/ic_settings_info.xml | 10 -- .../drawable/ic_settings_notifications.xml | 10 -- .../main/res/drawable/ic_settings_person.xml | 10 -- .../res/drawable/ic_settings_releases.xml | 10 -- .../main/res/drawable/ic_settings_service.xml | 12 -- app/src/main/res/drawable/ic_settings_ui.xml | 10 -- .../main/res/drawable/ic_settings_warning.xml | 9 -- app/src/main/res/drawable/ic_share.xml | 10 -- app/src/main/res/drawable/ic_square_root.xml | 9 -- app/src/main/res/drawable/ic_stop.xml | 10 -- app/src/main/res/drawable/ic_terminal.xml | 10 -- .../main/res/drawable/item_log_background.xml | 14 -- .../drawable/item_log_level_background.xml | 8 - .../drawable/placeholder_icon_background.xml | 12 -- app/src/main/res/navigation/crashes.xml | 55 ------- app/src/main/res/navigation/logs.xml | 82 ---------- app/src/main/res/navigation/nav_graph.xml | 44 ----- app/src/main/res/navigation/recordings.xml | 23 --- app/src/main/res/navigation/settings.xml | 59 ------- app/src/main/res/values-it/plurals.xml | 11 -- app/src/main/res/values-it/strings.xml | 142 ---------------- app/src/main/res/values-pt-rBR/plurals.xml | 11 -- app/src/main/res/values-pt-rBR/strings.xml | 132 --------------- app/src/main/res/values-ru/plurals.xml | 13 -- app/src/main/res/values-ru/strings.xml | 142 ---------------- app/src/main/res/values-tr/plurals.xml | 7 - app/src/main/res/values-tr/strings.xml | 126 --------------- app/src/main/res/values-zh-rCN/plurals.xml | 9 -- app/src/main/res/values-zh-rCN/strings.xml | 142 ---------------- app/src/main/res/values/plurals.xml | 11 -- app/src/main/res/values/strings.xml | 152 ------------------ build-logic/convention/build.gradle.kts | 4 - .../AndroidApplicationConventionPlugin.kt | 1 - .../kotlin/AndroidFeatureConventionPlugin.kt | 1 - ...droidNavigationSafeArgsConventionPlugin.kt | 9 -- build.gradle.kts | 1 - .../src/main/res/navigation/nav_graph.xml | 4 +- core/core-ui/src/main/res/drawable/ic_add.xml | 2 +- core/core-ui/src/main/res/drawable/ic_bug.xml | 4 +- .../src/main/res/drawable/ic_checklist.xml | 2 +- .../src/main/res/drawable/ic_clear.xml | 2 +- .../src/main/res/drawable/ic_clear_all.xml | 4 +- .../src/main/res/drawable/ic_delete.xml | 2 +- .../src/main/res/drawable/ic_export.xml | 2 +- .../src/main/res/drawable/ic_filter.xml | 2 +- .../core-ui/src/main/res/drawable/ic_info.xml | 2 +- .../src/main/res/drawable/ic_pause.xml | 2 +- .../core-ui/src/main/res/drawable/ic_play.xml | 2 +- .../src/main/res/drawable/ic_search.xml | 2 +- .../src/main/res/drawable/ic_select_all.xml | 2 +- .../src/main/res/layout/fragment_settings.xml | 7 +- core/core-ui/src/main/res/values/styles.xml | 2 +- .../filters/ui/fragment/FiltersFragment.kt | 2 +- .../main/res/layout/fragment_choose_app.xml | 5 +- .../src/main/res/layout/item_recording.xml | 4 +- .../res/layout/preference_material_switch.xml | 0 .../main/res/layout/preference_warning.xml | 0 feature/feature-setup/.gitignore | 1 + feature/feature-setup/build.gradle.kts | 9 ++ .../setup}/ui/fragment/SetupFragment.kt | 19 +-- .../setup}/viewmodel/SetupViewModel.kt | 40 ++--- .../src/main/res/layout/fragment_setup.xml | 0 gradle/libs.versions.toml | 1 - settings.gradle.kts | 1 + 122 files changed, 97 insertions(+), 2169 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_adb.xml delete mode 100644 app/src/main/res/drawable/ic_add.xml delete mode 100644 app/src/main/res/drawable/ic_alert.xml delete mode 100644 app/src/main/res/drawable/ic_android.xml delete mode 100644 app/src/main/res/drawable/ic_android_anim.xml delete mode 100644 app/src/main/res/drawable/ic_android_avd.xml delete mode 100644 app/src/main/res/drawable/ic_archive.xml delete mode 100644 app/src/main/res/drawable/ic_arrow_back.xml delete mode 100644 app/src/main/res/drawable/ic_arrow_drop_down.xml delete mode 100644 app/src/main/res/drawable/ic_bug.xml delete mode 100644 app/src/main/res/drawable/ic_bug_anim.xml delete mode 100644 app/src/main/res/drawable/ic_bug_avd.xml delete mode 100644 app/src/main/res/drawable/ic_bug_notification.xml delete mode 100644 app/src/main/res/drawable/ic_checklist.xml delete mode 100644 app/src/main/res/drawable/ic_clear.xml delete mode 100644 app/src/main/res/drawable/ic_clear_all.xml delete mode 100644 app/src/main/res/drawable/ic_copy.xml delete mode 100644 app/src/main/res/drawable/ic_delete.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_adb.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_date_format.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_eye.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_list.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_notification_important.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_terminal.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_text_fields.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_theme.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_time_format.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_timer.xml delete mode 100644 app/src/main/res/drawable/ic_dialog_warning.xml delete mode 100644 app/src/main/res/drawable/ic_export.xml delete mode 100644 app/src/main/res/drawable/ic_eye.xml delete mode 100644 app/src/main/res/drawable/ic_filter.xml delete mode 100644 app/src/main/res/drawable/ic_info.xml delete mode 100644 app/src/main/res/drawable/ic_launcher_foreground.xml delete mode 100644 app/src/main/res/drawable/ic_logfox.xml delete mode 100644 app/src/main/res/drawable/ic_logfox_anim.xml delete mode 100644 app/src/main/res/drawable/ic_logfox_avd.xml delete mode 100644 app/src/main/res/drawable/ic_pause.xml delete mode 100644 app/src/main/res/drawable/ic_play.xml delete mode 100644 app/src/main/res/drawable/ic_recording.xml delete mode 100644 app/src/main/res/drawable/ic_recording_anim.xml delete mode 100644 app/src/main/res/drawable/ic_recording_avd.xml delete mode 100644 app/src/main/res/drawable/ic_recording_notification.xml delete mode 100644 app/src/main/res/drawable/ic_recording_play_notification.xml delete mode 100644 app/src/main/res/drawable/ic_save.xml delete mode 100644 app/src/main/res/drawable/ic_search.xml delete mode 100644 app/src/main/res/drawable/ic_select.xml delete mode 100644 app/src/main/res/drawable/ic_select_all.xml delete mode 100644 app/src/main/res/drawable/ic_settings.xml delete mode 100644 app/src/main/res/drawable/ic_settings_anim.xml delete mode 100644 app/src/main/res/drawable/ic_settings_avd.xml delete mode 100644 app/src/main/res/drawable/ic_settings_code.xml delete mode 100644 app/src/main/res/drawable/ic_settings_crashes.xml delete mode 100644 app/src/main/res/drawable/ic_settings_handyman.xml delete mode 100644 app/src/main/res/drawable/ic_settings_info.xml delete mode 100644 app/src/main/res/drawable/ic_settings_notifications.xml delete mode 100644 app/src/main/res/drawable/ic_settings_person.xml delete mode 100644 app/src/main/res/drawable/ic_settings_releases.xml delete mode 100644 app/src/main/res/drawable/ic_settings_service.xml delete mode 100644 app/src/main/res/drawable/ic_settings_ui.xml delete mode 100644 app/src/main/res/drawable/ic_settings_warning.xml delete mode 100644 app/src/main/res/drawable/ic_share.xml delete mode 100644 app/src/main/res/drawable/ic_square_root.xml delete mode 100644 app/src/main/res/drawable/ic_stop.xml delete mode 100644 app/src/main/res/drawable/ic_terminal.xml delete mode 100644 app/src/main/res/drawable/item_log_background.xml delete mode 100644 app/src/main/res/drawable/item_log_level_background.xml delete mode 100644 app/src/main/res/drawable/placeholder_icon_background.xml delete mode 100644 app/src/main/res/navigation/crashes.xml delete mode 100644 app/src/main/res/navigation/logs.xml delete mode 100644 app/src/main/res/navigation/nav_graph.xml delete mode 100644 app/src/main/res/navigation/recordings.xml delete mode 100644 app/src/main/res/navigation/settings.xml delete mode 100644 app/src/main/res/values-it/plurals.xml delete mode 100644 app/src/main/res/values-it/strings.xml delete mode 100644 app/src/main/res/values-pt-rBR/plurals.xml delete mode 100644 app/src/main/res/values-pt-rBR/strings.xml delete mode 100644 app/src/main/res/values-ru/plurals.xml delete mode 100644 app/src/main/res/values-ru/strings.xml delete mode 100644 app/src/main/res/values-tr/plurals.xml delete mode 100644 app/src/main/res/values-tr/strings.xml delete mode 100644 app/src/main/res/values-zh-rCN/plurals.xml delete mode 100644 app/src/main/res/values-zh-rCN/strings.xml delete mode 100644 app/src/main/res/values/plurals.xml delete mode 100644 app/src/main/res/values/strings.xml delete mode 100644 build-logic/convention/src/main/kotlin/AndroidNavigationSafeArgsConventionPlugin.kt rename {app => feature/feature-settings}/src/main/res/layout/preference_material_switch.xml (100%) rename {app => feature/feature-settings}/src/main/res/layout/preference_warning.xml (100%) create mode 100644 feature/feature-setup/.gitignore create mode 100644 feature/feature-setup/build.gradle.kts rename {app/src/main/kotlin/com/f0x1d/logfox => feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup}/ui/fragment/SetupFragment.kt (73%) rename {app/src/main/kotlin/com/f0x1d/logfox => feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup}/viewmodel/SetupViewModel.kt (50%) rename {app => feature/feature-setup}/src/main/res/layout/fragment_setup.xml (100%) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0fce0eb7..1b28ab2b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -48,6 +48,7 @@ dependencies { implementation(project(":feature:feature-recordings")) implementation(project(":feature:feature-recordings-core")) implementation(project(":feature:feature-settings")) + implementation(project(":feature:feature-setup")) implementation(libs.insetter) implementation(libs.bundles.shizuku) diff --git a/app/src/main/kotlin/com/f0x1d/logfox/LogFoxApp.kt b/app/src/main/kotlin/com/f0x1d/logfox/LogFoxApp.kt index a8e7a3ad..067d436b 100644 --- a/app/src/main/kotlin/com/f0x1d/logfox/LogFoxApp.kt +++ b/app/src/main/kotlin/com/f0x1d/logfox/LogFoxApp.kt @@ -7,6 +7,7 @@ import com.f0x1d.logfox.context.CRASHES_CHANNEL_ID import com.f0x1d.logfox.context.LOGGING_STATUS_CHANNEL_ID import com.f0x1d.logfox.context.RECORDING_STATUS_CHANNEL_ID import com.f0x1d.logfox.context.notificationManagerCompat +import com.f0x1d.logfox.strings.Strings import com.google.android.material.color.DynamicColors import dagger.hilt.android.HiltAndroidApp @@ -22,7 +23,7 @@ class LogFoxApp: Application() { LOGGING_STATUS_CHANNEL_ID, NotificationManagerCompat.IMPORTANCE_MIN ) - .setName(getString(R.string.logging_status)) + .setName(getString(Strings.logging_status)) .setShowBadge(false) .build() @@ -30,7 +31,7 @@ class LogFoxApp: Application() { CRASHES_CHANNEL_ID, NotificationManagerCompat.IMPORTANCE_HIGH ) - .setName(getString(R.string.crashes)) + .setName(getString(Strings.crashes)) .setLightsEnabled(true) .setVibrationEnabled(true) .build() @@ -39,7 +40,7 @@ class LogFoxApp: Application() { RECORDING_STATUS_CHANNEL_ID, NotificationManagerCompat.IMPORTANCE_DEFAULT ) - .setName(getString(R.string.recording_status)) + .setName(getString(Strings.recording_status)) .setLightsEnabled(false) .setVibrationEnabled(false) .setSound(null, null) diff --git a/app/src/main/kotlin/com/f0x1d/logfox/receiver/BootReceiver.kt b/app/src/main/kotlin/com/f0x1d/logfox/receiver/BootReceiver.kt index 7fdc8a10..bc32455f 100644 --- a/app/src/main/kotlin/com/f0x1d/logfox/receiver/BootReceiver.kt +++ b/app/src/main/kotlin/com/f0x1d/logfox/receiver/BootReceiver.kt @@ -4,11 +4,11 @@ import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import com.f0x1d.feature.logging.service.LoggingService -import com.f0x1d.logfox.R import com.f0x1d.logfox.arch.startForegroundServiceAvailable import com.f0x1d.logfox.context.hasPermissionToReadLogs import com.f0x1d.logfox.context.toast import com.f0x1d.logfox.preferences.shared.AppPreferences +import com.f0x1d.logfox.strings.Strings import com.f0x1d.logfox.terminals.ShizukuTerminal import dagger.hilt.android.AndroidEntryPoint import javax.inject.Inject @@ -22,7 +22,7 @@ class BootReceiver: BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { if (intent.action == Intent.ACTION_BOOT_COMPLETED && appPreferences.startOnBoot) { if (appPreferences.selectedTerminalIndex == ShizukuTerminal.INDEX) { - context.toast(R.string.shizuku_reminder) + context.toast(Strings.shizuku_reminder) } if (context.hasPermissionToReadLogs) { diff --git a/app/src/main/kotlin/com/f0x1d/logfox/ui/activity/MainActivity.kt b/app/src/main/kotlin/com/f0x1d/logfox/ui/activity/MainActivity.kt index 9a94595d..c605a664 100644 --- a/app/src/main/kotlin/com/f0x1d/logfox/ui/activity/MainActivity.kt +++ b/app/src/main/kotlin/com/f0x1d/logfox/ui/activity/MainActivity.kt @@ -8,13 +8,13 @@ import android.os.Bundle import androidx.activity.result.contract.ActivityResultContracts import androidx.activity.viewModels import androidx.constraintlayout.widget.ConstraintSet +import androidx.core.os.bundleOf import androidx.navigation.NavController import androidx.navigation.NavDestination import androidx.navigation.fragment.NavHostFragment import androidx.navigation.ui.setupWithNavController import androidx.transition.ChangeBounds import androidx.transition.TransitionManager -import com.f0x1d.logfox.NavGraphDirections import com.f0x1d.logfox.R import com.f0x1d.logfox.arch.contrastedNavBarAvailable import com.f0x1d.logfox.arch.gesturesAvailable @@ -23,6 +23,9 @@ import com.f0x1d.logfox.context.hasNotificationsPermission import com.f0x1d.logfox.context.isHorizontalOrientation import com.f0x1d.logfox.databinding.ActivityMainBinding import com.f0x1d.logfox.model.event.Event +import com.f0x1d.logfox.navigation.Directions +import com.f0x1d.logfox.strings.Strings +import com.f0x1d.logfox.ui.Icons import com.f0x1d.logfox.viewmodel.MainViewModel import com.google.android.material.dialog.MaterialAlertDialogBuilder import dagger.hilt.android.AndroidEntryPoint @@ -35,8 +38,7 @@ class MainActivity: BaseViewModelActivity(), private val requestNotificationPermissionLauncher = registerForActivityResult( ActivityResultContracts.RequestPermission(), - {} - ) + ) { } private var barShown = true private val barScene by lazy { @@ -60,7 +62,7 @@ class MainActivity: BaseViewModelActivity(), @SuppressLint("InlinedApi") override fun ActivityMainBinding.onCreate(savedInstanceState: Bundle?) { val navHostFragment = supportFragmentManager.findFragmentById( - R.id.nav_host_fragment_content_main + R.id.nav_host_fragment_content_main, ) as NavHostFragment navController = navHostFragment.navController @@ -73,14 +75,14 @@ class MainActivity: BaseViewModelActivity(), if (!hasNotificationsPermission() && !viewModel.askedNotificationsPermission) { MaterialAlertDialogBuilder(this@MainActivity) - .setIcon(R.drawable.ic_dialog_notification_important) - .setTitle(R.string.no_notification_permission) - .setMessage(R.string.notification_permission_is_required) + .setIcon(Icons.ic_dialog_notification_important) + .setTitle(Strings.no_notification_permission) + .setMessage(Strings.notification_permission_is_required) .setCancelable(false) .setPositiveButton(android.R.string.ok) { _, _ -> requestNotificationPermissionLauncher.launch(Manifest.permission.POST_NOTIFICATIONS) } - .setNegativeButton(R.string.close, null) + .setNegativeButton(Strings.close, null) .show() viewModel.askedNotificationsPermission = true @@ -108,31 +110,32 @@ class MainActivity: BaseViewModelActivity(), when (intent.action) { Intent.ACTION_VIEW -> navController.navigate( - NavGraphDirections.actionGlobalLogsFragment(fileUri = intent.data) + resId = Directions.action_global_logsFragment, + args = bundleOf("file_uri" to intent.data), ) } } override fun onEvent(event: Event) { when (event.type) { - MainViewModel.EVENT_TYPE_SETUP -> navController.navigate(NavGraphDirections.actionGlobalSetupFragment()) + MainViewModel.EVENT_TYPE_SETUP -> navController.navigate(Directions.action_global_setupFragment) } } override fun onDestinationChanged(controller: NavController, destination: NavDestination, arguments: Bundle?) { val barShown = when (destination.id) { - R.id.setupFragment -> false - R.id.logsExtendedCopyFragment -> false - R.id.filtersFragment -> false - R.id.editFilterFragment -> false - R.id.chooseAppFragment -> false - R.id.appCrashesFragment -> false - R.id.crashDetailsFragment -> false + Directions.setupFragment -> false + Directions.logsExtendedCopyFragment -> false + Directions.filtersFragment -> false + Directions.editFilterFragment -> false + Directions.chooseAppFragment -> false + Directions.appCrashesFragment -> false + Directions.crashDetailsFragment -> false else -> true } val animateBarTransition = when (destination.id) { - R.id.setupFragment -> false + Directions.setupFragment -> false else -> true } diff --git a/app/src/main/res/drawable/ic_adb.xml b/app/src/main/res/drawable/ic_adb.xml deleted file mode 100644 index 1e5ac9ce..00000000 --- a/app/src/main/res/drawable/ic_adb.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_add.xml b/app/src/main/res/drawable/ic_add.xml deleted file mode 100644 index f129c7c0..00000000 --- a/app/src/main/res/drawable/ic_add.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_alert.xml b/app/src/main/res/drawable/ic_alert.xml deleted file mode 100644 index b804d4c7..00000000 --- a/app/src/main/res/drawable/ic_alert.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_android.xml b/app/src/main/res/drawable/ic_android.xml deleted file mode 100644 index 53a24261..00000000 --- a/app/src/main/res/drawable/ic_android.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_android_anim.xml b/app/src/main/res/drawable/ic_android_anim.xml deleted file mode 100644 index b9c29d7d..00000000 --- a/app/src/main/res/drawable/ic_android_anim.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_android_avd.xml b/app/src/main/res/drawable/ic_android_avd.xml deleted file mode 100644 index 253004a2..00000000 --- a/app/src/main/res/drawable/ic_android_avd.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/ic_archive.xml b/app/src/main/res/drawable/ic_archive.xml deleted file mode 100644 index 016d4121..00000000 --- a/app/src/main/res/drawable/ic_archive.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_arrow_back.xml b/app/src/main/res/drawable/ic_arrow_back.xml deleted file mode 100644 index 0443e73c..00000000 --- a/app/src/main/res/drawable/ic_arrow_back.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_arrow_drop_down.xml b/app/src/main/res/drawable/ic_arrow_drop_down.xml deleted file mode 100644 index 346692e0..00000000 --- a/app/src/main/res/drawable/ic_arrow_drop_down.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_bug.xml b/app/src/main/res/drawable/ic_bug.xml deleted file mode 100644 index 66d51031..00000000 --- a/app/src/main/res/drawable/ic_bug.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_bug_anim.xml b/app/src/main/res/drawable/ic_bug_anim.xml deleted file mode 100644 index f7bcc0a3..00000000 --- a/app/src/main/res/drawable/ic_bug_anim.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_bug_avd.xml b/app/src/main/res/drawable/ic_bug_avd.xml deleted file mode 100644 index ebd95d5b..00000000 --- a/app/src/main/res/drawable/ic_bug_avd.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/ic_bug_notification.xml b/app/src/main/res/drawable/ic_bug_notification.xml deleted file mode 100644 index e3d0b904..00000000 --- a/app/src/main/res/drawable/ic_bug_notification.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_checklist.xml b/app/src/main/res/drawable/ic_checklist.xml deleted file mode 100644 index 034c4576..00000000 --- a/app/src/main/res/drawable/ic_checklist.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_clear.xml b/app/src/main/res/drawable/ic_clear.xml deleted file mode 100644 index c86ca44c..00000000 --- a/app/src/main/res/drawable/ic_clear.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_clear_all.xml b/app/src/main/res/drawable/ic_clear_all.xml deleted file mode 100644 index 23508ae2..00000000 --- a/app/src/main/res/drawable/ic_clear_all.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_copy.xml b/app/src/main/res/drawable/ic_copy.xml deleted file mode 100644 index a1c0c0a1..00000000 --- a/app/src/main/res/drawable/ic_copy.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_delete.xml b/app/src/main/res/drawable/ic_delete.xml deleted file mode 100644 index 9d907f1c..00000000 --- a/app/src/main/res/drawable/ic_delete.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_adb.xml b/app/src/main/res/drawable/ic_dialog_adb.xml deleted file mode 100644 index 0112c656..00000000 --- a/app/src/main/res/drawable/ic_dialog_adb.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_date_format.xml b/app/src/main/res/drawable/ic_dialog_date_format.xml deleted file mode 100644 index 90b458ea..00000000 --- a/app/src/main/res/drawable/ic_dialog_date_format.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_eye.xml b/app/src/main/res/drawable/ic_dialog_eye.xml deleted file mode 100644 index 764cc118..00000000 --- a/app/src/main/res/drawable/ic_dialog_eye.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_list.xml b/app/src/main/res/drawable/ic_dialog_list.xml deleted file mode 100644 index 065e59b2..00000000 --- a/app/src/main/res/drawable/ic_dialog_list.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_notification_important.xml b/app/src/main/res/drawable/ic_dialog_notification_important.xml deleted file mode 100644 index 6b5dc625..00000000 --- a/app/src/main/res/drawable/ic_dialog_notification_important.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_terminal.xml b/app/src/main/res/drawable/ic_dialog_terminal.xml deleted file mode 100644 index 042e4909..00000000 --- a/app/src/main/res/drawable/ic_dialog_terminal.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_text_fields.xml b/app/src/main/res/drawable/ic_dialog_text_fields.xml deleted file mode 100644 index 1c9cb277..00000000 --- a/app/src/main/res/drawable/ic_dialog_text_fields.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_dialog_theme.xml b/app/src/main/res/drawable/ic_dialog_theme.xml deleted file mode 100644 index 77dfa77c..00000000 --- a/app/src/main/res/drawable/ic_dialog_theme.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_dialog_time_format.xml b/app/src/main/res/drawable/ic_dialog_time_format.xml deleted file mode 100644 index f3713d38..00000000 --- a/app/src/main/res/drawable/ic_dialog_time_format.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/app/src/main/res/drawable/ic_dialog_timer.xml b/app/src/main/res/drawable/ic_dialog_timer.xml deleted file mode 100644 index a826e32b..00000000 --- a/app/src/main/res/drawable/ic_dialog_timer.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - diff --git a/app/src/main/res/drawable/ic_dialog_warning.xml b/app/src/main/res/drawable/ic_dialog_warning.xml deleted file mode 100644 index 2b666e73..00000000 --- a/app/src/main/res/drawable/ic_dialog_warning.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_export.xml b/app/src/main/res/drawable/ic_export.xml deleted file mode 100644 index d7a17d34..00000000 --- a/app/src/main/res/drawable/ic_export.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_eye.xml b/app/src/main/res/drawable/ic_eye.xml deleted file mode 100644 index 773b037a..00000000 --- a/app/src/main/res/drawable/ic_eye.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_filter.xml b/app/src/main/res/drawable/ic_filter.xml deleted file mode 100644 index b8bd9658..00000000 --- a/app/src/main/res/drawable/ic_filter.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_info.xml b/app/src/main/res/drawable/ic_info.xml deleted file mode 100644 index 98a0b805..00000000 --- a/app/src/main/res/drawable/ic_info.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml deleted file mode 100644 index cfecec33..00000000 --- a/app/src/main/res/drawable/ic_launcher_foreground.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_logfox.xml b/app/src/main/res/drawable/ic_logfox.xml deleted file mode 100644 index 7a23503e..00000000 --- a/app/src/main/res/drawable/ic_logfox.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/app/src/main/res/drawable/ic_logfox_anim.xml b/app/src/main/res/drawable/ic_logfox_anim.xml deleted file mode 100644 index cf2cd97f..00000000 --- a/app/src/main/res/drawable/ic_logfox_anim.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_logfox_avd.xml b/app/src/main/res/drawable/ic_logfox_avd.xml deleted file mode 100644 index 6792db23..00000000 --- a/app/src/main/res/drawable/ic_logfox_avd.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/ic_pause.xml b/app/src/main/res/drawable/ic_pause.xml deleted file mode 100644 index b8491970..00000000 --- a/app/src/main/res/drawable/ic_pause.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_play.xml b/app/src/main/res/drawable/ic_play.xml deleted file mode 100644 index 94c174c7..00000000 --- a/app/src/main/res/drawable/ic_play.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_recording.xml b/app/src/main/res/drawable/ic_recording.xml deleted file mode 100644 index f4a75f4c..00000000 --- a/app/src/main/res/drawable/ic_recording.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_recording_anim.xml b/app/src/main/res/drawable/ic_recording_anim.xml deleted file mode 100644 index e390a44a..00000000 --- a/app/src/main/res/drawable/ic_recording_anim.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_recording_avd.xml b/app/src/main/res/drawable/ic_recording_avd.xml deleted file mode 100644 index c921ee2c..00000000 --- a/app/src/main/res/drawable/ic_recording_avd.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/ic_recording_notification.xml b/app/src/main/res/drawable/ic_recording_notification.xml deleted file mode 100644 index f4a75f4c..00000000 --- a/app/src/main/res/drawable/ic_recording_notification.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_recording_play_notification.xml b/app/src/main/res/drawable/ic_recording_play_notification.xml deleted file mode 100644 index b42b2843..00000000 --- a/app/src/main/res/drawable/ic_recording_play_notification.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_save.xml b/app/src/main/res/drawable/ic_save.xml deleted file mode 100644 index 979fc0d5..00000000 --- a/app/src/main/res/drawable/ic_save.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_search.xml b/app/src/main/res/drawable/ic_search.xml deleted file mode 100644 index 7f311d60..00000000 --- a/app/src/main/res/drawable/ic_search.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_select.xml b/app/src/main/res/drawable/ic_select.xml deleted file mode 100644 index b8bacd4f..00000000 --- a/app/src/main/res/drawable/ic_select.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_select_all.xml b/app/src/main/res/drawable/ic_select_all.xml deleted file mode 100644 index cf370f09..00000000 --- a/app/src/main/res/drawable/ic_select_all.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings.xml b/app/src/main/res/drawable/ic_settings.xml deleted file mode 100644 index 64657aa5..00000000 --- a/app/src/main/res/drawable/ic_settings.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/app/src/main/res/drawable/ic_settings_anim.xml b/app/src/main/res/drawable/ic_settings_anim.xml deleted file mode 100644 index bd2bc820..00000000 --- a/app/src/main/res/drawable/ic_settings_anim.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_settings_avd.xml b/app/src/main/res/drawable/ic_settings_avd.xml deleted file mode 100644 index 7e5525ec..00000000 --- a/app/src/main/res/drawable/ic_settings_avd.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/ic_settings_code.xml b/app/src/main/res/drawable/ic_settings_code.xml deleted file mode 100644 index c89db46e..00000000 --- a/app/src/main/res/drawable/ic_settings_code.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_crashes.xml b/app/src/main/res/drawable/ic_settings_crashes.xml deleted file mode 100644 index 8248f38e..00000000 --- a/app/src/main/res/drawable/ic_settings_crashes.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_handyman.xml b/app/src/main/res/drawable/ic_settings_handyman.xml deleted file mode 100644 index add9aeee..00000000 --- a/app/src/main/res/drawable/ic_settings_handyman.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - diff --git a/app/src/main/res/drawable/ic_settings_info.xml b/app/src/main/res/drawable/ic_settings_info.xml deleted file mode 100644 index 2167d096..00000000 --- a/app/src/main/res/drawable/ic_settings_info.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_notifications.xml b/app/src/main/res/drawable/ic_settings_notifications.xml deleted file mode 100644 index 6a4a2b8c..00000000 --- a/app/src/main/res/drawable/ic_settings_notifications.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_person.xml b/app/src/main/res/drawable/ic_settings_person.xml deleted file mode 100644 index 44d2795b..00000000 --- a/app/src/main/res/drawable/ic_settings_person.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_releases.xml b/app/src/main/res/drawable/ic_settings_releases.xml deleted file mode 100644 index 082a7f50..00000000 --- a/app/src/main/res/drawable/ic_settings_releases.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_service.xml b/app/src/main/res/drawable/ic_settings_service.xml deleted file mode 100644 index 2e539fd1..00000000 --- a/app/src/main/res/drawable/ic_settings_service.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/app/src/main/res/drawable/ic_settings_ui.xml b/app/src/main/res/drawable/ic_settings_ui.xml deleted file mode 100644 index 0675503f..00000000 --- a/app/src/main/res/drawable/ic_settings_ui.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_settings_warning.xml b/app/src/main/res/drawable/ic_settings_warning.xml deleted file mode 100644 index c13179f3..00000000 --- a/app/src/main/res/drawable/ic_settings_warning.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_share.xml b/app/src/main/res/drawable/ic_share.xml deleted file mode 100644 index 9a172b30..00000000 --- a/app/src/main/res/drawable/ic_share.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_square_root.xml b/app/src/main/res/drawable/ic_square_root.xml deleted file mode 100644 index e4d44608..00000000 --- a/app/src/main/res/drawable/ic_square_root.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_stop.xml b/app/src/main/res/drawable/ic_stop.xml deleted file mode 100644 index a97d7448..00000000 --- a/app/src/main/res/drawable/ic_stop.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_terminal.xml b/app/src/main/res/drawable/ic_terminal.xml deleted file mode 100644 index a004ea42..00000000 --- a/app/src/main/res/drawable/ic_terminal.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/item_log_background.xml b/app/src/main/res/drawable/item_log_background.xml deleted file mode 100644 index 8bc7c1e9..00000000 --- a/app/src/main/res/drawable/item_log_background.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/item_log_level_background.xml b/app/src/main/res/drawable/item_log_level_background.xml deleted file mode 100644 index f74af52a..00000000 --- a/app/src/main/res/drawable/item_log_level_background.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/placeholder_icon_background.xml b/app/src/main/res/drawable/placeholder_icon_background.xml deleted file mode 100644 index 5bf3805e..00000000 --- a/app/src/main/res/drawable/placeholder_icon_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/navigation/crashes.xml b/app/src/main/res/navigation/crashes.xml deleted file mode 100644 index 01487aae..00000000 --- a/app/src/main/res/navigation/crashes.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/navigation/logs.xml b/app/src/main/res/navigation/logs.xml deleted file mode 100644 index a88ee4be..00000000 --- a/app/src/main/res/navigation/logs.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml deleted file mode 100644 index b8f22151..00000000 --- a/app/src/main/res/navigation/nav_graph.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/navigation/recordings.xml b/app/src/main/res/navigation/recordings.xml deleted file mode 100644 index 2062cf56..00000000 --- a/app/src/main/res/navigation/recordings.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - diff --git a/app/src/main/res/navigation/settings.xml b/app/src/main/res/navigation/settings.xml deleted file mode 100644 index 444bcff6..00000000 --- a/app/src/main/res/navigation/settings.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/values-it/plurals.xml b/app/src/main/res/values-it/plurals.xml deleted file mode 100644 index de1e8018..00000000 --- a/app/src/main/res/values-it/plurals.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - %d elemento selezionato - %d elementi selezionati - - - %d filtro - %d filtri - - diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml deleted file mode 100644 index 73e34ee2..00000000 --- a/app/src/main/res/values-it/strings.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - Arresti anomali - Pausa - Accesso root non rilevato - Testo copiato - Cerca - Cancella - Domanda - Stato della registrazione - Registrazione - Esci - %s si è bloccato - Inizia all\'avvio - Filtra - Informazioni sull\'app - Impostazione - A partire da Android 13 Google ha limitato l\'accesso al logcat tramite ADB. Potrai visualizzare i log solo per alcuni minuti, quindi dovrai riavviare la registrazione.\n\nEsegui questo comando in Android Debug Bridge:\n\n%s - Controlla - Sviluppatore - Servizio - Codice sorgente - Sconosciuto - Condividi - Zip - Selezionato - Cancella selezionati - Nulla è stato selezionato - Copia estesa - Registra - Ferma - Registrazioni - Registrazione - Elimina - Riprendi - Intervallo di aggiornamento dei registri - Nel ms - Questo non è un numero - Dimensioni del testo dei registri - Raccogli arresti anomali Java - Mostra notifiche di arresti anomali Java - Raccogli arresti anomali JNI - Mostra notifiche di arresti anomali JNI - Raccogli ANR - Mostra notifiche ANR - Errore: %s - Livelli di registro - Etichetta - Il contenuto contiene - Salva - Filtri - Crea - I campi vuoti non verranno utilizzati durante il filtraggio - Registri espansi - Esportazione - Importa - Esporta tutto - Data - Tempo - Contenuto - Formato log - Nessuna autorizzazione rilevata - Tutti i registri saranno disponibili solo dopo il riavvio - Errore, forse questo log è troppo grande, prova a comprimerlo prima di inviarlo - Tema - Segui il sistema - Chiaro - Scuro - Notifiche - Registri - Nessuna autorizzazione per le notifiche - È necessaria l\'autorizzazione per inviare notifiche di arresti anomali - Notifica sulla registrazione - Riprendi la registrazione toccando il bordo inferiore - Inizia all\'avvio dell\'app - Avvia il servizio - Interrompi il servizio - Servizio è solo uno stub per osservare i crash in background. Senza servizio Android terminerà LogFox - Registrazione - Titolo - Stato della registrazione - Attenzione - Stai tentando di registrare senza che il servizio di registrazione sia in esecuzione. Ciò può comportare la registrazione non salvata a causa delle restrizioni Android delle app in background. È meglio avviare il servizio di registrazione durante la registrazione. - Collegamenti - Registrazione in pausa - Chiudi - A partire da Android 13, Google ha limitato l\'avvio del logcat in background. Quindi, questa opzione potrebbe non funzionare. Utilizza il backend Root o Shizuku. - Selezionare - Limite di visualizzazione dei registri - Linee - Backend - Predefinito - Il backend non è disponibile - Il backend non è disponibile, ritorna al valore predefinito - Nuovo backend selezionato - Desideri riavviare la registrazione utilizzandolo? - - No - Riavviare la registrazione - Errore nell\'utilizzo di Shizuku - Non dimenticare di avviare Shizuku! - Ritorno al backend predefinito - Quando selezionato non è disponibile. Altrimenti LogFox proverà all\'infinito a usarlo - Compreso - Escluso - Nome del pacchetto - App - Sei sicuro? - Visualizza - Sei sicuro di volerlo eliminare? Questa azione non può essere annullata. - Sei sicuro di volerlo cancellare? Questa azione non può essere annullata. - Scorri fino in fondo - Aggiungi - Dettagli dell\'arresto anomalo - Icona dell\'app - Informazioni - Rilasci - Versioni Alpha - Seleziona tutto - Data, ora - Formato data - Formato ora - Archivi - Includere informazioni sul dispositivo nelle registrazioni esportate e negli arresti anomali - Per registrare - Al momento non ci sono log - In attesa dei log - Tutti i registri sono stati filtrati - Al momento non ci sono arresti anomali - Al momento non ci sono registrazioni - Al momento non ci sono filtri - Mostra solo i log visualizzati dal lancio dell\'app - Salva tutti i registri - Salvataggio dei registri, l\'operazione potrebbe richiedere del tempo… - Errore durante il salvataggio dei registri - Cache della sessione - Sessioni di cache - Questi sono i log salvati durante l\'intera sessione di registrazione di LogFox, potrebbero essere utili in caso di arresto improvviso dell\'app o del sistema. Sono inclusi negli arresti anomali esportati - Salva le sessioni memorizzate nella cache nelle registrazioni - Conteggio delle righe della cache di sessione - La cache della sessione viene mantenuta nella RAM, quindi assicurati di non sovraccaricarla con il conteggio scelto - diff --git a/app/src/main/res/values-pt-rBR/plurals.xml b/app/src/main/res/values-pt-rBR/plurals.xml deleted file mode 100644 index a92a5740..00000000 --- a/app/src/main/res/values-pt-rBR/plurals.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - %d item selecionado - %d itens selecionados - - - %d filtro - %d filtros - - diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml deleted file mode 100644 index 03baf2f4..00000000 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - Falhas - Pausar - Root indisponível - Texto copiado - Buscar - Limpar - Consulta - Status do registro - Registrando - Sair - %s falhou - Começar na inicialização - Filtrar - Sobre app - Configurar - A partir do Android 13, o Google limitou acesso ao logcat via ADB. Você poderá ver registros apenas por alguns minutos, depois precisará reiniciar a atividade de novo.\n\nExecute este comando no Android Debug Bridge:\n\n%s - Verificar - Desenvolvedor - Serviço - Código fonte - Indeterminado - Compartilhar - Zip - Selecionado - Limpar selecionado - Nada selecionado - Cópia detalhada - Gravar - Parar - Gravações - Gravar - Apagar - Retomar - Intervalo de atualização - Em ms - Esse não é um número - Tamanho de texto - Anexar falhas do Java - Mostrar notificações de falhas do Java - Anexar falhas do JNI - Mostrar notificações de falhas do JNI - Anexar ANR - Mostrar notificações de falhas do ANR - Erro: %s - Níveis de registro - Etiqueta - Texto contém - Salvar - Filtros - Criar - Campos vazios não serão usados durante a filtragem - Registro detalhado - Exportar - Importar - Exportar todo - Data - Hora - Texto - Formato de registro - Nenhuma permissão detectada - Todos os registros estarão disponíveis apenas após o reinício - Erro, esse registro pode ser grande demais, tente compactá-lo antes de enviar - Tema - Padrão do sistema - Claro - Escuro - Notificações - Registros - Permissão de notificações não concedida - A permissão é necessária para enviar notificações de falhas - Notificação sobre registro - Retomar registro com um toque na parte de baixo - Começar ao abrir o app - Começar serviço - Parar serviço - Este serviço é apenas um Stub para encontrar as falhas em segundo plano. Sem isto, o Android suspenderia o LogFox - Gravação - Título - Status de gravação - Aviso - Você está tentando gravar sem nenhum serviço de registro executado. Esta operação pode não ser salva devido às restrições aplicadas nos apps executados em segundo plano. É melhor iniciar o serviço de registro durante o processo de gravação. - Links - Gravação pausada - Fechar - A partir do Android 13, o Google restringiu a inicialização do logcat em segundo plano. Por isso, essa opção pode não funcionar. Use modo Root ou backend do Shizuku. - Selecione - Limitar exibição de registros - Linhas - Backend - Padrão - Backend indisponível - O backend não está disponível, voltando ao padrão - Novo backend selecionado - Gostaria de reiniciar o registro usando o novo método? - Sim - Não - Reiniciar registro - Erro usando Shizuku - Não se esqueça de iniciar o Shizuku! - Retornar ao backend padrão - Quando o selecionado não estiver disponível. Caso contrário, o LogFox tentará usá-lo infinitamente - Incluindo - Excluindo - Nome do pacote - Apps - Tem certeza? - Visualizar - Tem certeza de que quer apagar isto? Essa ação não pode ser desfeita. - Tem certeza de que quer limpar isto? Essa ação não pode ser desfeita. - Deslizar até o final - Adicionar - Detalhes da falha - Ícone do app - Informação - Versões - Compilações Alpha - Selecionar todo - Data, hora - Formato da data - Formato da hora - Arquivos - Incluir informações sobre o aparelho em gravações e falhas exportadas - Converter em gravação - Não há registros até agora - Todos os registros foram filtrados - Nenhuma falha até agora - Nenhuma gravação até agora - Nenhum filtro definido - Mostrar apenas os registros que surgiram desde quando o app foi iniciado - diff --git a/app/src/main/res/values-ru/plurals.xml b/app/src/main/res/values-ru/plurals.xml deleted file mode 100644 index 1024b935..00000000 --- a/app/src/main/res/values-ru/plurals.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - %d выбран - %d выбраны - %d выбраны - - - %d фильтр - %d фильтра - %d фильтров - - \ No newline at end of file diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml deleted file mode 100644 index 3dcc49fc..00000000 --- a/app/src/main/res/values-ru/strings.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - Сбои - Пауза - Root не обнаружен - Текст скопирован - Поиск - Очистить - Запрос - Статус логирования - Логирование - Выход - В %s произошёл сбой - Запуск при загрузке устройства - Фильтр - О приложении - Настройка - С Android 13 Google ограничили сбор логов через ADB. Вы сможете видеть логи только в течение нескольких минут, потом надо будет перезапустить логирование.\n\nЗапустите эту команду в Android Debug Bridge:\n\n%s - Проверить - Разработчик - Сервис - Исходный код - Неизвестно - Поделиться - Сжать - Выбранное - Очистить выбранное - Ничего не выбрано - Расширенное копирование - Записать - Остановить - Записи - Запись - Удалить - Возобновить - Интервал обновления логов - В мс - Это не число - Размер текста логов - Собирать Java сбои - Показывать уведомления о Java сбоях - Собирать JNI сбои - Показывать уведомления о JNI сбоях - Собирать ANR - Показывать уведомления о ANR - Ошибка: %s - Уровни логов - Тэг - Текст содержит - Сохранить - Фильтры - Создать - Пустые поля не будут использоваться при фильтрации - Раскрытые логи - Экспорт - Импорт - Экспорт всего - Дата - Время - Текст - Формат логов - Разрешение не найдено - Все логи будут доступны только после перезапуска - Ошибка, возможно этот лог слишком большой, попробуйте архивировать его и отправить - Тема - Системная - Светлая - Тёмная - Уведомления - Логи - Нет разрешения для уведомлений - Разрешение необходимо для отправки уведомлений со сбоями - Уведомление о логировании - Продолжать логирование при касании нижнего края - Запуск с приложением - Запустить сервис - Остановить сервис - Сервис-заглушка нужен для сбора сбоев в фоне, без него Android просто закроет LogFox - Запись - Название - Статус записи - Внимание - Вы пытаетесь запустить запись с остановленным сервисом логирования. Из-за этого ваша запись может оборваться и не сохраниться, это всё из-за ограничений Android. Так что лучше запустите сервис логирования на время записи. - Ссылки - Запись на паузе - Закрыть - С Android 13 Google запретили запуск сбора логов в фоне, поэтому эта настройка может не работать. Используйте логгер Root или Shizuku. - Выбрать - Лимит отображения логов - Строки - Логгер - Обычный - Логгер недоступен - Логгер недоступен, использую обычный - Новый логгер выбран - Перезапустить логирование с помощью него? - Да - Нет - Перезапуск логирования - Ошибка при использовании Shizuku - Не забудьте запустить Shizuku! - Использовать обычный логгер - Когда выбранный логгер недоступен. Иначе LogFox будет бесконечно пытаться его использовать - Включая - Исключая - Имя пакета - Приложения - Вы уверены? - Просмотр - Вы действительно хотите удалить это? Вы не сможете отменить это действие. - Вы действительно хотите очистить это? Вы не сможете отменить это действие. - Промотать вниз - Добавить - Детали сбоя - Иконка приложения - Информация - Релизы - Альфа сборки - Выбрать всё - Дата, время - Формат даты - Формат времени - Архивы - Добавлять информацию об устройстве при экспорте записей и сбоев - В запись - Сейчас логов нет - Ждём логи - Все логи отфильтрованы - Сейчас сбоев нет - Сейчас записей нет - Сейчас фильтров нет - Показывать только логи, появившиеся с момента запуска приложения - Сохранить все логи - Сохраняем логи, это может занять много времени… - Ошибка при сохранении логов - Кэш сессии - Кэшировать сессии - Это логи, сохраняемые на протяжении всей сессии логирования LogFox, они могут помочь узнать причину внезапного сбоя приложения или системы. Они экспортируются вместе со сбоем приложения - Сохранять кэш сессий в записи - Количество строк в кэше сессии - Кэш сессии хранится в оперативной памяти, так что не переполните её выбранным значением - diff --git a/app/src/main/res/values-tr/plurals.xml b/app/src/main/res/values-tr/plurals.xml deleted file mode 100644 index 5b9a8cd5..00000000 --- a/app/src/main/res/values-tr/plurals.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - %d tane seçildi - %d tane seçildi - - diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml deleted file mode 100644 index b21e29c3..00000000 --- a/app/src/main/res/values-tr/strings.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - Çökmeler - Durdur - Root bulunamadı - Metin kopyalandı - Ara - Temizle - Sorgu - Loglama durumu - Loglama - Çık - %s çöktü - Bașlangıçta bașlat - Filtre - Uygulama hakkında - Kur - Android 13\'ten bu yana Google, ADB üzerinden logcat erişimini sınırlandırdı. Logları sadece birkaç dakikalığına görebileceksiniz, sonra loglamayı geri başlatmanız gerekecek.\n\Şu komutu ADB\'de çalıştırın:\n\n%s - Kontrol et - Geliștirici - Hizmet - Kaynak kodu - Bilinmeyen - Paylaș - Zip - Seçildk - Seçileni temizle - Hiçbir şey seçilmedi - Genişletilmiş kopyalama - Kaydet - Bitir - Kayıtlar - Kaydediliyor - Sil - Devam et - Log güncelleme sıklığı - ms\'te - Bu bir numara değil - Log metin büyüklüğü - Java çökmelelerini topla - Java çökme bildirimlerini göster - JNI çökmelerini topla - JNI çökme bildirimlerii göster - ANR topla - ANR bildirimlerini göster - Hata: %s - Log seviyeleri - Tag - İçerik şunları içerir - Kaydet - Filtreler - Kaydet - Boş alanlar filtreleme sırasında kullanılmayacak - Genişletilmiş loglar - Dışa aktar - İçe aktar - Tümünü dışarı aktar - Tarih - date - İçerik - Log formatı - İzin bulunamadı - Tüm loglar yeniden başlattıktan sonra aktif olacak - Hata, bu log çok büyük olabilir, sıkıştırıp göndermeyi deneyin - Tema - Sistemi takip et - Aydınlık - Karanlık - Bildirimler - Loglar - Bildirim izni bulunamadı - Bildirimleri çökmeler ile göndermek için bildirim izni gereklidir - Loglama hakkında bildirim - Alt kenar dokunuşuyla günlüğe kaydetmeyi sürdür - Uygulama başlangıcında çalıştır - Hizmeti başlat - Hizmeti durdur - Servis, arka planda çökmeleri gözlemlemek için sadece bir saplamadır. Servis olmadan Android LogFox\'u öldürür - Kaydediliyor - Başlık - Kayıt durumu - Uyarı - Kayıt hizmeti çalışmıyorken kayıt yapmaya çalışıyorsunuz. Bu, Android arka plan uygulamaları kısıtlamaları nedeniyle kaydın kaydedilmemesine neden olabilir. Kayıt sırasında kayıt hizmetini başlatmak daha iyidir. - Linkler - Kayıt durduruldu - Kapat - Android 13\'ten beri Google logcat\'in arka plandan başlatılmasını sınırlandırmıştır. Bu yüzden, bu geçiş çalışmayabilir. Root veya Shizuku kullanın. - Seç - Log görüntüleme sınırı - Çizgiler - Arka uç - Varsayılan - Arka uç kullanılamıyor - Arka uç kullanılamıyor, varsayılana geri dönülüyor - Yeni arka uç seçildi - Bunu kullanarak log kaydetmek için yeniden başlatmak ister misiniz? - Evet - Hayır - Loglamayı yeniden başlat - Shizuku\'yu kullanırken hata - Shizuku\'yu başlatmayı unutma! - Varsayılan arka uca geri dönüş - Seçili olan mevcut olmadığında. Aksi takdirde LogFox sonsuza kadar onu kullanmaya çalışacaktır - Dahil - Hariç - Paket adı - Uygulamalar - Emin misin? - Görüntüle - Bunu silmek istediğinden emin misin? Bu işlem geri alınamaz. - Bunu temizlemek istediğinden emin misin? Bu işlem geri alınamaz. - En aşağıya kaydır - Ekle - Çökme detayları - Uygulama ikonu - BİLGİ - Yayınlananlar - ALPHA yapılar - Tümünü seç - Tarih, zaman - Tarih formaıt - Zaman formatı - Arşivler - Include device information with exported recordings and crashes - Kayıt için - diff --git a/app/src/main/res/values-zh-rCN/plurals.xml b/app/src/main/res/values-zh-rCN/plurals.xml deleted file mode 100644 index 4e5b55d3..00000000 --- a/app/src/main/res/values-zh-rCN/plurals.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - 已选择 %d 项 - - - %d 个过滤器 - - \ No newline at end of file diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml deleted file mode 100644 index 4151877a..00000000 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - 崩溃 - 暂停 - 未检测到 Root - 已复制 - 搜索 - 清除 - 确定要清除吗?清除后将无法恢复。 - 查询 - 日志状态 - 记录中 - 退出 - %s 崩溃了 - 开机时自启 - 过滤器 - 关于本 App - 设置 - 自 Android 13,Google 限制了通过 ADB 收集日志。你只能看到几分钟的日志,然后需要重启日志服务。\n\n在 ADB 中运行此命令:\n\n%s - 检查 - 开发者 - 服务 - 源代码 - 未知 - 分享 - 压缩 - 选中操作 - 取消所选 - 没有选中项 - 自由复制 - 录制 - 停止 - 录制 - 录制 - 删除 - 确定要删除吗?删除后将无法恢复。 - 继续 - 更新间隔 - 毫秒 - 这不是一个数字 - 字体大小 - 收集 Java 崩溃 - 发送 Java 崩溃通知 - 收集 JNI 崩溃 - 发送 JNI 崩溃通知 - 收集 ANR - 发送 ANR 通知 - 错误: %s - Log 等级 - 标签 - 包含 - 保存 - 过滤器 - 创建 - 在过滤中,空字段将不会被使用 - 展开日志 - 导出 - 导入 - 全部导出 - 日期 - 时间 - 内容 - 日志格式 - 未获取权限 - 所有日志只有在重启后才可用 - 日志太大,尝试压缩后发送 - 主题 - 跟随系统 - 亮色主题 - 暗色主题 - 通知 - 日志 - 没有通知权限 - 发送崩溃通知需要通知权限 - 日志的通知 - 跳转到底部时恢复记录 - 跟随 App 启动 - 启动服务 - 停止服务 - 需要日志服务以在后台获取崩溃情况,如果没有服务,Android 会杀死 LogFox - 录制中 - 标题 - 录制状态 - 警告 - 你正试图在没有运行日志服务的情况下进行录制。由于 Andorid 的后台应用限制,这可能导致无法保存录制,最好在录制时运行日志服务。 - 链接 - 录制暂停 - 关闭 - 自 Android 13,Google 限制在后台启动 Logcat,该开关可能无效。使用 Root 或 Shizuku 后端。 - 选择 - 日志显示行数限制 - - 后端 - 默认 - 后端不可用 - 后端不可用,回退到默认后端 - 选择了新的后端 - 是否使用该后端重启日志记录? - - - 重启日志记录 - 使用 Shizuku 时遇到错误 - 别忘了启动 Shizuku! - 回退到默认后端 - 仅当所选后端不可用时回退,否则 LogFox 将一直尝试使用所选后端 - 含有 - 排除 - 包名 - 应用 - 你确定? - 查看 - 滚动到底部 - 添加 - 崩溃详情 - 应用图标 - 详情信息 - 正式版 - Alpha 版 - 全选 - 日期与时间 - 日期格式 - 时间格式 - 压缩档案 - 在导出的崩溃日志和录制中包含设备信息 - 转为录制 - 目前没有日志 - 等待日志加载 - 所有日志都被过滤掉了 - 目前没有崩溃记录 - 目前没有录制 - 目前没有过滤器 - 只显示 app 启动后的日志 - 保存完整日志 - 正在保存日志,这可能需要一点时间… - 保存日志时发生错误 - 会话缓存 - 缓存会话 - 这些是在整个 LogFox 日志会话期间保存的日志,在应用或系统突然崩溃时可能会有所帮助。它们包含在导出的崩溃信息中 - 保存缓存的会话到录制 - 缓存会话行数 - 缓存会话保存在 RAM 中,请确保所选行数不会溢出 - diff --git a/app/src/main/res/values/plurals.xml b/app/src/main/res/values/plurals.xml deleted file mode 100644 index f29e9bb5..00000000 --- a/app/src/main/res/values/plurals.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - %d item selected - %d items selected - - - %d filter - %d filters - - \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml deleted file mode 100644 index 15e54ea6..00000000 --- a/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - LogFox - Crashes - Pause - No root detected - Text copied - Search - Clear - Query - Logging status - Logging - Exit - %s crashed - Start on boot - Filter - About app - Root - ADB - Setup - Since Android 13 Google has limited logcat access via ADB. You will be able to see logs only for several minutes, then you will need to restart logging.\n\nRun this command in Android Debug Bridge:\n\n%s - Check - Developer - Service - Source code - Unknown - Share - Zip - Selected - Clear selected - Nothing is selected - Extended copy - Record - Stop - Recordings - Recording - Delete - Resume - foxbin - UI - Logs update interval - In ms - This is not a number - Logs text size - Collect Java crashes - Show Java crashes notifications - Collect JNI crashes - Show JNI crashes notifications - Collect ANR - Show ANR notifications - Error: %s - Log levels - UID - PID - TID - Tag - Content contains - Save - Filters - Create - Empty fields will not be used during filtering - Expanded logs - Export - Import - Export all - Date - Time - Content - Logs format - No permission detected - All logs will be available only after restart - Error, maybe this log is too big, try to zip it and send - Theme - Follow system - Light - Dark - Notifications - Logs - No notifications permission - Permission is required to send notifications with crashes - Notification about logging - Resume logging with bottom edge touch - Start on app launch - Start service - Stop service - Service is just a stub to observe crashes in background. Without service Android kills LogFox - Recording - Title - Recording status - Warning - You are trying to record with no logging service running. This can result in not saved recording due to Android background apps restrictions. Better to start logging service while recording. - Links - Recording paused - Close - Since Android 13 Google has limited logcat launch from background. So, this toggle may not work. Use Root or Shizuku backend. - Select - Logs display limit - Lines - Backend - Default - Backend is unavailable - Backend is unavailable, falling back to default - New backend selected - Would you like to restart logging using it? - Yes - No - Restart logging - Shizuku - Error using Shizuku - Don\'t forget to start Shizuku! - Fallback to default backend - When selected one is not available. Otherwise LogFox will infinitely try to use it - Including - Excluding - Package name - Apps - Are you sure? - View - Are you sure want to delete it? This action cannot be undone. - Are you sure want to clear it? This action cannot be undone. - Scroll to the bottom - Add - Crash details - App icon - Information - Telegram - Releases - Alpha builds - Select all - Date, time - Date format - Time format - Archives - Include device information in exported recordings and crashes - To recording - There are currently no logs - Waiting for logs - All logs were filtered out - There are currently no crashes - There are currently no recordings - There are currently no filters - Show only logs which have appeared since the app launch - Save all logs - Saving logs, this may take some time… - Error saving logs - Session cache - Cache sessions - These are the logs saved during the whole LogFox logging session, they may be helpful in case of sudden app or system crash. They are included with exported crashes - Save cached sessions to recordings - Session cache lines count - Session cache is kept in RAM, so make sure not to overflow it with chosen count - diff --git a/build-logic/convention/build.gradle.kts b/build-logic/convention/build.gradle.kts index f0c4384b..363ccb34 100644 --- a/build-logic/convention/build.gradle.kts +++ b/build-logic/convention/build.gradle.kts @@ -39,9 +39,5 @@ gradlePlugin { id = "logfox.android.feature" implementationClass = "AndroidFeatureConventionPlugin" } - register("androidNavigationSafeArgs") { - id = "logfox.android.navigation.safeargs" - implementationClass = "AndroidNavigationSafeArgsConventionPlugin" - } } } diff --git a/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt index defa7fae..9e4798f3 100644 --- a/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt @@ -15,7 +15,6 @@ class AndroidApplicationConventionPlugin : Plugin { apply(pluginId("ksp")) apply("logfox.android.hilt") - apply("logfox.android.navigation.safeargs") } extensions.configure { diff --git a/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt index ae1e792d..5e64f62d 100644 --- a/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt @@ -12,7 +12,6 @@ class AndroidFeatureConventionPlugin : Plugin { pluginManager.apply { apply("logfox.android.library") apply("logfox.android.hilt") - apply("logfox.android.navigation.safeargs") } dependencies { diff --git a/build-logic/convention/src/main/kotlin/AndroidNavigationSafeArgsConventionPlugin.kt b/build-logic/convention/src/main/kotlin/AndroidNavigationSafeArgsConventionPlugin.kt deleted file mode 100644 index 487d30bb..00000000 --- a/build-logic/convention/src/main/kotlin/AndroidNavigationSafeArgsConventionPlugin.kt +++ /dev/null @@ -1,9 +0,0 @@ -import extensions.pluginId -import org.gradle.api.Plugin -import org.gradle.api.Project - -class AndroidNavigationSafeArgsConventionPlugin : Plugin { - override fun apply(target: Project) = with(target) { - pluginManager.apply(pluginId("androidx-navigation-safeargs")) - } -} diff --git a/build.gradle.kts b/build.gradle.kts index c5303345..2a3304a2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,5 +6,4 @@ plugins { alias(libs.plugins.ksp) apply false alias(libs.plugins.hilt.android) apply false - alias(libs.plugins.androidx.navigation.safeargs) apply false } diff --git a/core/core-navigation/src/main/res/navigation/nav_graph.xml b/core/core-navigation/src/main/res/navigation/nav_graph.xml index b8f22151..89abb45e 100644 --- a/core/core-navigation/src/main/res/navigation/nav_graph.xml +++ b/core/core-navigation/src/main/res/navigation/nav_graph.xml @@ -11,7 +11,7 @@ - \ No newline at end of file + diff --git a/core/core-ui/src/main/res/drawable/ic_add.xml b/core/core-ui/src/main/res/drawable/ic_add.xml index f129c7c0..cf59060e 100644 --- a/core/core-ui/src/main/res/drawable/ic_add.xml +++ b/core/core-ui/src/main/res/drawable/ic_add.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_bug.xml b/core/core-ui/src/main/res/drawable/ic_bug.xml index 66d51031..dfececc8 100644 --- a/core/core-ui/src/main/res/drawable/ic_bug.xml +++ b/core/core-ui/src/main/res/drawable/ic_bug.xml @@ -4,6 +4,6 @@ android:viewportWidth="24" android:viewportHeight="24"> - \ No newline at end of file + diff --git a/core/core-ui/src/main/res/drawable/ic_checklist.xml b/core/core-ui/src/main/res/drawable/ic_checklist.xml index 034c4576..a6b9e8b1 100644 --- a/core/core-ui/src/main/res/drawable/ic_checklist.xml +++ b/core/core-ui/src/main/res/drawable/ic_checklist.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_clear.xml b/core/core-ui/src/main/res/drawable/ic_clear.xml index c86ca44c..f0bb8c35 100644 --- a/core/core-ui/src/main/res/drawable/ic_clear.xml +++ b/core/core-ui/src/main/res/drawable/ic_clear.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_clear_all.xml b/core/core-ui/src/main/res/drawable/ic_clear_all.xml index 23508ae2..e638de31 100644 --- a/core/core-ui/src/main/res/drawable/ic_clear_all.xml +++ b/core/core-ui/src/main/res/drawable/ic_clear_all.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> - \ No newline at end of file + diff --git a/core/core-ui/src/main/res/drawable/ic_delete.xml b/core/core-ui/src/main/res/drawable/ic_delete.xml index 9d907f1c..8b93465e 100644 --- a/core/core-ui/src/main/res/drawable/ic_delete.xml +++ b/core/core-ui/src/main/res/drawable/ic_delete.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_export.xml b/core/core-ui/src/main/res/drawable/ic_export.xml index d7a17d34..c2f723f4 100644 --- a/core/core-ui/src/main/res/drawable/ic_export.xml +++ b/core/core-ui/src/main/res/drawable/ic_export.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_filter.xml b/core/core-ui/src/main/res/drawable/ic_filter.xml index b8bd9658..1ec02666 100644 --- a/core/core-ui/src/main/res/drawable/ic_filter.xml +++ b/core/core-ui/src/main/res/drawable/ic_filter.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_info.xml b/core/core-ui/src/main/res/drawable/ic_info.xml index 98a0b805..88379fbe 100644 --- a/core/core-ui/src/main/res/drawable/ic_info.xml +++ b/core/core-ui/src/main/res/drawable/ic_info.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_pause.xml b/core/core-ui/src/main/res/drawable/ic_pause.xml index b8491970..54a2d369 100644 --- a/core/core-ui/src/main/res/drawable/ic_pause.xml +++ b/core/core-ui/src/main/res/drawable/ic_pause.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_play.xml b/core/core-ui/src/main/res/drawable/ic_play.xml index 94c174c7..e0b7b643 100644 --- a/core/core-ui/src/main/res/drawable/ic_play.xml +++ b/core/core-ui/src/main/res/drawable/ic_play.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_search.xml b/core/core-ui/src/main/res/drawable/ic_search.xml index 7f311d60..f9e527d9 100644 --- a/core/core-ui/src/main/res/drawable/ic_search.xml +++ b/core/core-ui/src/main/res/drawable/ic_search.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/drawable/ic_select_all.xml b/core/core-ui/src/main/res/drawable/ic_select_all.xml index cf370f09..e3c2d2e8 100644 --- a/core/core-ui/src/main/res/drawable/ic_select_all.xml +++ b/core/core-ui/src/main/res/drawable/ic_select_all.xml @@ -4,6 +4,6 @@ android:viewportWidth="960" android:viewportHeight="960"> diff --git a/core/core-ui/src/main/res/layout/fragment_settings.xml b/core/core-ui/src/main/res/layout/fragment_settings.xml index 3b5ffb86..ce2c9a06 100644 --- a/core/core-ui/src/main/res/layout/fragment_settings.xml +++ b/core/core-ui/src/main/res/layout/fragment_settings.xml @@ -13,12 +13,9 @@ app:liftOnScroll="true"> + app:title="@string/settings" /> true true - ?colorOnSurface + ?colorControlNormal @style/TextAppearance.LogFox.Toolbar.Title @style/TextAppearance.LogFox.Toolbar.Subtitle diff --git a/feature/feature-filters/src/main/kotlin/com/f0x1d/logfox/feature/filters/ui/fragment/FiltersFragment.kt b/feature/feature-filters/src/main/kotlin/com/f0x1d/logfox/feature/filters/ui/fragment/FiltersFragment.kt index 495fc989..31e1de03 100644 --- a/feature/feature-filters/src/main/kotlin/com/f0x1d/logfox/feature/filters/ui/fragment/FiltersFragment.kt +++ b/feature/feature-filters/src/main/kotlin/com/f0x1d/logfox/feature/filters/ui/fragment/FiltersFragment.kt @@ -93,7 +93,7 @@ class FiltersFragment: BaseViewModelFragment @@ -44,4 +45,4 @@ app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:listitem="@layout/item_app" /> - \ No newline at end of file + diff --git a/feature/feature-recordings/src/main/res/layout/item_recording.xml b/feature/feature-recordings/src/main/res/layout/item_recording.xml index 79064a20..8f829d2f 100644 --- a/feature/feature-recordings/src/main/res/layout/item_recording.xml +++ b/feature/feature-recordings/src/main/res/layout/item_recording.xml @@ -15,7 +15,7 @@ android:layout_margin="10dp" android:src="@drawable/ic_recording" android:padding="15dp" - app:tint="?colorOnSurface" + app:tint="?colorControlNormal" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toStartOf="@id/title" @@ -65,4 +65,4 @@ android:tooltipText="@string/delete" tools:targetApi="o" /> - \ No newline at end of file + diff --git a/app/src/main/res/layout/preference_material_switch.xml b/feature/feature-settings/src/main/res/layout/preference_material_switch.xml similarity index 100% rename from app/src/main/res/layout/preference_material_switch.xml rename to feature/feature-settings/src/main/res/layout/preference_material_switch.xml diff --git a/app/src/main/res/layout/preference_warning.xml b/feature/feature-settings/src/main/res/layout/preference_warning.xml similarity index 100% rename from app/src/main/res/layout/preference_warning.xml rename to feature/feature-settings/src/main/res/layout/preference_warning.xml diff --git a/feature/feature-setup/.gitignore b/feature/feature-setup/.gitignore new file mode 100644 index 00000000..567609b1 --- /dev/null +++ b/feature/feature-setup/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/feature/feature-setup/build.gradle.kts b/feature/feature-setup/build.gradle.kts new file mode 100644 index 00000000..f3b8279c --- /dev/null +++ b/feature/feature-setup/build.gradle.kts @@ -0,0 +1,9 @@ +plugins { + id("logfox.android.feature") +} + +android.namespace = "com.f0x1d.logfox.feature.setup" + +dependencies { + +} diff --git a/app/src/main/kotlin/com/f0x1d/logfox/ui/fragment/SetupFragment.kt b/feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup/ui/fragment/SetupFragment.kt similarity index 73% rename from app/src/main/kotlin/com/f0x1d/logfox/ui/fragment/SetupFragment.kt rename to feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup/ui/fragment/SetupFragment.kt index ded6c804..9081da17 100644 --- a/app/src/main/kotlin/com/f0x1d/logfox/ui/fragment/SetupFragment.kt +++ b/feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup/ui/fragment/SetupFragment.kt @@ -1,17 +1,18 @@ -package com.f0x1d.logfox.ui.fragment +package com.f0x1d.logfox.feature.setup.ui.fragment import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels -import com.f0x1d.logfox.R import com.f0x1d.logfox.arch.ui.fragment.BaseViewModelFragment import com.f0x1d.logfox.context.copyText import com.f0x1d.logfox.context.hardRestartApp -import com.f0x1d.logfox.databinding.FragmentSetupBinding +import com.f0x1d.logfox.feature.setup.databinding.FragmentSetupBinding +import com.f0x1d.logfox.feature.setup.viewmodel.SetupViewModel import com.f0x1d.logfox.model.event.Event -import com.f0x1d.logfox.viewmodel.SetupViewModel +import com.f0x1d.logfox.strings.Strings +import com.f0x1d.logfox.ui.Icons import com.google.android.material.dialog.MaterialAlertDialogBuilder import dagger.hilt.android.AndroidEntryPoint @@ -43,13 +44,13 @@ class SetupFragment: BaseViewModelFragment SetupViewModel.EVENT_TYPE_SHOW_ADB_DIALOG -> { MaterialAlertDialogBuilder(requireContext()) - .setIcon(R.drawable.ic_dialog_adb) - .setTitle(R.string.adb) - .setMessage(getString(R.string.how_to_use_adb, viewModel.adbCommand)) - .setPositiveButton(R.string.check) { _, _ -> viewModel.checkPermission() } + .setIcon(Icons.ic_dialog_adb) + .setTitle(Strings.adb) + .setMessage(getString(Strings.how_to_use_adb, viewModel.adbCommand)) + .setPositiveButton(Strings.check) { _, _ -> viewModel.checkPermission() } .setNeutralButton(android.R.string.copy) { _, _ -> requireContext().copyText(viewModel.adbCommand) - snackbar(R.string.text_copied) + snackbar(Strings.text_copied) } .show() } diff --git a/app/src/main/kotlin/com/f0x1d/logfox/viewmodel/SetupViewModel.kt b/feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup/viewmodel/SetupViewModel.kt similarity index 50% rename from app/src/main/kotlin/com/f0x1d/logfox/viewmodel/SetupViewModel.kt rename to feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup/viewmodel/SetupViewModel.kt index 2f3333f2..023d35f1 100644 --- a/app/src/main/kotlin/com/f0x1d/logfox/viewmodel/SetupViewModel.kt +++ b/feature/feature-setup/src/main/kotlin/com/f0x1d/logfox/feature/setup/viewmodel/SetupViewModel.kt @@ -1,64 +1,68 @@ -package com.f0x1d.logfox.viewmodel +package com.f0x1d.logfox.feature.setup.viewmodel import android.Manifest import android.app.Application -import com.f0x1d.logfox.BuildConfig -import com.f0x1d.logfox.R +import com.f0x1d.logfox.arch.di.IODispatcher import com.f0x1d.logfox.arch.viewmodel.BaseViewModel import com.f0x1d.logfox.context.hasPermissionToReadLogs import com.f0x1d.logfox.preferences.shared.AppPreferences +import com.f0x1d.logfox.strings.Strings +import com.f0x1d.logfox.terminals.DefaultTerminal +import com.f0x1d.logfox.terminals.RootTerminal +import com.f0x1d.logfox.terminals.ShizukuTerminal import dagger.hilt.android.lifecycle.HiltViewModel -import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.CoroutineDispatcher import javax.inject.Inject @HiltViewModel class SetupViewModel @Inject constructor( private val appPreferences: AppPreferences, - private val rootTerminal: com.f0x1d.logfox.terminals.RootTerminal, - private val shizukuTerminal: com.f0x1d.logfox.terminals.ShizukuTerminal, - application: Application + private val rootTerminal: RootTerminal, + private val shizukuTerminal: ShizukuTerminal, + @IODispatcher private val ioDispatcher: CoroutineDispatcher, + application: Application, ): BaseViewModel(application) { - private val command = arrayOf("pm", "grant", BuildConfig.APPLICATION_ID, Manifest.permission.READ_LOGS) - val adbCommand = "adb shell ${command.joinToString(" ")}" + private val command get() = arrayOf("pm", "grant", ctx.packageName, Manifest.permission.READ_LOGS) + val adbCommand get() = "adb shell ${command.joinToString(" ")}" companion object { const val EVENT_TYPE_GOT_PERMISSION = "got_permission" const val EVENT_TYPE_SHOW_ADB_DIALOG = "adb_dialog" } - fun root() = launchCatching(Dispatchers.IO) { + fun root() = launchCatching(ioDispatcher) { if (rootTerminal.isSupported()) { - appPreferences.selectTerminal(com.f0x1d.logfox.terminals.RootTerminal.INDEX) + appPreferences.selectTerminal(RootTerminal.INDEX) rootTerminal.executeNow(*command) checkPermission() } else - snackbar(R.string.no_root) + snackbar(Strings.no_root) } - fun adb() = launchCatching(Dispatchers.IO) { + fun adb() = launchCatching(ioDispatcher) { if (ctx.hasPermissionToReadLogs) gotPermission() else { sendEvent(EVENT_TYPE_SHOW_ADB_DIALOG) - appPreferences.selectTerminal(com.f0x1d.logfox.terminals.DefaultTerminal.INDEX) + appPreferences.selectTerminal(DefaultTerminal.INDEX) } } - fun shizuku() = launchCatching(Dispatchers.IO) { - appPreferences.selectTerminal(com.f0x1d.logfox.terminals.ShizukuTerminal.INDEX) + fun shizuku() = launchCatching(ioDispatcher) { + appPreferences.selectTerminal(ShizukuTerminal.INDEX) if (shizukuTerminal.isSupported() && shizukuTerminal.executeNow(*command).isSuccessful) gotPermission() else - snackbar(R.string.shizuku_error) + snackbar(Strings.shizuku_error) } fun checkPermission() = if (ctx.hasPermissionToReadLogs) gotPermission() else - snackbar(R.string.no_permission_detected) + snackbar(Strings.no_permission_detected) private fun gotPermission() = sendEvent(EVENT_TYPE_GOT_PERMISSION) } diff --git a/app/src/main/res/layout/fragment_setup.xml b/feature/feature-setup/src/main/res/layout/fragment_setup.xml similarity index 100% rename from app/src/main/res/layout/fragment_setup.xml rename to feature/feature-setup/src/main/res/layout/fragment_setup.xml diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8f3b7407..0aee39f8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -76,7 +76,6 @@ android-application = { id = "com.android.application", version.ref = "androidGr android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" } ksp = { id = "com.google.devtools.ksp", version.ref = "ksp"} hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } -androidx-navigation-safeargs = { id = "androidx.navigation.safeargs.kotlin", version.ref = "androidx-navigation" } [bundles] diff --git a/settings.gradle.kts b/settings.gradle.kts index 75cf7e57..26983a44 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -40,3 +40,4 @@ include(":feature:feature-logging-core") include(":feature:feature-recordings") include(":feature:feature-recordings-core") include(":feature:feature-settings") +include(":feature:feature-setup")