Skip to content

カスタムキーのフリーフリック追加と三段フリック撤去 / Add custom Free Flick keys and remove three-stage flick - #1333

Merged
KazumaProject merged 4 commits into
devfrom
codex/custom-free-flick-remove-three-stage
Nov 15, 2026
Merged

KazumaProject merged 4 commits into
devfrom
codex/custom-free-flick-remove-three-stage

Conversation

@KazumaProject

@KazumaProject KazumaProject commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

日本語

カスタムキーボードの通常キーの入力方式に「フリーフリック」を追加し、キーごとのマップ編集・試し入力・保存・複製・バックアップに対応します。三段フリックは一時停止の扱いを終了し、機能用の型・設定・表示文言・保存項目・関連テストを削除します。

  • 既存のマップ編集画面をキー編集内のダイアログとして再利用します。マップの変更はキーの下書きに反映し、キーの確定とレイアウト保存で永続化します。画面再生成でも編集中のキーとマップ下書きを復元します。
  • 実際のカスタムキーボードから既存のフリーフリック入力処理を使用します。文字入力、切替、戻る、周囲表示・上部ガイド表示を利用できます。フリーフリックの感度連動時の popup 位置ずれを修正 / Fix Free Flick popup placement with sensitivity sizing #1331 の位置ずれ修正も取り込んでいます。
  • DBを50→51へ移行し、旧三段フリックのキーを通常キーに変換して旧保存列を削除します。5種類の既存フリック割り当て表とキーIDを維持する移行テストを追加しています。三段フリックの旧定義は保持しません。
  • 旧設定を削除し、旧標準キーボードの三段フリック設定は通常フリックへ移行します。旧バックアップの削除済みキータイプは通常キーとして読み込みます。バックアップ形式は7に更新し、新しいマップを検証して読み込みます。
  • 旧識別文字列は移行処理とその検証だけに残しています。

dev (0fc6a8634) 起点の専用worktreeで作業しました。画像、APK、ログ、調査メモ、一時スクリプトはコミットに含めていません。既存のDB移行テストは、今回のスキーマ変更に必要なフィクスチャと移行経路だけを更新しています。

検証:

  • 関連単体テスト413件成功(custom_keyboard 73件、app 340件、失敗・エラー・スキップ0)。
  • Full Standard DebugのKotlinコンパイル、Lite Standard Debugの実機用ビルド成功。
  • Pixel 6 / Android 17(API 37)で計4件の実機テストが成功。キーボード部品の2件に加え、5d295af10 の隔離したLite Standard Debugアプリで追加2件を実行し、キータイプ変更・マップ編集・画面再生成後の下書き復元・保存、および実際のIMEサービスでのタップ・文字入力・マップ切替・戻る・キャンセルを確認しました。周囲表示・上部ガイド表示の両方が対象です。
  • 検証用application IDと、検証用manifestのprovider authorityを分離して実行しました。追加2件のJUnit結果は成功2・失敗0・エラー0・スキップ0です。テスト後の元のIMEへの復帰と検証アプリの自動削除も確認しました。
  • 実機検証は縦向き・通常配置が対象です。フローティング、分割、横向き、他端末、Full版でのIME実行は今回の実機検証対象外です。

English

Add Free Flick as an input style for ordinary keys in custom keyboards, with per-key map editing, trial input, persistence, duplication and backups. Remove three-stage flick rather than keeping it suspended, including its feature types, settings, UI strings, stored definitions and dedicated tests.

  • Reuse the existing map editor inside the key editor dialog. Applying a map updates the key draft; confirming the key and saving the layout persist it. Restore the editing target and map draft after activity recreation.
  • Use the production Free Flick controller for custom keys, including text, map transitions, Back, around-key popups and above-key guides. Include the popup placement fix from フリーフリックの感度連動時の popup 位置ずれを修正 / Fix Free Flick popup placement with sensitivity sizing #1331.
  • Migrate the database from 50 to 51, convert retired keys to ordinary keys and remove the obsolete column. Test preservation of all five existing mapping tables and key identities. Retired three-stage definitions are discarded.
  • Remove retired preferences and migrate the old built-in style to normal flick. Read removed key types in old backups as ordinary keys. Bump the backup format to 7 and validate imported Free Flick maps.
  • Retain old identifiers only in migration code and migration tests.

