Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/fix bug #144

Merged
merged 2 commits into from
Mar 9, 2025
Merged

Feat/fix bug #144

merged 2 commits into from
Mar 9, 2025

Conversation

kaleidot725
Copy link
Owner

This pull request includes several changes to the adbpad project, focusing on improving the functionality and user interface for screenshot commands, as well as updating string resources and simplifying the codebase.

Screenshot functionality improvements:

  • Added selectCommand and onSelectCommand parameters to the ScreenshotScreen and ScreenshotDropDownButton components to allow users to select a screenshot command. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/Main.kt [1] [2]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotScreen.kt [3] [4] [5] [6]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotDropDownButton.kt [7] [8]
  • Updated ScreenshotState and ScreenshotStateHolder to include the selected command and handle the new SelectScreenshotCommand action. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotState.kt [1]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotStateHolder.kt [2] [3] [4] [5]

String resources updates:

  • Simplified the language names in the StringResources for various languages by removing the native script from the names. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/language/resources/ChineseResources.kt [1]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/language/resources/EnglishResources.kt [2]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/language/resources/JapaneseResources.kt [3]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/language/resources/TurkishResources.kt [4]

Codebase simplification:

  • Removed the isRunning property from ScreenshotCommand and converted the command classes to data object for simplicity. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/command/ScreenshotCommand.kt src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/command/ScreenshotCommand.ktL7-R20)
  • Removed the clear method and the runningCommands set from ScreenshotCommandRepositoryImpl as they were no longer needed. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/repository/ScreenshotCommandRepository.kt [1]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/usecase/refresh/RefreshUseCase.kt [2]; src/jvmMain/kotlin/jp/kaleidot725/adbpad/repository/impl/ScreenshotCommandRepositoryImpl.kt [3] [4] [5] [6] [7] [8]

Version update:

Copy link

github-actions bot commented Mar 9, 2025

1 Warning
⚠️ src/jvmMain/kotlin/jp/kaleidot725/adbpad/domain/model/language/Language.kt#L3 - Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end

Generated by 🚫 Danger

@kaleidot725 kaleidot725 merged commit 6fbf4e0 into main Mar 9, 2025
2 checks passed
@kaleidot725 kaleidot725 deleted the feat/fix_bug branch March 9, 2025 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant