Initialize Multitoolbox Android app (Kotlin/Compose)#2
Open
love19870821 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
settings.gradle.kts、build.gradle.kts、app/build.gradle.kts、wrapper 腳本等)並設定 Java/Kotlin 目標版本與 Compose。di/AppModule.kt(Hilt、OkHttp + Retrofit + Moshi、快取策略、匯率 API baseUrl),以及data/network與data/repository的匯率/設定/歷史倉儲實作。CalculatorHistoryEntity/Dao、SettingsEntity/Dao、CurrencyRateEntity/Dao、AppDatabase)與 repository。NavigationRoot/HomeScreen)、圖片工具箱(OCR、文字/圖片浮水印、清晰化、拼貼、繁中早安圖)與ImageToolboxViewModel,影片工具箱(本機裁剪使用 Media3 Transformer + 直連 URL 下載器)與VideoToolboxViewModel,小工具(計算機、幣值/單位換算)與UtilitiesViewModel,設定頁與SettingsViewModel。ImageProcessing.kt使用 OpenCV、ImageComposition.kt)、Bitmap 載入/儲存工具(BitmapUtils.kt)、計算與換算 UseCase(CalculateExpressionUseCase、UnitConversionUseCase、CurrencyConversionUseCase)。./gradlew assembleDebug/installDebug/assembleRelease指令與權限說明),以及基本單元測試檔案UtilitiesUseCaseTest.kt(計算與單位換算)。Testing
app/src/test/java/com/toolbox/multitool/UtilitiesUseCaseTest.kt覆蓋計算(百分比處理)、長度與溫度換算用例,但這些測試尚未在 CI/本地以 Gradle 執行。./gradlew test或./gradlew assembleDebug。Codex Task