Implemented in a dedicated worktree based on dev (0fc6a8634). No images, APKs, logs, investigation notes or temporary scripts are committed. Existing database migration tests receive only the fixture/path updates required by this schema change.

Validation:

  • All 413 related unit tests passed: 73 custom_keyboard and 340 app tests, with no failures, errors or skips.
  • Full Standard Debug Kotlin compilation and the Lite Standard Debug device build passed.
  • Four device tests passed on Pixel 6 / Android 17 (API 37). In addition to the two keyboard-component tests, two tests ran against 5d295af10 in an isolated Lite Standard Debug installation. They cover key conversion, map editing, draft restoration after activity recreation, persistence, and actual IME-service tap/text input, map transitions, Back and cancellation. Both popup presentations are covered.
  • Use a separate application ID and distinct provider authorities in an external test manifest. The two additional JUnit results show two passes with no failures, errors or skips. Restoration of the original IME and automatic removal of the test installation were also verified.
  • Device coverage uses portrait orientation and the standard layout. Floating, split, landscape, other devices and Full-edition IME execution were not exercised.

主な検証コマンド / Main validation commands

./gradlew :custom_keyboard:testDebugUnitTest \
  --tests 'com.kazumaproject.custom_keyboard.controller.PopupMapTapSensitivityTest' \
  --tests 'com.kazumaproject.custom_keyboard.data.Popup*Test' \
  --tests 'com.kazumaproject.custom_keyboard.view.PopupMap*Test' \
  --tests 'com.kazumaproject.custom_keyboard.view.FlickKeyboardViewLifecycleTest' \
  --tests 'com.kazumaproject.custom_keyboard.view.SumireModeKeyHighlightTest'

./gradlew :app:testLiteStandardDebugUnitTest \
  --tests 'com.kazumaproject.markdownhelperkeyboard.custom_keyboard.*' \
  --tests 'com.kazumaproject.markdownhelperkeyboard.sumire_popup.*' \
  --tests 'com.kazumaproject.markdownhelperkeyboard.setting_activity.RemovedFlickPreferencesMigrationTest' \
  --tests 'com.kazumaproject.markdownhelperkeyboard.ime_service.IMEServiceSumireFlickRotationTest' \
  --tests 'com.kazumaproject.markdownhelperkeyboard.custom_romaji.RomajiBehaviorPersistenceTest' \
  --tests 'com.kazumaproject.markdownhelperkeyboard.ng_word.database.NgWordMigrationTest'

./gradlew :custom_keyboard:connectedDebugAndroidTest \
  -Pandroid.testInstrumentationRunnerArguments.class=com.kazumaproject.custom_keyboard.controller.FreeFlickPopupPositionInstrumentedTest

# Use an external init script for the .customfreeflicktest ID and a test manifest
# with distinct provider authorities; select the intended connected device.
./gradlew -I /path/to/isolated-app.gradle \
  :app:compileFullStandardDebugKotlin :app:connectedLiteStandardDebugAndroidTest \
  -Pandroid.testInstrumentationRunnerArguments.class=com.kazumaproject.markdownhelperkeyboard.CustomFreeFlickKeyDeviceTest

Codex Mozc Autonomy added 4 commits November 14, 2026 19:58
…k-remove-three-stage

# Conflicts:
#	custom_keyboard/src/androidTest/java/com/kazumaproject/custom_keyboard/controller/FreeFlickPopupPositionInstrumentedTest.kt
@KazumaProject
KazumaProject merged commit a2f43ac into dev Nov 15, 2026
1 check passed
@KazumaProject
KazumaProject deleted the codex/custom-free-flick-remove-three-stage branch November 15, 2026 09:56
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