Compare commits

...
553 Commits
Author SHA1 Message Date
ろむねこ 30f2dc39ae Update issue templates 2024-01-08 15:57:51 +09:00
ろむねこ 4621025e62 Merge pull request #18 from lacerta-doc/r-ca-issue-template-1
Update issue templates
2024-01-08 15:56:18 +09:00
ろむねこ 164527d41a Merge pull request #19 from lacerta-doc/r-ca-pr-1
PRテンプレート追加
2024-01-08 15:56:01 +09:00
ろむねこ d770ac76aa Create general.md 2024-01-08 15:55:46 +09:00
ろむねこ 642f306ad6 Update issue templates 2024-01-08 15:45:01 +09:00
ろむねこ 930b48af2f Merge pull request #15 from lacerta-doc/common/improve_logger
Loggerの機能を強化
2024-01-08 15:36:24 +09:00
r-ca dec4983bfc 移動 2024-01-08 12:43:31 +09:00
r-ca 88dfae7d37 KeyValueログモデル作成 2024-01-08 12:43:30 +09:00
r-ca 48101190a2 修正 2024-01-08 12:43:21 +09:00
r-ca 2b79c7669f Key-Valueなログを出力しやすくした 2024-01-08 12:43:21 +09:00
ろむねこ 6be44cd9b5 Merge pull request #13 from lacerta-doc/component/fix_camera_stub
カメラスタブが現行のAndroidバージョンから呼び出せない問題を修正
2023-12-24 14:58:56 +09:00
r-ca efa3134dc6 Manifestで使用するインテントを明言した 2023-12-22 11:33:11 +09:00
ろむねこ acb039ee23 Merge pull request #10 from lacerta-doc/feature/library/add_document_list
Feature/library/add document list
2023-12-21 14:06:55 +09:00
nero 7965ce90a6 LibraryArchiveFragmentにてコードが重複していたため、削除した 2023-12-21 13:58:20 +09:00
nero 142ca57f76 名前を修正
前のは適当でわかりにくい名前になっていたため
2023-12-21 13:50:08 +09:00
r-ca c7a387df3d レイアウトマージン設定 2023-12-21 12:24:46 +09:00
r-ca 732f047ff7 余白が異常に大きくなるのを修正 2023-12-21 12:24:46 +09:00
r-ca bbeba2b733 コメント追加 2023-12-21 12:24:46 +09:00
r-ca 83d2d0af02 一旦保存して読み込むように 2023-12-21 12:24:46 +09:00
r-ca 3518464716 権限修正 2023-12-21 12:24:46 +09:00
r-ca f9247e9114 プロバイダパスを追加 2023-12-21 12:24:46 +09:00
r-ca be610059cf プロバイダパスを追加 2023-12-21 12:24:46 +09:00
r-ca b12c689d4e AndroidManifest.xmlにFileProviderを追加 WIP 2023-12-21 12:24:46 +09:00
r-ca 55ae0b541a 取得される画像の解像度が低すぎるので修正 WIP 2023-12-21 12:24:46 +09:00
r-ca f74abd11fc レイアウト修正 2023-12-21 12:24:46 +09:00
r-ca 8817c62ed3 レイアウト修正 2023-12-21 12:24:46 +09:00
r-ca d5616d63b6 Revert "Revert "内部クラスじゃだめそうなので切り出し""
This reverts commit ba4ff5652e.
2023-12-21 12:24:46 +09:00
r-ca 9cbf6f9d56 Revert "Revert "WIP 内部クラスじゃだめそうなので切り出し""
This reverts commit aea6ea3808.
2023-12-21 12:24:46 +09:00
r-ca ad66688bf9 WIP 2023-12-21 12:24:46 +09:00
r-ca b5281443bf Revert "WIP 内部クラスじゃだめそうなので切り出し"
This reverts commit 9a71fb5c26.
2023-12-21 12:24:46 +09:00
r-ca c616edf9f7 Revert "内部クラスじゃだめそうなので切り出し"
This reverts commit c0e64ad5fd.
2023-12-21 12:24:46 +09:00
r-ca aa4f8360dc 内部クラスじゃだめそうなので切り出し 2023-12-21 12:24:46 +09:00
r-ca 99dea6d6f6 WIP 内部クラスじゃだめそうなので切り出し 2023-12-21 12:24:46 +09:00
r-ca b3dcaefede WIP 結果をプレビューするロジック実装 2023-12-21 12:24:46 +09:00
r-ca 9ec45096ba 命名修正 2023-12-21 12:24:46 +09:00
r-ca a3edcf845a レイアウト修正 2023-12-21 12:24:46 +09:00
r-ca 48de3f9a8d fix typo 2023-12-21 12:24:46 +09:00
r-ca 979a3f8ee7 レイアウト修正 2023-12-21 12:24:46 +09:00
r-ca 9c79e02cc8 レイアウト修正 2023-12-21 12:24:46 +09:00
r-ca 3db91fb937 レイアウト修正 2023-12-21 12:24:46 +09:00
r-ca e9f2a6b711 レイアウト実装WIP 2023-12-21 12:24:46 +09:00
r-ca 955c0122cf レイアウトファイル作成 2023-12-21 12:24:46 +09:00
r-ca d5f3d36d23 仮置きデータモデル作成 2023-12-21 12:24:46 +09:00
r-ca 2c74fa3339 仮置きデータモデル作成 2023-12-21 12:24:46 +09:00
r-ca e3220910f5 レイアウトにRecyclerViewを追加 2023-12-21 12:24:46 +09:00
r-ca 8e97dd6972 まちがえてrequireActivityを使っていたので修正 2023-12-21 12:24:46 +09:00
r-ca 0bf6b3fa1a ログ追加 2023-12-21 12:24:46 +09:00
r-ca 6ac0599f4c パーミッションを追加してみた 2023-12-21 12:24:46 +09:00
r-ca f14b9accee デバッグメニューにリンクを追加 2023-12-21 12:24:46 +09:00
r-ca da2ff27391 暫定, debugメニューのナビゲーショングラフに追加 2023-12-21 12:24:46 +09:00
r-ca 60d13ac9a9 fix typo 2023-12-21 12:24:46 +09:00
r-ca 011cac925a fix typo 2023-12-21 12:24:46 +09:00
r-ca 4d0412e5bd debugの依存関係にスキャナコンポーネントを追加 2023-12-21 12:24:46 +09:00
r-ca be30ce2c62 ボタンアクションを実装 2023-12-21 12:24:46 +09:00
r-ca 3c6541607c カメラ起動を実装 2023-12-21 12:24:46 +09:00
r-ca be80e42dc5 ArrayListに変更 2023-12-21 12:24:46 +09:00
r-ca 031a1d2810 ロジック実装 WIP 2023-12-21 12:24:46 +09:00
r-ca ccbbb45f39 引数削除 2023-12-21 12:24:46 +09:00
r-ca 13b53c62ec スタイル変更 2023-12-21 12:24:46 +09:00
r-ca 8c83c7adcf レイアウトマージン修正 2023-12-21 12:24:46 +09:00
r-ca 5617dacfe7 テーマ設定 2023-12-21 12:24:46 +09:00
r-ca ed9e20ede3 依存関係追加 2023-12-21 12:24:46 +09:00
r-ca b7f91b593e レイアウト作成 WIP 2023-12-21 12:24:46 +09:00
r-ca 4a39c5c525 スキャナのスタブを実装 WIP 2023-12-21 12:24:46 +09:00
r-ca fc716df189 一旦過去に作成したフラグメントを削除 2023-12-21 12:24:46 +09:00
nero 9d108212dd データを取得するための機能実装 2023-12-20 12:52:24 +09:00
nero e34dd65dda コードの微修正 2023-12-20 12:22:18 +09:00
nero 3386418abd 画面変移のコード作成。
データを受け取る側と渡す側を作った
2023-12-20 12:21:37 +09:00
nero c8b99e10e8 コメントを足した。 2023-12-20 12:02:21 +09:00
nero d8f8b87c54 フォーマットを整えた 2023-12-20 12:00:33 +09:00
nero 31d3b975ea 表示されている文字をクリックすることでそのページを表示する機能の基礎部分 2023-12-20 10:52:01 +09:00
ろむねこ fb5de4f12a Merge pull request #7 from lacerta-doc/common/fix-gradle
リリース準備
2023-12-20 10:47:02 +09:00
r-ca b02c0a421c バージョンコード修正など 2023-12-20 10:45:45 +09:00
r-ca 2843ed749d PlayConsoleで別のアプリになってしまうのでSuffixを廃止 2023-12-20 10:42:50 +09:00
ろむねこ 9722a3d9b7 Merge pull request #5 from lacerta-doc/common/update_version_rule
バージョン名の運用を変更
2023-12-20 10:17:10 +09:00
r-ca 0d21f7a783 バージョン名変更 2023-12-20 10:16:07 +09:00
nero 866b8270fe 仮データを出力できるように調整した。 2023-12-19 12:45:41 +09:00
nero e0af9381cb Revert "アクティビティを宣言"
This reverts commit 6d71322982.
2023-12-19 12:24:19 +09:00
nero e70f930929 コードを微修正 2023-12-19 12:00:56 +09:00
ろむねこ 2364a32de9 Merge pull request #4 from lacerta-doc/general/internal_release
内部リリース用のビルド設定を追加, バージョンコードを変更
2023-12-19 11:51:17 +09:00
r-ca c8c0c2f42c バージョン変更, コメント追加 2023-12-19 11:50:32 +09:00
r-ca e87056a12f バージョン更新 2023-12-19 11:47:32 +09:00
r-ca cfd3153620 内部リリース用の設定を追加 2023-12-19 11:44:11 +09:00
ろむねこ 78c11ee41e Merge pull request #2 from lacerta-doc/general/release_settings
リリース用のビルドタイプなどを追加
2023-12-19 11:15:04 +09:00
r-ca bed4011b40 debug, beta_releaseにfallbackを追加 2023-12-19 11:05:16 +09:00
r-ca 6a326072d4 buildTypesにdebugとbeta_releaseを追加 2023-12-19 11:01:23 +09:00
nero ac2001142f Laibraryが表示できるようにコードを書き換えた。
・nullを検出して安全性を高めた
・RecyclerView.Adapterを使用するためのコードを追加
2023-12-19 10:15:33 +09:00
nero 6d71322982 アクティビティを宣言 2023-12-18 16:26:19 +09:00
nero 3bf14799b5 改善したもののやっぱり実行するとアプリが落ちる 2023-12-18 16:19:50 +09:00
nero aaf4264f44 仮の画面はできたが、実行するとアプリが落ちる 2023-12-18 16:13:35 +09:00
nero b097e8070a ListViewからRecyclerViewに変えた 2023-12-18 16:09:40 +09:00
nero 99ad244376 基本的な画面レイアウトを作成 2023-12-18 15:57:48 +09:00
nero 99817d3e33 依存関係追加
レイアウトの設定
2023-12-18 15:45:31 +09:00
nero 5a92c210f7 依存関係追加 2023-12-18 15:15:54 +09:00
ろむねこ 20aab465a8 Update README.md 2023-12-18 14:25:49 +09:00
ろむねこ 8c8ee9bd9c Update README.md 2023-12-18 14:24:58 +09:00
r-ca 5f116189e1 テーマを適用しても問題なく動作するようになった 2023-12-18 13:29:04 +09:00
r-ca 6da0732642 カラーパレットに応じてテーマカラーが切り替わるように 2023-12-18 13:27:13 +09:00
r-ca 839cb6b058 Revert "Transitionテスト"
This reverts commit 051a6e582f.
2023-12-18 13:12:49 +09:00
r-ca a44bdd317d Revert "アニメーション実装テスト"
This reverts commit 7df53d9f40.
2023-12-18 13:12:48 +09:00
r-ca 4b2de05e5c Revert "アニメーションを全部に追加する WIP"
This reverts commit 470d3cca27.
2023-12-18 13:12:48 +09:00
r-ca 8e34ba7939 Revert "アニメーションを全部に追加する WIP"
This reverts commit c5081f73be.
2023-12-18 13:12:48 +09:00
r-ca c5081f73be アニメーションを全部に追加する WIP 2023-12-18 13:12:42 +09:00
r-ca 470d3cca27 アニメーションを全部に追加する WIP 2023-12-18 12:35:53 +09:00
r-ca 7df53d9f40 アニメーション実装テスト 2023-12-18 12:30:27 +09:00
r-ca 051a6e582f Transitionテスト 2023-12-18 12:02:53 +09:00
r-ca 989dc094fa Revert "テスト"
This reverts commit ce83c46cba.
2023-12-18 10:59:47 +09:00
r-ca 0820496c45 Revert "テスト"
This reverts commit e25fb9a48e.
2023-12-18 10:59:34 +09:00
r-ca 5898aa791c Revert "テスト"
This reverts commit 10c29cee6e.
2023-12-18 10:59:34 +09:00
r-ca 10c29cee6e テスト 2023-12-18 10:59:23 +09:00
r-ca e25fb9a48e テスト 2023-12-18 10:58:56 +09:00
r-ca 432d93aaa2 :shared:uiを依存関係に追加 2023-12-18 10:58:11 +09:00
r-ca 043ccbe6c2 内容挿入 2023-12-18 10:57:21 +09:00
r-ca e230b27e5b テスト用アニメーション追加 WIP 2023-12-18 10:56:45 +09:00
r-ca 10c1e99335 テスト用アニメーション追加 2023-12-18 10:55:58 +09:00
r-ca ce83c46cba テスト 2023-12-18 10:54:49 +09:00
r-ca 54ed1ccb80 アイコン変更 2023-12-18 10:38:49 +09:00
r-ca 71b0a6783a 色変更 2023-12-18 10:38:33 +09:00
r-ca 9fe216036b Homeのアイコンをインポート 2023-12-18 10:38:22 +09:00
r-ca 24c24bbffe メニュー追加WIP(仮置きアイコン) 2023-12-18 10:36:55 +09:00
r-ca b05232a05f appのナビゲーショングラフに追加 2023-12-18 10:36:06 +09:00
r-ca da193440f2 ナビゲーショングラフに追加 2023-12-18 10:35:43 +09:00
r-ca 08fb9d79f0 依存関係修正 2023-12-18 10:34:59 +09:00
r-ca 3fcc34436b Revert "ナビゲーショングラフ追加"
This reverts commit 720139660a.
2023-12-18 10:34:25 +09:00
r-ca 720139660a ナビゲーショングラフ追加 2023-12-18 10:34:19 +09:00
r-ca d58dde5a95 ナビゲーショングラフ追加 2023-12-18 10:34:16 +09:00
r-ca 79784787ee 並び順の変更, タイトル修正 2023-12-18 10:32:09 +09:00
r-ca 28fa96e153 アイコン変更 2023-12-18 10:31:43 +09:00
r-ca 1c1e037557 appのナビゲーショングラフに追加、メニューアイテム追加 2023-12-18 10:29:35 +09:00
r-ca ee805d0447 名称を統一 2023-12-18 10:28:29 +09:00
r-ca c36fd98110 名称を統一 2023-12-18 10:25:48 +09:00
r-ca cb6b329ce1 ナビゲーショングラフに追加 2023-12-18 10:25:00 +09:00
r-ca 733a30f310 テスト削除 2023-12-18 10:23:03 +09:00
r-ca e6aece5a05 テスト 2023-12-18 10:22:10 +09:00
r-ca 5a158d3b61 Navigation Componentを依存関係に追加 2023-12-18 10:21:15 +09:00
r-ca f968f8e88a バージョンカタログから読み取るように変更 2023-12-18 10:20:30 +09:00
r-ca 996630d0dd Home/Libraryのトップフラグメント追加 2023-12-18 10:16:05 +09:00
r-ca 6a79dbdaec UIアイコンの色を変更 2023-12-18 10:14:35 +09:00
r-ca 0c2972cf95 UIアイコン追加 2023-12-18 10:12:49 +09:00
r-ca 6945b7cd32 アセット追加 2023-12-18 10:12:17 +09:00
r-ca 8dfde3332b テストデータのDocument Titleを指定できるように 2023-12-18 02:06:06 +09:00
r-ca ced5129263 テストデータのDocument Titleを指定するレイアウトを追加 2023-12-18 02:02:27 +09:00
r-ca eb1e6f23b0 レイアウトの高さを修正 2023-12-18 01:51:37 +09:00
r-ca 13496ba454 getItemCountが0でハードコーディングされていたので修正 2023-12-18 01:50:43 +09:00
r-ca d714aef47f レイアウトのInflateを忘れていたので追加 2023-12-18 01:48:17 +09:00
r-ca 56eecb45e4 レイアウト実装 2023-12-18 01:45:03 +09:00
r-ca 1a332ce707 List型に変更 2023-12-18 01:43:58 +09:00
r-ca 802a0b617d Logger: コンストラクタを追加 2023-12-18 01:42:33 +09:00
r-ca 85206956e7 LoggerをInject(など) 2023-12-18 01:39:44 +09:00
r-ca 37bc68fef9 アノテーション追加 2023-12-18 01:37:08 +09:00
r-ca 24632351ed onBindViewHolder実装 2023-12-18 01:36:45 +09:00
r-ca c9dbefbe38 WIP 2023-12-18 01:36:19 +09:00
r-ca 4fb93c41e8 import追加, Inject 2023-12-18 01:32:44 +09:00
r-ca 81053009e0 実装テスト 2023-12-18 01:29:22 +09:00
r-ca 8f4ffb4731 Adapter作成WIP 2023-12-18 01:25:55 +09:00
r-ca cb187fc7ed 内容/Getter/Setter 2023-12-18 01:24:03 +09:00
r-ca 41c90f5467 データモデルクラス作成 2023-12-18 01:23:22 +09:00
r-ca 4eef590bcf アイテムレイアウト作成 WIP 2023-12-18 01:22:39 +09:00
r-ca 389e60b284 アイテムレイアウト作成 2023-12-18 01:19:38 +09:00
r-ca 81afba02a0 引数削除 2023-12-18 01:12:34 +09:00
r-ca 0718e15ec9 色追加暫定 2023-12-18 00:59:43 +09:00
r-ca 07a3103a84 移動 2023-12-18 00:58:32 +09:00
r-ca d3bab9b062 アイコン追加など 2023-12-18 00:57:40 +09:00
r-ca 6040411c4f アイコン管理パッケージを依存関係に追加 2023-12-18 00:35:44 +09:00
r-ca 443310b3e5 アイコン追加 2023-12-18 00:34:28 +09:00
r-ca 38b149cbfc アイコン用ようパッケージ追加 2023-12-18 00:33:37 +09:00
r-ca 4664817d76 ボタンにID追加 2023-12-18 00:15:22 +09:00
r-ca 903bf9e3bb アノテーション忘れ修正 2023-12-18 00:12:57 +09:00
r-ca 33dd27bb3d 一部のコンストラクタでデータを生成できていなかった 2023-12-18 00:08:27 +09:00
r-ca 93971a097a Insertテスト WIP 2023-12-18 00:07:06 +09:00
r-ca 820cf6ea87 コンテナとして使うDrawableを作成 2023-12-17 23:49:05 +09:00
r-ca 42177d9251 デバッグで追加したViewを削除 2023-12-17 23:48:48 +09:00
r-ca 03fd6b10b8 推移できるように 2023-12-17 23:48:33 +09:00
r-ca 4836460f65 ナビゲーション追加 2023-12-17 23:48:19 +09:00
r-ca 67cdd63ad4 レイアウトWIP 2023-12-17 23:45:21 +09:00
r-ca 5d866d8513 WIP リミットありの全件取得を実装 2023-12-17 23:27:39 +09:00
r-ca e8dc956b7d WIP リミットありの全件取得を実装 2023-12-17 23:27:34 +09:00
r-ca 4c20c7411b Repository修正 2023-12-17 23:25:32 +09:00
r-ca af3273f9c6 Repository修正 2023-12-17 23:25:12 +09:00
r-ca 3760588796 Repository作成 2023-12-17 23:23:35 +09:00
r-ca ed6e9bd469 なぜかDynamicColorが適用されなくなるのでテーマの指定を削除 2023-12-17 22:17:13 +09:00
r-ca e2a6cb02d7 Revert "テスト"
This reverts commit 739e0392b6.
2023-12-17 22:13:36 +09:00
r-ca 6c32823a75 Revert "テスト"
This reverts commit 99f4fa65ad.
2023-12-17 22:13:36 +09:00
r-ca e867a09e25 Revert "テスト"
This reverts commit 78cfe50597.
2023-12-17 22:13:35 +09:00
r-ca 7b4757491c Revert "テスト"
This reverts commit c5c1768083.
2023-12-17 22:13:35 +09:00
r-ca c5c1768083 テスト 2023-12-17 22:12:45 +09:00
r-ca 78cfe50597 テスト 2023-12-17 22:03:42 +09:00
r-ca 99f4fa65ad テスト 2023-12-17 22:02:59 +09:00
r-ca 739e0392b6 テスト 2023-12-17 21:59:01 +09:00
r-ca ffe823698c WIP 2023-12-17 21:58:07 +09:00
r-ca eff8e2037a WIP 2023-12-17 19:29:20 +09:00
r-ca 06a78ebee0 色指定追加 2023-12-17 19:29:12 +09:00
r-ca 24abd02472 スタイル追加 2023-12-17 19:28:59 +09:00
r-ca a459a93d11 WIP 2023-12-17 19:26:53 +09:00
r-ca 3d473ae5c4 スクロールビュー追加 2023-12-17 19:25:09 +09:00
r-ca bf965e8fd4 引数削除 2023-12-17 19:22:44 +09:00
r-ca 9bc6a144ec 管理画面追加 2023-12-17 19:22:06 +09:00
r-ca 7f79248c50 ナビゲーションに追加 2023-12-17 19:20:43 +09:00
r-ca c0f4b8bce7 ドキュメント一覧ページ作成 2023-12-17 19:19:29 +09:00
r-ca 47a38471c7 レイアウト修正 2023-12-17 19:16:46 +09:00
r-ca f1bef54bb4 Revert "作業用"
This reverts commit 50881a3b
2023-12-17 18:28:43 +09:00
r-ca fe56913df0 カラースキーマ作成 2023-12-17 18:28:19 +09:00
r-ca 7bc5138208 WIP 2023-12-17 18:18:22 +09:00
r-ca 637d77f95b リネーム 2023-12-17 17:29:38 +09:00
r-ca cfeb51b422 A13用カラーパレット 2023-12-17 17:29:29 +09:00
r-ca 4ae3a20b40 A11以下用カラーパレット(生成) 2023-12-17 15:58:44 +09:00
r-ca 50881a3b2a 作業用 2023-12-17 15:47:33 +09:00
r-ca c443093924 項目を追加, レイアウト微修正 2023-12-17 15:44:25 +09:00
r-ca e74921acda activity_main修正 2023-12-17 15:34:30 +09:00
r-ca e5f0402079 微修正 2023-12-17 15:33:52 +09:00
r-ca 326d7495ac 微修正 2023-12-17 15:32:38 +09:00
r-ca b099ec1a41 微修正 2023-12-17 15:32:25 +09:00
r-ca a589a2ad3f 内部でナビゲーショングラフを持つように変更 WIP 2023-12-17 15:32:11 +09:00
r-ca 2b640f994d レイアウト修正 2023-12-17 15:31:32 +09:00
r-ca c3d06c4d1f ナビゲーション構成変更 2023-12-17 15:31:01 +09:00
r-ca a0ce6bf7f2 WIP 2023-12-17 15:30:00 +09:00
r-ca efa377409d 命名変更 2023-12-17 15:28:51 +09:00
r-ca 65c6264428 コンテナのレイアウト作成 2023-12-17 15:27:51 +09:00
r-ca 077a8bc4d9 サブメニュー用のコンテナを作成 2023-12-17 15:26:57 +09:00
r-ca ad1467878f テーマ, xmlns追加 2023-12-17 15:23:59 +09:00
r-ca adc76d7213 名称変更 2023-12-17 15:22:44 +09:00
r-ca a9c6086f2b 引数削除 2023-12-17 15:22:02 +09:00
r-ca 3ca9cf0b62 ドキュメント用のデバッグメニュー追加 2023-12-17 15:21:32 +09:00
r-ca 4e287d02f9 デバッグログ削除 2023-12-17 14:34:50 +09:00
r-ca 7eeed348ca レイアウトマネージャー追加など 2023-12-17 14:34:40 +09:00
r-ca c968100b9d activity_main修正 2023-12-17 14:34:29 +09:00
r-ca 1b6df08df8 Adapter修正 2023-12-17 14:34:10 +09:00
r-ca 975b3abd98 destinationIdの型を間違えてたので修正 2023-12-17 14:19:31 +09:00
r-ca 14ba4f0c93 RecyclerView実装WIP 2023-12-17 14:18:50 +09:00
r-ca e3ebe25cdd 推移イベント呼ぶようにした 2023-12-17 14:16:56 +09:00
r-ca c36246bded WIP 2023-12-17 14:13:31 +09:00
r-ca d30d6ef519 WIP 2023-12-17 14:11:42 +09:00
r-ca 78b6c58dcd 仮置きテキスト削除 2023-12-17 14:10:37 +09:00
r-ca 232ca60238 レイアウト修正 2023-12-17 14:10:05 +09:00
r-ca 021650f064 レイアウト生成 2023-12-17 14:08:37 +09:00
r-ca 1cf28d5997 Getter/Setter作成 2023-12-17 13:55:56 +09:00
r-ca 334954b6a8 データモデル作成 2023-12-17 13:55:35 +09:00
r-ca 0fc5c13427 レイアウト作成WIP 2023-12-17 13:53:32 +09:00
r-ca 66f79842b7 レイアウト作成WIP 2023-12-17 13:53:11 +09:00
r-ca 094eed8bb3 レイアウト作成WIP 2023-12-17 13:52:15 +09:00
r-ca 06f746d7b0 参照するテーマを追加 2023-12-17 13:51:12 +09:00
r-ca 95456166c2 ナビゲーションに追加 2023-12-17 13:49:40 +09:00
r-ca 206173e73a DebugMenuMetaDataFragment 2023-12-17 13:48:43 +09:00
r-ca a683815540 DebugMenuMetaDataFragment 2023-12-17 13:48:19 +09:00
r-ca 93abec047d DebugMenuTopFragment: 引数削除 2023-12-17 13:46:45 +09:00
r-ca 82732d4c35 DebugMenuTopFragment: 作成 2023-12-17 13:46:09 +09:00
r-ca 137316d95b デバッグメニュー作り直す 2023-12-17 13:42:47 +09:00
r-ca 92ec3d31f4 WIP 2023-12-17 13:41:44 +09:00
r-ca b7fd424f33 暫定 2023-12-17 13:39:36 +09:00
r-ca ea923aa884 WIP 2023-12-17 13:39:30 +09:00
r-ca 493cd5050d ナビゲーションに追加 2023-12-17 13:39:24 +09:00
r-ca e3421d6ce4 空っぽのコンストラクタなどを追加 2023-12-17 13:31:50 +09:00
r-ca 84ac06d5df 引数に関する処理を削除 2023-12-17 13:22:59 +09:00
r-ca b7e29233cd Getter/Setter追加 2023-12-17 13:21:18 +09:00
r-ca 17c7b5b675 アダプタ実装WIP 2023-12-17 13:20:59 +09:00
r-ca f8a1aa1e77 データモデル作成 2023-12-17 13:16:14 +09:00
r-ca ac011bf2d1 ドキュメントマネージャUI作成 WIP 2023-12-17 13:08:42 +09:00
r-ca 0e42001287 ドキュメントマネージャUI作成 WIP 2023-12-17 13:07:19 +09:00
r-ca c5ba8e8fee ドキュメントマネージャUI作成 2023-12-17 13:02:07 +09:00
r-ca 26c8c2c6ad UI微修正 2023-12-17 12:58:43 +09:00
r-ca 239ae81c78 debugの依存関係に:shared:uiモジュールを追加 2023-12-17 12:16:22 +09:00
r-ca 4366723b21 appの依存関係に:shared:uiモジュールを追加 2023-12-17 12:16:02 +09:00
r-ca e1190449c6 UIの共有要素を含めるモジュールを作成 2023-12-17 12:15:21 +09:00
r-ca f5cff1c43b UIの共有要素を含めるモジュールを作成 2023-12-17 12:10:03 +09:00
r-ca faf4f9bc1f カラーパレットを暫定でつくった 2023-12-17 12:04:49 +09:00
r-ca 605bdf5d9b デバッグメニューのプレビューでテーマを読み込めるようにした 2023-12-17 11:58:10 +09:00
r-ca 2a60f884cf ドキュメント関係のデバッグ画面WIP 2023-12-17 11:49:45 +09:00
r-ca 579cd86dab Merge remote-tracking branch 'origin/develop' into develop 2023-12-17 11:41:27 +09:00
r-ca 5d8b132956 Revert "デバッグメニューレイアウト作りなおし WIP"
This reverts commit 2ada626c04.
2023-12-16 22:04:43 +09:00
r-ca 10b3b514d0 Revert "デバッグメニューレイアウト作りなおし WIP"
This reverts commit b4ba9308d2.
2023-12-16 22:04:43 +09:00
r-ca 16ec2b886d Revert "デバッグメニューレイアウト作りなおし カード追加 WIP"
This reverts commit 7cced5a4b1.
2023-12-16 22:04:42 +09:00
r-ca f406e2a258 Revert "デバッグメニューレイアウト作りなおし カード追加 WIP"
This reverts commit 6051271c81.
2023-12-16 22:04:39 +09:00
r-ca 6051271c81 デバッグメニューレイアウト作りなおし カード追加 WIP 2023-12-16 21:13:49 +09:00
r-ca 7cced5a4b1 デバッグメニューレイアウト作りなおし カード追加 WIP 2023-12-16 21:08:50 +09:00
r-ca b4ba9308d2 デバッグメニューレイアウト作りなおし WIP 2023-12-16 21:07:46 +09:00
r-ca 2ada626c04 デバッグメニューレイアウト作りなおし WIP 2023-12-16 21:06:26 +09:00
r-ca c9a7b79b50 WIP 2023-12-16 21:05:09 +09:00
r-ca 88a64ce43d デバッグメニュー用のRowアイテム作成 WIP 2023-12-16 20:42:53 +09:00
ろむねこ 4e089c5405 Update issue templates 2023-12-16 20:28:00 +09:00
r-ca 30cd6b94f0 レイアウト修正WIP 2023-12-16 17:17:46 +09:00
r-ca 365cf562cb レイアウト修正WIP 2023-12-16 17:12:54 +09:00
r-ca 2078698bfa インポートするツールバーが間違っていた?ので変更WIP 2023-12-16 17:09:35 +09:00
r-ca 80e9274cf6 WIP 2023-12-16 17:01:34 +09:00
r-ca 86b9e3ff3e タイトルからDocumentMetaをつくれるように 2023-12-16 16:48:58 +09:00
r-ca ecead0465d Impl実装 2023-12-16 16:41:15 +09:00
r-ca e8aab5e730 Impl実装 2023-12-16 16:40:25 +09:00
r-ca 0f8cf3dca0 Stringでパスを取得するオプションを追加 2023-12-16 16:39:59 +09:00
r-ca 8f1b47d4c4 Impl WIP 2023-12-16 16:39:23 +09:00
r-ca 76c0fc1fe7 Impl 2023-12-16 16:36:34 +09:00
r-ca 2ff657c59d リポジトリ作成機能WIP 2023-12-16 16:36:19 +09:00
r-ca 1216d9a3b7 Repositoryを取得できるようにした 2023-12-16 16:30:08 +09:00
r-ca f0ab914ca5 リポジトリのGetter/Setterを追加 2023-12-16 16:29:23 +09:00
r-ca 12537b3506 WIP 2023-12-16 16:28:30 +09:00
r-ca 5f6d4df5b2 コンストラクタを使うように修正 2023-12-16 16:22:31 +09:00
r-ca 95dafdebe5 壊れた場所を修正 2023-12-16 16:19:35 +09:00
r-ca d23e8510db 命名修正 2023-12-16 16:17:51 +09:00
r-ca 42a541e5dc Processorモジュール作成 2023-12-16 16:02:39 +09:00
r-ca 7daac01c58 Merge remote-tracking branch 'origin/develop' into develop 2023-12-16 15:52:50 +09:00
ろむねこ 25827d0e9d モジュール構成図更新 2023-12-16 15:52:32 +09:00
r-ca b9fef9ad73 依存関係にJGitを追加 2023-12-16 15:23:09 +09:00
r-ca c33348d5fd WIP 2023-12-16 15:22:41 +09:00
r-ca 2b3b738d3c DocumentProcessor作成 2023-12-16 15:13:47 +09:00
r-ca 3d7fbf8a95 ロジック実装 2023-12-16 14:23:44 +09:00
r-ca 132991122f ログ追加 2023-12-16 14:22:38 +09:00
r-ca 43b0dd4eed LoggerのModule作成 2023-12-16 14:20:26 +09:00
r-ca c3b53776e4 Logger作成 2023-12-16 14:18:36 +09:00
r-ca 79dfc5b5ba Logger作成WIP 2023-12-16 14:13:43 +09:00
r-ca 55f51cef47 Logger作成WIP 2023-12-16 14:13:26 +09:00
r-ca d1402ad91b Logger作成 2023-12-16 14:13:12 +09:00
r-ca f6e6b91213 TODOファイル作成 2023-12-16 14:13:07 +09:00
r-ca 81dc92f449 WIP 2023-12-16 14:12:58 +09:00
r-ca 5fd3a88b38 WIP 2023-12-16 14:03:39 +09:00
r-ca 3bab78883b setRepository 2023-12-16 13:57:13 +09:00
r-ca ac3523780f Implにメソッド生成 2023-12-16 13:56:29 +09:00
r-ca 87850eb899 変更 2023-12-16 13:55:33 +09:00
r-ca 698a191586 Impl生成 2023-12-16 13:50:22 +09:00
r-ca c35bf9cabd JGitアクションのRepository実装 2023-12-16 13:47:21 +09:00
r-ca 8c21d0db04 メソッド追加 2023-12-16 13:41:12 +09:00
r-ca c875ba5e54 コンストラクタの種類を追加 2023-12-16 13:40:08 +09:00
r-ca c297fb043a コンストラクタを追加 2023-12-16 13:36:46 +09:00
r-ca bd97508a3e コメントのミスを修正 2023-12-16 13:36:23 +09:00
r-ca 07a489b151 コンストラクタ追加 2023-12-16 13:35:51 +09:00
r-ca c59871300a 移動してなくなったインポート/Injectionを消した 2023-12-14 14:54:12 +09:00
r-ca 173e91f461 アンコメント 2023-12-14 14:53:19 +09:00
r-ca 12cba0242b Hilt Module実装 2023-12-14 14:38:34 +09:00
r-ca 4ed88e8fac WIP Impl実装 2023-12-14 14:36:21 +09:00
r-ca 1d9de332db 依存関係にUtilsを追加 2023-12-14 14:31:20 +09:00
r-ca 72163182a0 Impl WIP 2023-12-14 14:29:19 +09:00
r-ca 801d7e0737 Interface WIP 2023-12-14 14:28:34 +09:00
r-ca 58b87f879a パッケージ構成変更 2023-12-14 14:24:39 +09:00
r-ca e518eaf742 パッケージ構成変更 2023-12-14 14:23:07 +09:00
r-ca e3346dd605 Revert "パッケージ構成変更"
This reverts commit ca3cd2b12c.
2023-12-14 14:22:52 +09:00
r-ca ca3cd2b12c パッケージ構成変更 2023-12-14 14:21:50 +09:00
r-ca af25a502dc TODO 2023-12-14 12:51:21 +09:00
r-ca b731e566e7 JavaDoc対応 2023-12-14 12:51:15 +09:00
r-ca 2f29f5bf85 TODO 2023-12-14 12:49:11 +09:00
r-ca 6660469b43 JavaDoc対応(パラメータ) 2023-12-14 12:49:05 +09:00
r-ca 992caa4088 JavaDoc対応 2023-12-14 12:48:44 +09:00
r-ca 31e1f23475 TODO 2023-12-14 12:47:21 +09:00
r-ca 5b5f4b16ad JavaDoc対応(パラメータ) 2023-12-14 12:47:05 +09:00
r-ca dbb338ce63 JavaDoc対応(パラメータ), TODO 2023-12-14 12:46:37 +09:00
r-ca 1d33ded518 JavaDoc対応 2023-12-14 12:45:45 +09:00
r-ca fe17397b38 JavaDoc対応 2023-12-14 12:39:48 +09:00
r-ca db2cac5c62 JavaDoc対応(WIP) 2023-12-14 12:38:58 +09:00
r-ca aeec6c60b2 空白行 2023-12-14 12:37:29 +09:00
r-ca 243720ee96 JavaDoc対応 2023-12-14 12:37:19 +09:00
r-ca ec81dfd525 Placeholder 2023-12-14 12:34:04 +09:00
r-ca 39e22de1a2 デバッグ: Roomのクエリをメインスレッドで実行できるようにした 2023-12-14 12:11:30 +09:00
r-ca b7f7183094 コンストラクタ登録忘れ 2023-12-14 12:09:09 +09:00
r-ca 911465a7ac 警告吐かれたので34に更新 2023-12-14 12:06:21 +09:00
r-ca 82ed7c7111 テストデータの挿入を実装 2023-12-14 12:04:47 +09:00
r-ca 636affe312 fullPathは重複する内容なので削除 2023-12-14 12:04:41 +09:00
r-ca 54aed8ec6b 依存関係にmodelを追加 2023-12-14 11:59:57 +09:00
r-ca 1d36a09731 WIP 2023-12-14 11:59:30 +09:00
r-ca c3eb16af85 DebugMenuにDocumentDebugをInjectionした 2023-12-14 11:58:51 +09:00
r-ca efb4a9f8a2 モジュール実装 2023-12-14 11:56:43 +09:00
r-ca 31799218a9 Insertを追加 2023-12-14 11:55:20 +09:00
r-ca 423993b53e WIP 2023-12-14 11:54:43 +09:00
r-ca b2410b2625 WIP 2023-12-14 11:54:05 +09:00
r-ca d47832ac82 getTagIdsを追加 2023-12-14 11:53:03 +09:00
r-ca d61104d1ab ArrayListやめた 2023-12-14 11:52:23 +09:00
r-ca 00983d49cd DocumentDebugインターフェースWIP 2023-12-14 11:46:50 +09:00
r-ca cd77da18a0 DocumentDebugクラス作成 2023-12-14 11:45:41 +09:00
r-ca f45900b464 Revert "WIP"
This reverts commit de1977e1ff.
2023-12-14 11:43:51 +09:00
r-ca cda0974d99 Revert "一旦コメントアウト"
This reverts commit c1ce3e0625.
2023-12-14 11:43:45 +09:00
r-ca c1ce3e0625 一旦コメントアウト 2023-12-14 11:43:35 +09:00
r-ca de1977e1ff WIP 2023-12-14 11:43:28 +09:00
r-ca ec08358fcc UI更新 2023-12-14 11:42:38 +09:00
r-ca d40a630487 コンストラクタ追加 2023-12-14 11:39:08 +09:00
r-ca f28e506060 TagListのConverterを実装した 2023-12-14 11:36:41 +09:00
r-ca 957ad6aacb TagListのConverterを実装した 2023-12-14 11:36:09 +09:00
r-ca 8196e9afcb DocumentのHiltモジュールを実装した 2023-12-14 11:32:22 +09:00
r-ca 2cd506d062 WIP エラー対処でnullを返すようにした 2023-12-14 11:30:17 +09:00
r-ca 1627e05fa5 DocumentDetail取得するロジック書いた 2023-12-14 11:29:57 +09:00
r-ca 028a00bde6 DocumentDetail取得するロジック書いた 2023-12-14 11:28:59 +09:00
r-ca fe843e0429 ArrayListやめた 2023-12-14 11:25:44 +09:00
r-ca d575dcdb10 ArrayListやめた 2023-12-14 11:25:12 +09:00
r-ca 8a1314446d ArrayListやめた 2023-12-14 11:24:36 +09:00
r-ca ca82fe5e55 Dao修正のクエリ修正 2023-12-14 11:13:44 +09:00
r-ca 374986816f Dao修正のクエリ修正 2023-12-14 11:13:25 +09:00
r-ca 5f731268b5 Dao修正のクエリ修正 2023-12-14 11:13:03 +09:00
r-ca 878480097a Converter実装 2023-12-14 11:10:02 +09:00
r-ca e033eb754d WIP 2023-12-14 11:09:11 +09:00
r-ca 9c30879084 TagDao: 全体的にArrayListに変更 2023-12-14 11:00:05 +09:00
r-ca 36b0884481 WIP 2023-12-14 10:59:28 +09:00
r-ca 0a9054deac WIP 2023-12-14 10:56:55 +09:00
r-ca 489ed3c4f8 修正 2023-12-14 10:56:21 +09:00
r-ca d28f03573d Metaの取得を1クエリで完結させたいのでDocumentEntityに移動 2023-12-14 10:56:13 +09:00
r-ca 5b9b9b5580 Metaの取得を1クエリで完結させたいのでDocumentEntityに移動 2023-12-14 10:55:21 +09:00
r-ca cb2ad03a80 Libraryにタグを追加した 2023-12-14 10:54:34 +09:00
r-ca 4dc68854d3 名前が紛らわしすぎたので*Entityにリネームした 2023-12-14 10:50:33 +09:00
r-ca c12319e103 WIP 2023-12-14 10:49:23 +09:00
r-ca 5101bb05dc DatabaseをInjectするようにした? 2023-12-14 10:46:31 +09:00
r-ca ab709a0273 :sourceモジュールを依存関係に追加 2023-12-14 10:45:32 +09:00
r-ca ceebd341b1 依存関係のコメント修正 2023-12-14 10:45:10 +09:00
r-ca cba87159ab data: DocumentリポジトリのImpl WIP 2023-12-14 10:42:22 +09:00
r-ca 1e3565405e data: DocumentリポジトリのインターフェースWIP 2023-12-14 10:40:25 +09:00
r-ca 24433528dc data: 依存関係にModelを追加 2023-12-14 10:40:10 +09:00
r-ca 1e0a9f47b6 data: クラス作成 2023-12-14 10:23:09 +09:00
r-ca 2cf3898f65 Module実装 2023-12-14 10:19:12 +09:00
r-ca 960f159a31 Impl実装 2023-12-14 10:18:24 +09:00
r-ca 922168c86b Impl実装WIP 2023-12-14 10:16:33 +09:00
r-ca 779a07ff26 インタフェース実装 2023-12-14 10:16:07 +09:00
r-ca 21b0212de7 インターフェースに変更(ミス) 2023-12-14 10:14:09 +09:00
r-ca 0c504da18c Revert "インターフェースに変更(ミス)"
This reverts commit 12d2a3c935.
2023-12-14 10:13:52 +09:00
r-ca 12d2a3c935 インターフェースに変更(ミス) 2023-12-14 10:13:03 +09:00
r-ca 5262253624 SharedPrefUtilsクラス作成 2023-12-14 10:12:43 +09:00
r-ca 6f962feef7 Getter/Setter 2023-12-14 04:33:23 +09:00
r-ca bacab14be6 Getter/Setter 2023-12-14 04:33:20 +09:00
r-ca e0a786764e 全体的に変更 2023-12-14 04:32:32 +09:00
r-ca 17bf162341 フルパスを返すGetterを追加 2023-12-14 04:28:10 +09:00
r-ca 0540f775d3 DocumentPathクラス作成 2023-12-14 04:24:48 +09:00
r-ca 2b04432a37 Getter/Setter作成 2023-12-14 04:24:38 +09:00
r-ca 0a4dbbabd9 Getter/Setter作成 2023-12-14 04:22:59 +09:00
r-ca 2f004502a1 DocumentTagのモデル作成WIP 2023-12-14 04:21:37 +09:00
r-ca 8b0a7232cc パッケージ名変更 2023-12-14 04:18:37 +09:00
r-ca fc4db3f86a DocumentTagモデル作成WIP 2023-12-14 04:18:23 +09:00
r-ca 58b7b274b8 Placeholder 2023-12-14 04:17:20 +09:00
r-ca d4f1d76763 DocumentMetaのモデル作成WIP 2023-12-14 04:17:13 +09:00
r-ca 250101c00a DocumentDetailのモデル作成WIP 2023-12-14 04:15:39 +09:00
r-ca 9270662842 パッケージ整理 2023-12-14 04:12:15 +09:00
r-ca d212e8d893 型を管理するモジュールを追加 2023-12-14 04:10:39 +09:00
r-ca 510d31544f 型を管理するモジュールを追加 2023-12-14 04:10:36 +09:00
r-ca e50a3bb8ce DeleteByIdを修正 2023-12-14 04:08:55 +09:00
r-ca e626829b5c DeleteByIdを修正 2023-12-14 04:08:44 +09:00
r-ca 2ab8999638 TagDao: Insert, Update, Delete実装 2023-12-14 04:08:01 +09:00
r-ca 8f118b7067 DocumentDao: Insert, Update, Delete実装 2023-12-14 04:06:54 +09:00
r-ca 8a0b6bd3db Hiltモジュール実装 2023-12-14 03:48:22 +09:00
r-ca bd17bf5f80 Providerなのでstaticに 2023-12-14 03:46:26 +09:00
r-ca 080f11c3e7 ビルドできないので一旦コメントアウト 2023-12-14 03:44:07 +09:00
r-ca 117ed40796 ビルドできないので一旦コメントアウト 2023-12-14 03:43:39 +09:00
r-ca 2188e55c5f ビルドできないので一旦コメントアウト 2023-12-14 03:43:20 +09:00
r-ca 49cc132f14 NonNullアノテーション追加 2023-12-14 03:41:33 +09:00
r-ca 4296ed6209 WIP DateTypeConverter実装 2023-12-14 03:40:58 +09:00
r-ca 8663b86fc6 WIP DateTypeConverter実装 2023-12-14 03:40:56 +09:00
r-ca c46ffd8454 DateTypeConverterクラス作成 2023-12-14 03:39:24 +09:00
r-ca cde4867b7e 主キーにNonNullアノテーションを追加 2023-12-14 03:37:20 +09:00
r-ca fdb2d535cd 主キーにNonNullアノテーションを追加 2023-12-14 03:36:37 +09:00
r-ca 6e8ad7f9fc 不要な依存関係の整理など 2023-12-14 03:36:02 +09:00
r-ca 0613c8284a モジュール構成変更 2023-12-14 03:33:56 +09:00
r-ca 08fafcfced プロバイダ作成 2023-12-14 03:32:02 +09:00
r-ca b463b61fd4 継承忘れ 2023-12-14 03:30:23 +09:00
r-ca 6e069a1579 WIP 2023-12-14 03:29:46 +09:00
r-ca 17cb6af538 変更 2023-12-14 03:27:48 +09:00
r-ca 6c1bd61240 デバッグメニューのパス取得ボタンで直接呼び出すようにしてみた 2023-12-14 03:26:51 +09:00
r-ca 52049d599a デバッグ用に一旦依存関係に追加 2023-12-14 03:21:22 +09:00
r-ca 57184a2c8b utils: placeholderの戻り値を間違えて変えてたので修正 2023-12-14 03:19:38 +09:00
r-ca c767f65683 utils: アプリのExternalStorageのパスを取得できるようにした 2023-12-14 03:18:51 +09:00
r-ca 2155edd15f utils: アプリのコンテキストを取得するようにした(アノテーション忘れ) 2023-12-14 03:17:26 +09:00
r-ca 2b97ecf1fd utils: アプリのコンテキストを取得するようにした 2023-12-14 03:16:38 +09:00
r-ca 6f3639702a utils: WIP Implクラスに全部Implementした 2023-12-14 03:15:44 +09:00
r-ca 62247033e9 utils: WIP リポジトリ実装 2023-12-14 03:14:55 +09:00
r-ca ee448ad2e5 (リファクタ機能に巻き込まれたファイル) 2023-12-14 03:10:26 +09:00
r-ca 6069d1eb1c utils: クラス作成 2023-12-14 03:10:02 +09:00
r-ca 9c1aeb0dbf utils: パッケージ整理 2023-12-14 03:08:51 +09:00
r-ca b9ae72aedd source: インターフェースに変更 2023-12-14 03:04:52 +09:00
r-ca 5180a51c74 source: クラス作成 2023-12-14 03:04:32 +09:00
r-ca 082166cc5d source: placeholder削除 2023-12-14 03:03:50 +09:00
r-ca 94e0ff7eed source: パッケージ整理 2023-12-14 03:03:36 +09:00
r-ca 5cf403a124 source: パッケージ整理 2023-12-14 03:00:39 +09:00
r-ca 8a789ffe7d source: WIP Database アノテーション付与 2023-12-14 02:59:32 +09:00
r-ca 26df200fe4 source: WIP Database 2023-12-14 02:58:48 +09:00
r-ca e19bfb7f09 source: Database 2023-12-14 02:57:25 +09:00
r-ca 2502cf64ec source: Dao: WIP, TagDao実装 2023-12-14 02:43:50 +09:00
r-ca 2ccc576c69 source: Dao: WIP, LibraryDao実装 2023-12-14 02:42:25 +09:00
r-ca b4ee93cd5c source: Dao: WIP, リネーム 2023-12-14 02:40:56 +09:00
r-ca 6cadc2d75b source: Dao: WIP, DocumentDao作成(リネーム) 2023-12-14 02:40:30 +09:00
r-ca 7b8e7a3e48 source: Dao: WIP, ファイル作成 2023-12-14 02:36:40 +09:00
r-ca be5d7f7214 source: placeholder削除 2023-12-14 02:31:36 +09:00
r-ca 970fbdc270 source: placeholder削除 2023-12-14 02:31:33 +09:00
r-ca ec3618deb3 source: WIP, 項目名追加 2023-12-14 02:30:48 +09:00
r-ca 4eb5b3ad08 source: WIP, Tagエンティティ修正 2023-12-14 02:30:32 +09:00
r-ca 7124d089a7 source: WIP, Tagエンティティ実装 2023-12-14 02:30:12 +09:00
r-ca e108cd7834 source: WIP, インポート忘れ 2023-12-14 02:29:25 +09:00
r-ca 90362ad0f4 source: WIP, 型修正 2023-12-14 02:29:10 +09:00
r-ca e05de15865 source: WIP, 項目名追加 2023-12-14 02:28:51 +09:00
r-ca 8d86197270 source: WIP, Libraryエンティティ実装 2023-12-14 02:28:32 +09:00
r-ca 984b82d4a1 source: WIP, 列名の指定を追加した 2023-12-14 02:26:43 +09:00
r-ca 7c3588275c source: WIP, Documentエンティティ作成 2023-12-14 02:25:26 +09:00
r-ca 02ab3467ed source: WIP, エンティティ作成 2023-12-14 02:23:52 +09:00
r-ca 7c1ab534d8 source: 依存関係にJGitを追加 2023-12-14 02:21:44 +09:00
r-ca 3394148c93 source: 依存関係にRoomを追加 2023-12-14 02:20:37 +09:00
r-ca c8cec5d002 source: 依存関係にHiltを追加 2023-12-14 02:20:16 +09:00
r-ca ad982378ed source: パッケージ作成 2023-12-14 02:18:25 +09:00
r-ca 4f50861280 source: パッケージ作成 2023-12-14 02:17:23 +09:00
r-ca f8c4ee9e6c :sourceモジュール作成 2023-12-14 02:15:12 +09:00
r-ca cbe5d1069a パッケージ構成変更 2023-12-14 01:20:21 +09:00
r-ca d222d77a91 RoomUtils WIP 2023-12-13 18:48:44 +09:00
r-ca 0804bfb8f6 Repositories Dao作成 2023-12-13 18:44:51 +09:00
r-ca b49dda2e18 Databaseクラス修正 2023-12-13 18:43:53 +09:00
r-ca daef06810b Databaseクラス作成WIP 2023-12-13 18:43:16 +09:00
r-ca 6786fbf569 Documents Dao作成WIP 2023-12-13 18:43:04 +09:00
r-ca df0386e349 Documentsエンティティ修正 2023-12-13 18:42:57 +09:00
r-ca e9689bb99a Documentsエンティティ修正 2023-12-13 18:33:50 +09:00
r-ca 22d92f87ce Column名を追加 2023-12-13 18:32:40 +09:00
r-ca ab4a88e4bd リポジトリを管理するエンティティを作成 WIP 2023-12-13 18:29:43 +09:00
r-ca 6983353912 リポジトリを管理するエンティティを作成 2023-12-13 18:16:49 +09:00
r-ca d561bf2ea6 リポジトリ作成ロジック修正 2023-12-12 12:41:20 +09:00
r-ca c4427313b0 リポジトリ作成ロジック修正 2023-12-12 12:39:37 +09:00
r-ca 4df58a5af9 リポジトリ作成ロジック修正 2023-12-12 12:27:44 +09:00
r-ca 7e262b6b57 ファイル書き込みテスト 2023-12-12 12:24:14 +09:00
r-ca 20575e115c コンストラクタインジェクションできなかったので修正 2023-12-12 12:13:25 +09:00
r-ca a0a730a6a9 JGitをMaven Repositoryから直接インポートするようにした 2023-12-12 12:08:26 +09:00
r-ca 0e1a2c78a2 ロジック修正 2023-12-12 11:49:22 +09:00
r-ca 6b1c41bd30 修正 2023-12-12 11:49:18 +09:00
r-ca 73a1373908 Debugモジュールの依存関係にJGitを追加 2023-12-12 11:48:11 +09:00
r-ca e5bfd5142b ロジック実装 WIP 2023-12-12 11:47:16 +09:00
r-ca 57c93abeef WIP Repository Debugger UI 2023-12-12 11:44:30 +09:00
r-ca 661da2f5ee Fragment整理 2023-12-12 11:41:24 +09:00
r-ca a2c4710654 WIP Repository Debugger作成 2023-12-12 11:40:26 +09:00
r-ca 70a7ca5d08 WIP Repository Debugger作成 2023-12-12 11:40:05 +09:00
r-ca 28956b24da WIP Repository Debugger作成 2023-12-12 11:39:40 +09:00
r-ca c782960949 DebugFuncモジュール作成 2023-12-12 11:37:11 +09:00
r-ca 31fcdd788a DebugFunc実装 2023-12-12 11:35:28 +09:00
r-ca ef6431afbc デバッグ用Repository/Module/Impl作成 2023-12-12 11:32:47 +09:00
r-ca 5b227ee089 RepoUtils実装WIP 2023-12-12 11:32:34 +09:00
r-ca 8de21d751e UtilsモジュールのfileUtilsを使用するように 2023-12-12 11:27:30 +09:00
r-ca eb79cffb34 Utilsモジュールを依存に追加 2023-12-12 11:26:10 +09:00
r-ca 2c1f1c6828 移動したので元を削除 2023-12-12 11:25:11 +09:00
r-ca c9f3510745 Module作成 2023-12-12 11:24:25 +09:00
r-ca 309b425e2c namespaces間違えていたので修正 2023-12-12 11:06:06 +09:00
r-ca 7add8bcc39 ファイル名修正 2023-12-12 11:03:04 +09:00
r-ca c5db820e1d Utilsモジュールの依存にHiltを追加 2023-12-12 11:01:49 +09:00
r-ca 119140a6bc InternalUtilsなモジュールに移植WIP 2023-12-12 11:00:26 +09:00
r-ca 6bc741d0b0 パッケージ名変更など 2023-12-12 10:52:49 +09:00
r-ca 1682e06d24 Internal Utilsを通してデータを返すように 2023-12-12 10:47:13 +09:00
r-ca 729600917c InternalUtils 2023-12-12 10:45:55 +09:00
r-ca 141bddd504 InternalUtils 2023-12-12 10:43:30 +09:00
r-ca ee53b48d96 InternalUtilsのモジュールを作成 2023-12-12 10:38:22 +09:00
r-ca 7ec0492c0c Revert "WIP"
This reverts commit 5f35de732d.
2023-12-12 10:36:11 +09:00
r-ca 5f35de732d WIP 2023-12-12 10:36:02 +09:00
r-ca bb667a3d37 Revert "WIP"
This reverts commit 82fcf044cf.
2023-12-12 10:29:35 +09:00
r-ca 82fcf044cf WIP 2023-12-12 10:29:27 +09:00
r-ca 065d3594ac Module実装 2023-12-12 10:24:53 +09:00
r-ca 5aed05adc4 リファクタリング 2023-12-12 10:23:13 +09:00
r-ca 8f7a420ae3 RequireNonNullした 2023-12-12 10:22:28 +09:00
r-ca 29641c370e DataモジュールのminSdkを26に変更 2023-12-12 10:21:00 +09:00
r-ca efb2484569 Commons: リポジトリに引数なしを追加、ロジック実装 2023-12-12 10:18:50 +09:00
r-ca 4c958bb333 Commons: リポジトリ実装 2023-12-12 10:14:12 +09:00
r-ca 6ca1fd6097 Commonsリポジトリ作成 2023-12-12 10:12:32 +09:00
r-ca 52087c3b9e Fix, ファイルパス確認してみた 2023-12-12 10:09:17 +09:00
r-ca 5c22b2731b UI変更 2023-12-12 10:00:03 +09:00
r-ca 63f4a8229a WIP 2023-12-12 09:59:05 +09:00
r-ca 08149e9e7e テキスト修正 2023-12-12 09:59:00 +09:00
r-ca 6fb08cfa99 パッケージ作成 2023-12-11 16:18:55 +09:00
r-ca a28feee4dc WIP 2023-12-11 16:18:46 +09:00
r-ca a3923f7a3a WIP 2023-12-11 16:18:42 +09:00
r-ca d7f73d9207 WIP Entity作成 2023-12-11 16:07:35 +09:00
r-ca c182c97390 Dataモジュールの依存関係にRoomを追加 2023-12-11 16:04:25 +09:00
r-ca 64e85478bd WIP 2023-12-11 16:02:36 +09:00
r-ca 0402909473 Daoパッケージ作成 2023-12-11 16:00:12 +09:00
r-ca 6d40e00126 Entityパッケージ作成 2023-12-11 15:59:39 +09:00
r-ca 85282a2a34 ディレクトリ整理 2023-12-11 15:59:03 +09:00
206 changed files with 4368 additions and 1368 deletions

No files matched your search

@@ -0,0 +1,17 @@
---
name: 不具合用テンプレート
about: 不具合用テンプレート
title: "[BUG]: "
labels: バグ
assignees: ''
---
# 概要
<!-- Issueの概要 -->
# 詳細
<!-- バグの詳細 -->
# 影響箇所
<!-- 予想される影響箇所(省略可) -->
@@ -0,0 +1,17 @@
---
name: 改善用テンプレート
about: 改善用テンプレート
title: "[IMPROVE]"
labels: ''
assignees: ''
---
# 概要
<!-- Issueの概要 -->
# 詳細
<!-- 改善内容の詳細 -->
# 影響箇所
<!-- 予想される影響箇所(省略可) -->
@@ -0,0 +1,20 @@
---
name: 新機能用テンプレート
about: 新規能用テンプレート
title: ''
labels: 新機能
assignees: ''
---
# 概要
<!-- Issueの概要 -->
# 詳細
<!-- 機能の詳細 -->
# 関連Issue
<!-- 関連するIssueがあれば -->
# 影響箇所
<!-- 予想される影響箇所(省略可) -->
+18
View File
@@ -0,0 +1,18 @@
# 概要
<!-- PRの概要 -->
# 関連Issue
- #000 <!-- 関連するIssueを指定(なければ省略可) -->
# 詳細
<!-- 詳細 -->
# 影響箇所
<!-- 予想される影響箇所 -->
# チェック
<!-- 参考用, 全てにチェックがついている必要があるわけではありません -->
- [ ] 機能として完成している
- [ ] WIP(Work in progress: 作業中)
- [ ] 正常にビルド/起動ができる
- [ ] 既存の機能を壊していない
+12 -5
View File
@@ -1,10 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<value>
<entry key="app">
<State />
</entry>
</value>
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="ZY227DCBHN" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-12-21T04:53:14.729902700Z" />
</component>
</project>
+8
View File
@@ -4,6 +4,14 @@
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2023-12-18T03:36:14.973846Z">
<Target type="DEFAULT_BOOT">
<handle>
<DeviceId pluginId="PhysicalDevice" identifier="serial=ZY22H7V3G7" />
</handle>
</Target>
</DropdownSelection>
<DialogSelection />
</SelectionState>
</selectionStates>
</component>
+8
View File
@@ -4,6 +4,7 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="jbr-17" />
<option name="modules">
@@ -22,6 +23,13 @@
<option value="$PROJECT_DIR$/feature/library" />
<option value="$PROJECT_DIR$/feature/scan" />
<option value="$PROJECT_DIR$/feature/search" />
<option value="$PROJECT_DIR$/model" />
<option value="$PROJECT_DIR$/processor" />
<option value="$PROJECT_DIR$/shared" />
<option value="$PROJECT_DIR$/shared/icon" />
<option value="$PROJECT_DIR$/shared/ui" />
<option value="$PROJECT_DIR$/source" />
<option value="$PROJECT_DIR$/utils" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
+1 -1
View File
@@ -1,6 +1,6 @@
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
+5 -1
View File
@@ -1,7 +1,11 @@
# Lacerta
WIP
## モジュール設計
![Untitled Diagram drawio(2)](https://github.com/lacerta-doc/Lacerta/assets/66072112/47006ffd-0fd3-4eec-8a28-fb9629b990bf)
![Untitled Diagram(2)](https://github.com/lacerta-doc/Lacerta/assets/66072112/9daabaca-5cdc-49f8-ac66-196c588a47c9)
## メモ
- アイコン: Google Material Icons https://fonts.google.com/icons (Weight:300, Grade:0, Optical size: 24px)
## コーディング規則/推奨(WIP)
### 規則
+28 -1
View File
@@ -11,13 +11,35 @@ android {
applicationId "one.nem.lacerta"
minSdk 26
targetSdk 33
// ベータ, Internal, Release問わず毎回インクリメントする
// https://developer.android.com/studio/publish/versioning#versioningsettings
versionCode 1
versionName "1.0"
versionName "0.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug { // 開発メンバー用
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
matchingFallbacks = ['release']
}
internal_release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
matchingFallbacks = ['release']
}
beta_release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
matchingFallbacks = ['release']
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
@@ -58,6 +80,11 @@ dependencies {
// implementation project(':data:source:preference')
//
implementation project(':data')
implementation project(':shared:ui')
implementation project(':shared:icon')
// Hilt (DI)
implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler
+21
View File
@@ -2,6 +2,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-permission android:name="android.permission.CAMERA" />
<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
</queries>
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
@@ -22,6 +33,16 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="one.nem.lacerta.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>
@@ -11,6 +11,8 @@ public class LacertaApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// DynamicColorを有効化
DynamicColors.applyToActivitiesIfAvailable(this);
}
}
+2 -1
View File
@@ -4,6 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/Theme.Lacerta"
tools:context=".MainActivity">
<androidx.fragment.app.FragmentContainerView
@@ -17,7 +18,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/main_nav"
tools:layout="@layout/fragment_debug_menu" />
tools:layout="@layout/fragment_debug_menu_container" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_nav"
+12 -1
View File
@@ -1,9 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@id/feature_home_navigation"
android:icon="@drawable/home_24px"
android:title="Home"/>
<item
android:id="@id/feature_library_navigation"
android:icon="@drawable/folder_24px"
android:title="Library"/>
<item
android:id="@id/feature_debug_navigation"
android:title="DebugMenu"/>
android:icon="@drawable/developer_mode_24px"
android:title="Debug menu"/>
</menu>
+4
View File
@@ -6,5 +6,9 @@
<include app:graph="@navigation/feature_debug_navigation" />
<include app:graph="@navigation/feature_library_navigation" />
<include app:graph="@navigation/feature_home_navigation" />
</navigation>
-7
View File
@@ -1,7 +0,0 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.Lacerta" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>
-61
View File
@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- UI -->
<color name="ui_bg">@android:color/system_neutral1_50</color>
<color name="ui_fg">@android:color/system_neutral1_900</color>
<color name="ui_fg_disabled">@android:color/system_neutral1_400</color>
<color name="ui_fg_secondary">@android:color/system_neutral2_600</color> <!-- A12 B2: 700 -->
<color name="ui_accent">@color/accent_dark</color>
<color name="ui_accent_inverse">@color/accent_light</color>
<color name="ui_accent_variant">@color/accent_variant_dark</color>
<color name="ui_surface">@android:color/system_accent1_50</color>
<color name="ui_primary_surface">@android:color/system_accent1_100</color>
<color name="changelog_bg">@android:color/system_neutral2_50</color>
<color name="changelog_border">@android:color/system_neutral1_400</color>
<color name="error">#DA000E</color>
<color name="success">#008753</color>
<!-- Launcher icon -->
<color name="launcher_fg">@android:color/system_neutral2_700</color>
<color name="launcher_bg">@android:color/background_light</color>
<color name="accent_light">@android:color/system_accent1_300</color>
<color name="accent_dark">@android:color/system_accent1_600</color>
<color name="accent_variant_light">@android:color/system_accent3_100</color>
<color name="accent_variant_dark">@android:color/system_accent3_600</color>
<!-- Material3 colors -->
<color name="colorPrimaryLight">@color/material_dynamic_primary40</color>
<color name="colorPrimaryDark">@color/material_dynamic_primary80</color>
<color name="colorPrimaryContainerLight">@color/material_dynamic_primary90</color>
<color name="colorPrimaryContainerDark">@color/material_dynamic_primary30</color>
<color name="colorOnPrimaryContainerLight">@color/material_dynamic_primary10</color>
<color name="colorOnPrimaryContainerDark">@color/material_dynamic_primary90</color>
<color name="colorSecondaryContainerLight">@color/material_dynamic_secondary90</color>
<color name="colorSecondaryContainerDark">@color/material_dynamic_secondary90</color>
<color name="colorOnSecondaryContainerLight">@color/material_dynamic_secondary10</color>
<color name="colorOnSecondaryContainerDark">@color/material_dynamic_secondary10</color>
<color name="colorTertiaryLight">@color/material_dynamic_tertiary40</color>
<color name="colorTertiaryDark">@color/material_dynamic_tertiary80</color>
<color name="colorOnTertiaryLight">@color/material_dynamic_primary100</color>
<color name="colorOnTertiaryDark">@color/material_dynamic_tertiary20</color>
<color name="colorTertiaryContainerLight">@color/material_dynamic_tertiary90</color>
<color name="colorTertiaryContainerDark">@color/material_dynamic_tertiary30</color>
<color name="colorOnTertiaryContainerLight">@color/material_dynamic_tertiary10</color>
<color name="colorOnTertiaryContainerDark">@color/material_dynamic_tertiary90</color>
<color name="colorSurfaceLight">@color/material_dynamic_neutral99</color>
<color name="colorSurfaceDark">@color/material_dynamic_neutral10</color>
<color name="colorOnSurfaceLight">@color/material_dynamic_neutral10</color>
<color name="colorOnSurfaceDark">@color/material_dynamic_neutral90</color>
<color name="colorSurfaceVariantLight">@color/material_dynamic_neutral_variant90</color>
<color name="colorSurfaceVariantDark">@color/material_dynamic_neutral_variant30</color>
<color name="colorOnSurfaceVariantLight">@color/material_dynamic_neutral_variant30</color>
<color name="colorOnSurfaceVariantDark">@color/material_dynamic_neutral_variant80</color>
<color name="colorOutlineLight">@color/material_dynamic_neutral_variant50</color>
<color name="colorOutlineDark">@color/material_dynamic_neutral_variant60</color>
<color name="colorErrorContainerLight">#FFF9DEDC</color>
<color name="colorErrorContainerDark">#FF8C1D18</color>
<color name="colorOnErrorContainerLight">#FF410E0B</color>
<color name="colorOnErrorContainerDark">#FFF9DEDC</color>
</resources>
-9
View File
@@ -1,9 +0,0 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.Lacerta" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
<style name="Theme.Lacerta" parent="Base.Theme.Lacerta" />
</resources>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<cache-path name="cache" path="." />
</paths>
+3
View File
@@ -34,4 +34,7 @@ dependencies {
androidTestImplementation libs.androidx.test.espresso.core
implementation 'com.websitebeaver:documentscanner:1.0.0'
implementation project(':shared:ui')
implementation project(':model')
}
@@ -0,0 +1,55 @@
package one.nem.lacerta.component.scanner;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
public class CaptureResultAdapter extends RecyclerView.Adapter<CaptureResultAdapter.ViewHolder> {
private final ArrayList<CapturedData> results;
public CaptureResultAdapter(ArrayList<CapturedData> results) {
this.results = results;
}
@Override
public CaptureResultAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_scanner_component_manager_stub, parent, false);
return new CaptureResultAdapter.ViewHolder(view);
}
@Override
public void onBindViewHolder(CaptureResultAdapter.ViewHolder holder, int position) {
CapturedData result = results.get(position);
holder.textViewPath.setText(result.getPath());
holder.textViewResolutionHeight.setText(result.getResolutionHeight());
holder.textViewResolutionWidth.setText(result.getResolutionWidth());
holder.imageView.setImageBitmap(result.getBitmap());
}
@Override
public int getItemCount() {
return results.size();
}
public class ViewHolder extends RecyclerView.ViewHolder {
public TextView textViewPath;
public TextView textViewResolutionHeight;
public TextView textViewResolutionWidth;
public ImageView imageView;
public ViewHolder(View view) {
super(view);
textViewPath = view.findViewById(R.id.textViewPath);
textViewResolutionHeight = view.findViewById(R.id.textViewResHeight);
textViewResolutionWidth = view.findViewById(R.id.textViewResWidth);
imageView = view.findViewById(R.id.imageViewResult);
}
}
}
@@ -0,0 +1,44 @@
package one.nem.lacerta.component.scanner;
import android.graphics.Bitmap;
public class CapturedData {
private String path;
private String resolutionHeight;
private String resolutionWidth;
private String size;
private Bitmap bitmap;
// Constructor
public CapturedData(String path, String resolutionHeight, String resolutionWidth, String size, Bitmap bitmap) {
this.path = path;
this.resolutionHeight = resolutionHeight;
this.resolutionWidth = resolutionWidth;
this.size = size;
this.bitmap = bitmap;
}
// Getters
public String getPath() {
return path;
}
public String getResolutionHeight() {
return resolutionHeight;
}
public String getResolutionWidth() {
return resolutionWidth;
}
public String getSize() {
return size;
}
public Bitmap getBitmap() {
return bitmap;
}
}
@@ -0,0 +1,144 @@
package one.nem.lacerta.component.scanner;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.core.content.FileProvider;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Environment;
import android.provider.MediaStore;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Locale;
/**
* A simple {@link Fragment} subclass.
* Use the {@link ScannerDataManagerStubFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class ScannerDataManagerStubFragment extends Fragment {
// TODO-rca: 時間があったらcacheを使うようにする?
// Results
private ArrayList<CapturedData> results = new ArrayList<>();
private Uri photoURI;
private final ActivityResultLauncher<Intent> cameraLauncher = registerForActivityResult(
new ActivityResultContracts.StartActivityForResult(),
result -> {
if (result.getResultCode() == Activity.RESULT_OK) {
try {
if (getActivity() == null) {
Log.d("ScannerDataManagerStubFragment", "getActivity() is null");
return;
}
if (photoURI == null) {
Log.d("ScannerDataManagerStubFragment", "photoURI is null");
Toast.makeText(getActivity(), "photoURI is null", Toast.LENGTH_LONG).show();
return;
}
Bitmap imageBitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), photoURI);
results.add(new CapturedData("Placeholder", Integer.toString(imageBitmap.getHeight()), Integer.toString(imageBitmap.getWidth()), "Placeholder", imageBitmap));
} catch (IOException e) {
Log.e("ScannerDataManagerStubFragment", "Error occurred while reading the file", e);
}
}
}
);
public ScannerDataManagerStubFragment() {
// Required empty public constructor
}
// TODO: Rename and change types and number of parameters
public static ScannerDataManagerStubFragment newInstance() {
ScannerDataManagerStubFragment fragment = new ScannerDataManagerStubFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_scanner_data_manager_stub, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
view.findViewById(R.id.button_call_camera).setOnClickListener(v -> {
Log.d("ScannerDataManagerStubFragment", "button_call_camera clicked");
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (takePictureIntent.resolveActivity(getActivity().getPackageManager()) != null) {
File photoFile = null;
try {
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.US).format(new Date());
String imageFileName = "JPEG_" + timeStamp + "_";
File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);
photoFile = File.createTempFile(imageFileName, ".jpg", storageDir);
} catch (IOException ex) {
Log.e("ScannerDataManagerStubFragment", "Error occurred while creating the file", ex);
}
if (photoFile != null) {
photoURI = FileProvider.getUriForFile(getActivity(), "one.nem.lacerta.provider", photoFile);
takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
cameraLauncher.launch(takePictureIntent);
}
else {
Log.d("ScannerDataManagerStubFragment", "photoFile is null");
}
}
else {
Log.d("ScannerDataManagerStubFragment", "camera not available");
}
updateResults();
});
}
@Override
public void onResume() {
super.onResume();
Log.d("ScannerDataManagerStubFragment", "onResume");
updateResults();
}
public void updateResults() {
Log.d("ScannerDataManagerStubFragment", "updateResults");
// TODO-rca: エラーハンドリング
RecyclerView recyclerView = getView().findViewById(R.id.result_recycler_view);
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
recyclerView.setAdapter(new CaptureResultAdapter(this.results));
}
}
@@ -1,75 +0,0 @@
package one.nem.lacerta.component.scanner;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import androidx.constraintlayout.utils.widget.ImageFilterView;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.websitebeaver.documentscanner.DocumentScanner;
/**
* A simple {@link Fragment} subclass.
* Use the {@link ScannerScanFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class ScannerScanFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
// private static final String MAX_SCAN_COUNT = "max_scan_count"; // 規定値
// TODO: Rename and change types of parameters
private String mParam1;
public ScannerScanFragment() {
// Required empty public constructor
}
public static ScannerScanFragment newInstance(String param1) {
ScannerScanFragment fragment = new ScannerScanFragment();
Bundle args = new Bundle();
// args.putString(MAX_SCAN_COUNT, param1);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
// mParam1 = getArguments().getString(MAX_SCAN_COUNT);
// scan(Integer.parseInt(mParam1));
}
}
public DocumentScanner getDocumentScanner() {
return new DocumentScanner(
this,
(croppedImageResults) -> {
// display the first cropped image
croppedImageView.setImageBitmap(
BitmapFactory.decodeFile(croppedImageResults.get(0))
);
return null;
},
(errorMessage) -> {
// an error happened
return null;
},
() -> {
// user canceled document scan
return null;
},
null,
null,
null
);
}
}
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/Theme.Lacerta"
tools:context=".ScannerDataManagerStubFragment" >
<LinearLayout
android:id="@+id/action_button_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.button.MaterialButton
android:id="@+id/button_call_camera"
style="@style/Widget.Material3.Button.IconButton.Filled"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16px"
android:layout_weight="1"
android:text="Call camera" />
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/result_recycler_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/action_button_container" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -1,133 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<androidx.constraintlayout.utils.widget.ImageFilterView
android:id="@+id/cropped_image_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintBottom_toTopOf="@+id/linear_layout_buttons">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_margin="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:text="Saturation" />
<SeekBar
android:id="@+id/seekBar_saturation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="200"
android:progress="100"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_margin="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:text="Contrast" />
<SeekBar
android:id="@+id/seekBar_contrast"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="200"
android:progress="100"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_margin="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:text="Brightness" />
<SeekBar
android:id="@+id/seekBar_brightness"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="200"
android:progress="100"
android:layout_weight="1"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_margin="12dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:text="Warmth" />
<SeekBar
android:id="@+id/seekBar_warmth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="500"
android:progress="100"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/linear_layout_buttons"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<Button
android:id="@+id/button_save_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:insetLeft="12dp"
android:insetRight="12dp"
android:text="Save Image" />
<Button
android:id="@+id/button_kill_me"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:insetLeft="12dp"
android:insetRight="12dp"
android:text="Kill me" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="24px">
<ImageView
android:id="@+id/imageViewResult"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:srcCompat="@android:drawable/presence_video_online"
android:adjustViewBounds="true"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageViewResult">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="Resolution:"
android:textIsSelectable="false"
android:textSize="16sp" />
<TextView
android:id="@+id/textViewResHeight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Height"
android:textIsSelectable="false"
android:textSize="16sp" />
<TextView
android:id="@+id/textViewResWidth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Width"
android:textIsSelectable="false"
android:textSize="16sp" />
</LinearLayout>
<TextView
android:id="@+id/textViewPath"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Path"
android:textIsSelectable="false"
android:textSize="16sp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
+16 -3
View File
@@ -8,7 +8,7 @@ android {
compileSdk 34
defaultConfig {
minSdk 24
minSdk 26
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
@@ -38,6 +38,19 @@ dependencies {
implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler
// libsディレクトリにあるライブラリを追加
implementation fileTree(dir: 'libs', include: ['*.jar'])
// JGit
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
// Room
implementation libs.androidx.room.runtime
annotationProcessor libs.androidx.room.compiler
// Utilsモジュール
implementation project(':utils')
// 型モジュール
implementation project(':model')
// データソースモジュール
implementation project(':source')
}
Binary file not shown.
@@ -0,0 +1,46 @@
package one.nem.lacerta.data;
import java.lang.reflect.Array;
import java.util.ArrayList;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.model.document.tag.DocumentTag;
/**
* ドキュメントのデータを取得する
*/
public interface Document {
ArrayList<DocumentMeta> getAllDocumentMetas(int limit);
ArrayList<DocumentMeta> getAllDocumentMetas(int limit, int offset);
/**
* 更新の新しいドキュメントから順に並べてlimit件取得する
* @param limit 取得する上限数
*/
ArrayList<DocumentMeta> getRecentDocumentMetas(int limit);
/**
* 更新の新しいドキュメントから順に並べてoffset位置からlimit件取得する
* @param limit 取得する上限数
* @param offset 取得するオフセット
*/
ArrayList<DocumentMeta> getRecentDocumentMetas(int limit, int offset);
/**
* ドキュメントIDからDocumentDetailを取得する
* @param id ドキュメントID
*/
DocumentDetail getDocumentDetail(String id);
/**
* DocumentMetaからDocumentDetailを取得する
* @param meta DocumentMeta
*/
DocumentDetail getDocumentDetailByMeta(DocumentMeta meta); // 簡単に使えるように
DocumentDetail createDocumentByMeta(DocumentMeta meta);
}
@@ -0,0 +1,12 @@
package one.nem.lacerta.data;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.model.document.tag.DocumentTag;
public interface DocumentDebug {
void insertDocument(DocumentMeta meta, DocumentDetail detail);
}
@@ -1,26 +0,0 @@
package one.nem.lacerta.data.impl;
import android.os.Build;
import one.nem.lacerta.data.repository.DeviceMeta;
import one.nem.lacerta.data.model.DeviceMetaModel;
import javax.inject.Inject;
public class DeviceMetaImpl implements DeviceMeta{
@Inject
public DeviceMetaImpl() {
}
public DeviceMetaModel getDeviceMeta() {
DeviceMetaModel deviceMetaModel = new DeviceMetaModel(
Build.MANUFACTURER,
Build.MODEL,
Build.VERSION.RELEASE,
Build.VERSION.SDK_INT
);
return deviceMetaModel;
}
}
@@ -0,0 +1,47 @@
package one.nem.lacerta.data.impl;
import java.util.List;
import javax.inject.Inject;
import one.nem.lacerta.data.DocumentDebug;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.source.database.entity.DocumentEntity;
import one.nem.lacerta.source.database.entity.LibraryEntity;
import one.nem.lacerta.source.database.entity.TagEntity;
import one.nem.lacerta.source.database.LacertaDatabase;
public class DocumentDebugImpl implements DocumentDebug{
@Inject
LacertaDatabase database;
@Inject
public DocumentDebugImpl() {
}
public void insertDocument(DocumentMeta meta, DocumentDetail detail) {
DocumentEntity documentEntity = new DocumentEntity();
LibraryEntity libraryEntity = new LibraryEntity();
documentEntity.id = meta.getId();
documentEntity.title = meta.getTitle();
documentEntity.createdAt = meta.getCreatedAt();
documentEntity.updatedAt = meta.getUpdatedAt();
documentEntity.author = detail.getAuthor();
documentEntity.defaultBranch = detail.getDefaultBranch();
// ArrayListからListに変換
documentEntity.tagIds = meta.getTagIds();
libraryEntity.id = meta.getId();
libraryEntity.path = "Placeholder";
libraryEntity.rootPath = "Placeholder";
database.documentDao().insert(documentEntity);
database.libraryDao().insert(libraryEntity);
}
}
@@ -0,0 +1,141 @@
package one.nem.lacerta.data.impl;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import one.nem.lacerta.data.Document;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.model.document.tag.DocumentTag;
import one.nem.lacerta.source.database.LacertaDatabase;
import one.nem.lacerta.source.database.entity.DocumentEntity;
import one.nem.lacerta.source.database.entity.LibraryEntity;
import one.nem.lacerta.source.database.entity.TagEntity;
import one.nem.lacerta.source.jgit.JGitRepository;
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
public class DocumentImpl implements Document{
private LacertaDatabase database;
@Inject
public DocumentImpl(LacertaDatabase database) {
this.database = database;
}
@Inject
JGitRepository jGitRepository;
@Inject
DeviceInfoUtils deviceInfoUtils;
@Override
public ArrayList<DocumentMeta> getAllDocumentMetas(int limit) {
ArrayList<DocumentMeta> documentMetas = new ArrayList<>();
List<DocumentEntity> documentEntities = database.documentDao().getAllWithLimit(limit);
for (DocumentEntity documentEntity : documentEntities) {
// タグ取得
// TODO-rca: 切り出すべきかも?
List<TagEntity> tagEntities = database.tagDao().findByIds(documentEntity.tagIds);
ArrayList<DocumentTag> documentTags = new ArrayList<>();
for (TagEntity tagEntity : tagEntities) {
documentTags.add(new DocumentTag(tagEntity.id, tagEntity.tagName, tagEntity.color));
}
// 組み立て処理
// 可読性が終わるのでコンストラクタはつかわないほうがいいかも?
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.setId(documentEntity.id);
documentMeta.setTitle(documentEntity.title);
documentMeta.setCreatedAt(documentEntity.createdAt);
documentMeta.setUpdatedAt(documentEntity.updatedAt);
documentMeta.setTags(documentTags);
documentMetas.add(documentMeta);
}
return documentMetas;
}
@Override
public ArrayList<DocumentMeta> getAllDocumentMetas(int limit, int offset) {
return null; // TODO-rca: 実装する
}
@Override
public ArrayList<DocumentMeta> getRecentDocumentMetas(int limit) {
// ArrayList<DocumentMeta> documentMetas = new ArrayList<>();
// database.documentDao().
// TODO-rca: 履歴取得するDao実装する
return null;
}
@Override
public ArrayList<DocumentMeta> getRecentDocumentMetas(int limit, int offset) {
return null;
}
@Override
public DocumentDetail getDocumentDetail(String id) {
DocumentDetail documentDetail = new DocumentDetail();
DocumentEntity documentEntity = database.documentDao().findById(id);
// タグ取得
// TODO-rca: 切り出すべきかも?
List<TagEntity> tagEntities = database.tagDao().findByIds(documentEntity.tagIds);
ArrayList<DocumentTag> documentTags = new ArrayList<>();
for (TagEntity tagEntity : tagEntities) {
documentTags.add(new DocumentTag(tagEntity.id, tagEntity.tagName, tagEntity.color));
}
// パス取得
// TODO-rca: 切り出すべきかも?
LibraryEntity libraryEntity = database.libraryDao().findById(id);
DocumentPath documentPath = new DocumentPath(libraryEntity.rootPath, libraryEntity.path);
// リポジトリ取得
documentDetail.setRepository(jGitRepository.getRepository(id)); // TODO-rca: エラーハンドリング
// 組み立て処理
// 可読性が終わるのでコンストラクタはつかわないほうがいいかも?
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.setId(documentEntity.id);
documentMeta.setTitle(documentEntity.title);
documentMeta.setCreatedAt(documentEntity.createdAt);
documentMeta.setUpdatedAt(documentEntity.updatedAt);
documentMeta.setTags(documentTags);
documentDetail.setMeta(documentMeta);
documentDetail.setAuthor(documentEntity.author);
documentDetail.setPath(documentPath);
documentDetail.setDefaultBranch(documentEntity.defaultBranch);
return documentDetail;
}
@Override
public DocumentDetail getDocumentDetailByMeta(DocumentMeta meta) {
return getDocumentDetail(meta.getId()); // TODO-rca: 効率悪いのでMetaはもらった物を使うようにする(処理を切り分ける?)
}
@Override
public DocumentDetail createDocumentByMeta(DocumentMeta meta) {
DocumentDetail documentDetail = new DocumentDetail();
documentDetail.setMeta(meta);
documentDetail.setAuthor("author"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする or Gitの設定を参照するようにする
documentDetail.setPath(new DocumentPath(deviceInfoUtils.getExternalStorageDirectoryString(), meta.getId()));
documentDetail.setDefaultBranch("master"); // TODO-rca: SharedPrefを扱う機能を作ってそこから取得するようにする?
return documentDetail;
}
}
@@ -1,24 +0,0 @@
package one.nem.lacerta.data.impl;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import one.nem.lacerta.data.model.documents.DocumentMeta;
import one.nem.lacerta.data.repository.Documents;
public class DocumentsImpl implements Documents {
@Inject
public DocumentsImpl() {
}
public ArrayList<DocumentMeta> getRecentDocuments(int limit) {
return null; // TODO-rca:
}
public ArrayList<DocumentMeta> getStarredDocuments(int limit) {
return null; // TODO-rca:
}
}
@@ -1,26 +0,0 @@
package one.nem.lacerta.data.impl;
import android.content.Context;
import android.content.SharedPreferences;
import javax.inject.Inject;
import dagger.hilt.android.qualifiers.ApplicationContext;
import one.nem.lacerta.data.repository.SharedPref;
import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
public class SharedPrefImpl implements SharedPref{
private final Context applicationContext;
@Inject
public SharedPrefImpl(@ApplicationContext Context applicationContext) {
this.applicationContext = applicationContext;
}
@Override
public SharedPreferences getSharedPreferencesByTag(SharedPrefType sharedPrefType) {
return applicationContext.getSharedPreferences(sharedPrefType.getTag(), Context.MODE_PRIVATE);
}
}
@@ -1,56 +0,0 @@
package one.nem.lacerta.data.impl.stub;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.UUID;
import java.util.Date;
import javax.inject.Inject;
import one.nem.lacerta.data.model.documents.DocumentMeta;
import one.nem.lacerta.data.model.documents.enums.DocumentType;
import one.nem.lacerta.data.repository.Documents;
public class DocumentsImpl implements Documents {
@Inject
public DocumentsImpl() {
}
public ArrayList<DocumentMeta> getRecentDocuments(int limit) { // Generate dummy data
ArrayList<DocumentMeta> documentMetaList = new ArrayList<>();
for (int i = 0; i < limit; i++) {
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.id = UUID.randomUUID().toString();
documentMeta.name = "Document " + i;
documentMeta.created = new Date();
documentMeta.type = new Random(i).nextInt()/2 == 0 ? DocumentType.OTHER : DocumentType.NOTEBOOK;
documentMeta.tags = new String[] {"tag1", "tag2", "tag3"};
documentMeta.categories = new String[] {"category1", "category2", "category3"};
documentMetaList.add(documentMeta);
}
return documentMetaList;
}
public ArrayList<DocumentMeta> getStarredDocuments(int limit) { // Generate dummy data
ArrayList<DocumentMeta> documentMetaList = new ArrayList<>();
for (int i = 0; i < limit; i++) {
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.id = UUID.randomUUID().toString();
documentMeta.name = "Document " + i;
documentMeta.created = new Date();
documentMeta.type = new Random(i).nextInt()/2 == 0 ? DocumentType.OTHER : DocumentType.NOTEBOOK;
documentMeta.tags = new String[] {"tag1", "tag2", "tag3"};
documentMeta.categories = new String[] {"category1", "category2", "category3"};
documentMetaList.add(documentMeta);
}
return documentMetaList;
}
}
@@ -1,34 +0,0 @@
package one.nem.lacerta.data.model;
public class DeviceMetaModel {
private String DeviceManufacturer;
private String DeviceModel;
private String AndroidVersion;
private int AndroidApiLevel;
public DeviceMetaModel(String DeviceManufacturer, String DeviceModel, String AndroidVersion, int AndroidApiLevel) {
this.DeviceManufacturer = DeviceManufacturer;
this.DeviceModel = DeviceModel;
this.AndroidVersion = AndroidVersion;
this.AndroidApiLevel = AndroidApiLevel;
}
// Getters
// TODO-rca: ボイラープレートコードなので削減する
public String getDeviceManufacturer() {
return DeviceManufacturer;
}
public String getDeviceModel() {
return DeviceModel;
}
public String getAndroidVersion() {
return AndroidVersion;
}
public int getAndroidApiLevel() {
return AndroidApiLevel;
}
}
@@ -1,8 +0,0 @@
package one.nem.lacerta.data.model.documents;
public class DocumentDetail {
// ドキュメントの詳細情報
private DocumentMeta documentMeta;
// TODO-rca: ドキュメントの詳細情報を格納するフィールドを追加する
}
@@ -1,107 +0,0 @@
package one.nem.lacerta.data.model.documents;
import java.util.Date;
import one.nem.lacerta.data.model.documents.enums.DocumentType;
// TODO-rca: Dateをデバイスのロケールに合わせてStringに変換するメソッドを実装する?
public class DocumentMeta {
// ドキュメントのメタ情報
public String id; // ドキュメントの内部ID(UUIDv4?)
public String name; // ドキュメントの名前
public DocumentType type; // ドキュメントの種類
public Date created; // ドキュメントの作成日時
public String[] tags; // ドキュメントのタグ
public String[] categories; // ドキュメントのカテゴリ
public DocumentMeta(String id, String name, Date created, DocumentType type, String[] tags, String[] categories) {
this.id = id;
this.name = name;
this.created = created;
this.type = type;
this.tags = tags;
this.categories = categories;
}
public DocumentMeta() {
this.id = "";
this.name = "";
this.created = new Date();
this.type = DocumentType.OTHER;
this.tags = new String[0];
this.categories = new String[0];
}
// TODO-rca: ボイラープレートコードなので削減する
// Getter
public String getId() {
return id;
}
public String getName() {
return name;
}
public Date getCreated() {
return created;
}
public DocumentType getType() {
return type;
}
public String[] getTags() {
return tags;
}
public String[] getCategories() {
return categories;
}
// Setter
public void setId(String id) {
this.id = id;
}
public void setName(String name) {
if (name == null) {
this.name = "";
} else {
this.name = name;
}
}
public void setCreated(Date created) {
if (created == null) {
this.created = new Date();
} else {
this.created = created;
}
}
public void setType(DocumentType type) {
if (type == null) {
this.type = DocumentType.OTHER;
} else {
this.type = type;
}
}
public void setTags(String[] tags) {
if (tags == null) {
this.tags = new String[0];
} else {
this.tags = tags;
}
}
public void setCategories(String[] categories) {
if (categories == null) {
this.categories = new String[0];
} else {
this.categories = categories;
}
}
}
@@ -1,21 +0,0 @@
package one.nem.lacerta.data.model.documents.enums;
public enum DocumentType {
// ドキュメントの種類
// TODO: ユーザーがドキュメントの種類を追加できるようにする
// テキスト
TEXTBOOK,
// ノート
NOTEBOOK,
// ワークブック
WORKBOOK,
// レシート
RECEIPT,
// チケット
TICKET,
// メモ
MEMO,
// その他
OTHER
}
@@ -1,17 +0,0 @@
package one.nem.lacerta.data.model.shared_pref.enums;
public enum SharedPrefType {
COMMON("common"),
USERDATA("userdata");
private String tag;
SharedPrefType(String tag) {
this.tag = tag;
}
public String getTag() {
return tag;
}
}
@@ -1,19 +0,0 @@
package one.nem.lacerta.data.module;
import one.nem.lacerta.data.impl.DeviceMetaImpl;
import one.nem.lacerta.data.repository.DeviceMeta;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
// Singleton
import dagger.hilt.components.SingletonComponent;
@Module
@InstallIn(SingletonComponent.class)
abstract class DeviceMetaModule {
@Binds
public abstract DeviceMeta bindDeviceMeta(DeviceMetaImpl deviceMetaImpl);
}
@@ -0,0 +1,16 @@
package one.nem.lacerta.data.module;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.data.DocumentDebug;
import one.nem.lacerta.data.impl.DocumentDebugImpl;
@Module
@InstallIn(SingletonComponent.class) // TODO-rca: Singletonでいいのか検討する
abstract public class DocumentDebugModule {
@Binds
public abstract DocumentDebug bindDocumentDebug(DocumentDebugImpl documentDebugImpl);
}
@@ -0,0 +1,20 @@
package one.nem.lacerta.data.module;
import android.content.Context;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.data.Document;
import one.nem.lacerta.data.impl.DocumentImpl;
@Module
@InstallIn(SingletonComponent.class) // TODO-rca: Singletonであるべきか考える
abstract public class DocumentModule {
@Binds
public abstract Document bindDocument(DocumentImpl documentImpl);
}
@@ -1,18 +0,0 @@
package one.nem.lacerta.data.module;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.data.repository.Documents;
import one.nem.lacerta.data.impl.DocumentsImpl;
@Module
@InstallIn(SingletonComponent.class)
abstract public class DocumentsModule {
@Binds
public abstract Documents bindDocuments(DocumentsImpl documentsImpl);
}
@@ -1,19 +0,0 @@
package one.nem.lacerta.data.module;
import android.content.Context;
import android.content.SharedPreferences;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.data.impl.SharedPrefImpl;
import one.nem.lacerta.data.repository.SharedPref;
@Module
@InstallIn(SingletonComponent.class)
abstract public class SharedPrefModule {
@Binds
public abstract SharedPref bindSharedPref(SharedPrefImpl sharedPrefImpl);
}
@@ -0,0 +1,13 @@
package one.nem.lacerta.data.processor;
import org.eclipse.jgit.lib.Repository;
import one.nem.lacerta.model.document.DocumentDetail;
public interface DocumentProcessor {
// TODO-rca: Initをここでやるべきか検討する?, Documentモデルを作るべきか検討する?
void setDocumentDetail(DocumentDetail documentDetail);
}
@@ -0,0 +1,4 @@
package one.nem.lacerta.data.processor.impl;
public class DocumentProcessorImpl {
}
@@ -1,7 +0,0 @@
package one.nem.lacerta.data.repository;
import one.nem.lacerta.data.model.DeviceMetaModel;
public interface DeviceMeta {
DeviceMetaModel getDeviceMeta();
}
@@ -1,15 +0,0 @@
package one.nem.lacerta.data.repository;
import java.util.ArrayList;
import java.util.List;
import one.nem.lacerta.data.model.documents.DocumentDetail;
import one.nem.lacerta.data.model.documents.DocumentMeta;
public interface Documents {
ArrayList<DocumentMeta> getRecentDocuments(int limit);
ArrayList<DocumentMeta> getStarredDocuments(int limit);
}
@@ -1,11 +0,0 @@
package one.nem.lacerta.data.repository;
import android.content.SharedPreferences;
import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
public interface SharedPref {
// タグのTypoを防ぐ為にEnumで管理して取得させるやつ
SharedPreferences getSharedPreferencesByTag(SharedPrefType sharedPrefType);
}
@@ -1,60 +0,0 @@
package one.nem.lacerta.source.pref.impl;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.appcompat.app.AppCompatActivity;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import dagger.hilt.android.qualifiers.ApplicationContext;
import one.nem.lacerta.source.pref.repository.Common;
public class CommonImpl implements Common {
Context applicationContext;
@Inject
public CommonImpl(@ApplicationContext Context applicationContext) {
this.applicationContext = applicationContext;
}
public String getStringValue(String key) {
SharedPreferences pref = applicationContext.getSharedPreferences("common", Context.MODE_PRIVATE);
return pref.getString(key, "");
}
public void setStringValue(String key, String value) {
SharedPreferences pref = applicationContext.getSharedPreferences("common", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
editor.putString(key, value);
editor.apply();
}
public boolean isExist(String key) {
SharedPreferences pref = applicationContext.getSharedPreferences("common", Context.MODE_PRIVATE);
return pref.contains(key);
}
public void remove(String key) {
SharedPreferences pref = applicationContext.getSharedPreferences("common", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = pref.edit();
editor.remove(key);
editor.apply();
}
public ArrayList<String> getExistKeys() {
SharedPreferences pref = applicationContext.getSharedPreferences("common", Context.MODE_PRIVATE);
// キーだけをArrayListに切り出す
return new ArrayList<>(pref.getAll().keySet());
}
}
@@ -1,16 +0,0 @@
package one.nem.lacerta.source.pref.module;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.components.SingletonComponent;
import one.nem.lacerta.source.pref.impl.CommonImpl;
import one.nem.lacerta.source.pref.repository.Common;
@Module
@InstallIn(SingletonComponent.class)
abstract public class CommonModule {
@Binds
public abstract Common bindCommon(CommonImpl commonImpl);
}
@@ -1,18 +0,0 @@
package one.nem.lacerta.source.pref.repository;
import java.util.ArrayList;
import java.util.List;
public interface Common {
// さまざまな用途で使うPref
String getStringValue(String key);
void setStringValue(String key, String value);
boolean isExist(String key);
void remove(String key);
ArrayList<String> getExistKeys();
}
+16 -1
View File
@@ -5,7 +5,7 @@ plugins {
android {
namespace 'one.nem.lacerta.feature.debug'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 26
@@ -45,9 +45,24 @@ dependencies {
implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler
// JGit
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
// 内部モジュール
// data
implementation project(':data')
// Debug
implementation project(':source')
implementation project(':utils')
// 型
implementation project(':model')
// Shared
implementation project(':shared:ui')
// Scanner
implementation project(':component:scanner')
}
@@ -1,24 +0,0 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
public class DebugMenuContainerActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_debug_menu_container);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
}
}
@@ -0,0 +1,67 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import dagger.hilt.android.AndroidEntryPoint;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuContainerFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuContainerFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
public DebugMenuContainerFragment() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment DebugMenuSubContainerFragment.
*/
// TODO: Rename and change types and number of parameters
public static DebugMenuContainerFragment newInstance(String param1, String param2) {
DebugMenuContainerFragment fragment = new DebugMenuContainerFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_debug_menu_container, container, false);
}
}
@@ -0,0 +1,81 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.data.Document;
import one.nem.lacerta.feature.debug.common.adapter.DebugMenuDocumentListItemAdapter;
import one.nem.lacerta.feature.debug.common.model.DebugMenuDocumentListItem;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.utils.LacertaLogger;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuDocumentTesterListFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuDocumentTesterListFragment extends Fragment {
@Inject
Document document;
@Inject
LacertaLogger logger;
public DebugMenuDocumentTesterListFragment() {
// Required empty public constructor
}
public static DebugMenuDocumentTesterListFragment newInstance() {
DebugMenuDocumentTesterListFragment fragment = new DebugMenuDocumentTesterListFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_debug_menu_document_tester_list, container, false);
RecyclerView recyclerView = view.findViewById(R.id.recycler_view_document_list);
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
ArrayList<DocumentMeta> documentMetas = document.getAllDocumentMetas(100);
logger.debug("Debug/DocList", "Document count: " + documentMetas.size());
List<DebugMenuDocumentListItem> debugMenuDocumentListItems = new ArrayList<>();
for (DocumentMeta documentMeta : documentMetas) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
debugMenuDocumentListItems.add(new DebugMenuDocumentListItem(documentMeta.getTitle(), "Internal Id: " + documentMeta.getId(), simpleDateFormat.format(documentMeta.getUpdatedAt())));
}
DebugMenuDocumentListItemAdapter adapter = new DebugMenuDocumentListItemAdapter(debugMenuDocumentListItems);
recyclerView.setAdapter(adapter);
return view;
}
}
@@ -0,0 +1,72 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.material.textfield.TextInputEditText;
import java.util.UUID;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import dagger.multibindings.IntKey;
import one.nem.lacerta.data.DocumentDebug;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.model.document.tag.DocumentTag;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuDocumentTesterManageFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuDocumentTesterManageFragment extends Fragment {
@Inject
DocumentDebug documentDebug;
public DebugMenuDocumentTesterManageFragment() {
// Required empty public constructor
}
public static DebugMenuDocumentTesterManageFragment newInstance() {
DebugMenuDocumentTesterManageFragment fragment = new DebugMenuDocumentTesterManageFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_debug_menu_document_tester_manage, container, false);
TextInputEditText editTextDocumentTitle = view.findViewById(R.id.edit_text_document_title);
view.findViewById(R.id.button_insert_test_data).setOnClickListener( v -> {
DocumentMeta meta = new DocumentMeta(editTextDocumentTitle != null ? editTextDocumentTitle.getText().toString() : "empty title"); // TODO-rca: Nullable
DocumentPath path = new DocumentPath("root", "test_path");
DocumentDetail detail = new DocumentDetail(meta, path, "test_author", "test_default_branch");
documentDebug.insertDocument(meta, detail);
});
return view;
}
}
@@ -0,0 +1,59 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
import one.nem.lacerta.feature.debug.common.adapter.DebugMenuListItemAdapter;
import one.nem.lacerta.feature.debug.common.model.DebugMenuListItem;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuDocumentTesterTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuDocumentTesterTopFragment extends Fragment {
public DebugMenuDocumentTesterTopFragment() {
// Required empty public constructor
}
public static DebugMenuDocumentTesterTopFragment newInstance() {
DebugMenuDocumentTesterTopFragment fragment = new DebugMenuDocumentTesterTopFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_debug_menu_document_tester_top, container, false);
RecyclerView recyclerView = view.findViewById(R.id.debug_menu_document_tester_recycler_view);
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
List<DebugMenuListItem> debugMenuDocTesterListItems = new ArrayList<>();
debugMenuDocTesterListItems.add(new DebugMenuListItem("DocumentListFragment", "DocumentListFragment", R.id.action_debugMenuDocumentTesterTopFragment_to_debugMenuDocumentTesterListFragment, true));
debugMenuDocTesterListItems.add(new DebugMenuListItem("DocumentManagerFragment", "DocumentManagerFragment", R.id.action_debugMenuDocumentTesterTopFragment_to_debugMenuDocumentTesterManageFragment, true));
DebugMenuListItemAdapter adapter = new DebugMenuListItemAdapter(debugMenuDocTesterListItems);
recyclerView.setAdapter(adapter);
return view;
}
}
@@ -1,81 +0,0 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import androidx.navigation.ui.NavigationUI;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;
import dagger.hilt.android.AndroidEntryPoint;
import javax.inject.Inject;
import one.nem.lacerta.data.repository.DeviceMeta;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuFragment extends Fragment {
@Inject
DeviceMeta deviceMeta;
@Inject
public DebugMenuFragment() {
// Required empty public constructor
}
public static DebugMenuFragment newInstance() {
DebugMenuFragment fragment = new DebugMenuFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_debug_menu, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
view.findViewById(R.id.btn_debug_menu_scan).setOnClickListener( v -> {
// スキャン機能呼び出し
Toast.makeText(getContext(), "testMessage", Toast.LENGTH_SHORT).show();
});
view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> {
// Fragment移動
Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugSharedPrefEditorFragment);
});
view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> {
// SharedPrefClear
});
view.findViewById(R.id.btn_debug_menu_call_play_ground).setOnClickListener( v -> {
Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugPlayGroundFragment);
});
}
}
@@ -0,0 +1,39 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuMetaDataFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuMetaDataFragment extends Fragment {
public DebugMenuMetaDataFragment() {
// Required empty public constructor
}
public static DebugMenuMetaDataFragment newInstance() {
DebugMenuMetaDataFragment fragment = new DebugMenuMetaDataFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_debug_menu_meta_data, container, false);
}
}
@@ -0,0 +1,57 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
import one.nem.lacerta.feature.debug.common.adapter.DebugMenuListItemAdapter;
import one.nem.lacerta.feature.debug.common.model.DebugMenuListItem;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuTopFragment extends Fragment {
public DebugMenuTopFragment() {
// Required empty public constructor
}
public static DebugMenuTopFragment newInstance() {
DebugMenuTopFragment fragment = new DebugMenuTopFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_debug_menu_top, container, false);
RecyclerView recyclerView = view.findViewById(R.id.debug_menu_recycler_view);
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
List<DebugMenuListItem> debugMenuListItems = new ArrayList<>();
debugMenuListItems.add(new DebugMenuListItem("Meta Data", "View meta data", R.id.action_debugMenuTopFragment_to_debugMenuMetaDataFragment, true));
debugMenuListItems.add(new DebugMenuListItem("Document Tester", "placeholder", R.id.action_debugMenuTopFragment_to_debugMenuDocumentTesterTopFragment, true));
debugMenuListItems.add(new DebugMenuListItem("Scanner", "placeholder", R.id.action_debugMenuTopFragment_to_scannerDataManagerStubFragment, true));
DebugMenuListItemAdapter adapter = new DebugMenuListItemAdapter(debugMenuListItems);
recyclerView.setAdapter(adapter);
return view;
}
}
@@ -1,65 +0,0 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import one.nem.lacerta.data.repository.Documents;
import one.nem.lacerta.data.repository.SharedPref;
import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
@AndroidEntryPoint // HiltのDIを有効にするアノテーション
public class DebugPlayGroundFragment extends Fragment {
@Inject // DI
Documents documents;
@Inject // DI
SharedPref sharedPref;
public DebugPlayGroundFragment() {
// Required empty public constructor
}
public static DebugPlayGroundFragment newInstance() {
DebugPlayGroundFragment fragment = new DebugPlayGroundFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_debug_play_ground, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
// ここがいままでのonCreateと同等のものです。
// findViewById(R.id.hoge)とかは view.findViewById(R.id.hoge) と書き換える必要アリ
// (viewは引数として受け取ってるviewなので、別メソッドに切り出したりするなら渡してあげる)
// ShardPrefの要素数をトーストする例
Toast.makeText(getContext(), "SharedPrefの要素数: " + sharedPref.getSharedPreferencesByTag(SharedPrefType.COMMON).getAll().size(), Toast.LENGTH_SHORT).show();
}
}
@@ -1,115 +0,0 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.TextView;
import org.w3c.dom.Text;
import java.util.Map;
import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
import one.nem.lacerta.source.pref.repository.Common; //TODO-rca: 名前変えるべきかも
import one.nem.lacerta.data.repository.SharedPref;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugSharedPrefEditorFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugSharedPrefEditorFragment extends Fragment {
@Inject
Common prefCommon;
@Inject
SharedPref sharedPref;
SharedPrefType sharedPrefType = null;
public DebugSharedPrefEditorFragment() {
// Required empty public constructor
}
public static DebugSharedPrefEditorFragment newInstance() {
DebugSharedPrefEditorFragment fragment = new DebugSharedPrefEditorFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_debug_shared_pref_editor, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
EditText loadKeyEditText = view.findViewById(R.id.loadKeyEditText);
EditText saveKeyEditText = view.findViewById(R.id.saveKeyEditText);
TextView prefItemTextView = view.findViewById(R.id.prefItemTextView);
view.findViewById(R.id.loadButton).setOnClickListener(v -> {
String value = sharedPref.getSharedPreferencesByTag(sharedPrefType).getString(loadKeyEditText.getText().toString(), "null");
((TextView) view.findViewById(R.id.loadValueTextView)).setText(value);
});
view.findViewById(R.id.saveButton).setOnClickListener(v -> {
String[] split = saveKeyEditText.getText().toString().split(":");
sharedPref.getSharedPreferencesByTag(sharedPrefType).edit().putString(split[0], split[1]).apply();
updateList(prefItemTextView);
});
// ラジオボタンの変更を監視
((RadioGroup) view.findViewById(R.id.radioGroupPrefType)).setOnCheckedChangeListener((group, checkedId) -> {
if (checkedId == R.id.radioButtonCommon) {
sharedPrefType = SharedPrefType.COMMON;
updateList(prefItemTextView);
} else if (checkedId == R.id.radioButtonUserData) {
sharedPrefType = SharedPrefType.USERDATA;
updateList(prefItemTextView);
} else {
Log.e("DebugSharedPrefEditorFragment", "radioButtonのIDが不正です");
}
updateList(prefItemTextView);
});
}
public void updateList(TextView textView) {
// リストの更新
Map<String, ?> resultMap = sharedPref.getSharedPreferencesByTag(sharedPrefType).getAll();
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, ?> entry : resultMap.entrySet()) {
sb.append(entry.getKey()).append(":").append(entry.getValue().toString()).append("\n");
}
textView.setText(sb.toString());
}
}
@@ -0,0 +1,67 @@
package one.nem.lacerta.feature.debug.common.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import one.nem.lacerta.feature.debug.R;
import one.nem.lacerta.feature.debug.common.model.DebugMenuDocumentListItem;
public class DebugMenuDocumentListItemAdapter extends RecyclerView.Adapter<DebugMenuDocumentListItemAdapter.DebugMenuDocumentListItemViewHolder> {
private List<DebugMenuDocumentListItem> debugMenuDocumentListItems;
public DebugMenuDocumentListItemAdapter(List<DebugMenuDocumentListItem> debugMenuDocumentListItems) {
this.debugMenuDocumentListItems = debugMenuDocumentListItems;
}
@NonNull
@Override
public DebugMenuDocumentListItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_debug_menu_document, parent, false);
return new DebugMenuDocumentListItemViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull DebugMenuDocumentListItemViewHolder holder, int position) {
DebugMenuDocumentListItem item = debugMenuDocumentListItems.get(position);
// Set title
holder.title.setText(item.getTitle());
// Set description
holder.description.setText(item.getDescription());
// Set updated at
holder.updatedAt.setText("Updated at: " + item.getUpdatedAt());
holder.itemView.setOnClickListener(v -> {
Toast.makeText(v.getContext(), "Clicked on " + item.getTitle(), Toast.LENGTH_SHORT).show(); // Debug
});
}
@Override
public int getItemCount() {
return debugMenuDocumentListItems.size();
}
public class DebugMenuDocumentListItemViewHolder extends RecyclerView.ViewHolder {
TextView title;
TextView description;
TextView updatedAt;
public DebugMenuDocumentListItemViewHolder(@NonNull View itemView) {
super(itemView);
title = itemView.findViewById(R.id.document_list_item_title);
description = itemView.findViewById(R.id.document_list_item_description);
updatedAt = itemView.findViewById(R.id.document_list_item_updated_at);
}
}
}
@@ -0,0 +1,63 @@
package one.nem.lacerta.feature.debug.common.adapter;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.navigation.Navigation;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import one.nem.lacerta.feature.debug.R;
import one.nem.lacerta.feature.debug.common.model.DebugMenuListItem;
import one.nem.lacerta.utils.LacertaLogger;
public class DebugMenuListItemAdapter extends RecyclerView.Adapter<DebugMenuListItemAdapter.DebugMenuListItemViewHolder> {
private List<DebugMenuListItem> debugMenuListItems;
public DebugMenuListItemAdapter(List<DebugMenuListItem> debugMenuListItems) {
this.debugMenuListItems = debugMenuListItems;
}
@NonNull
@Override
public DebugMenuListItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_debug_menu, parent, false);
return new DebugMenuListItemViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull DebugMenuListItemViewHolder holder, int position) {
DebugMenuListItem item = debugMenuListItems.get(position);
// Set title
holder.title.setText(item.getTitle());
// Set description
holder.description.setText(item.getDescription());
holder.itemView.setOnClickListener( v -> {
Navigation.findNavController(v).navigate(item.getDestinationId());
});
}
@Override
public int getItemCount() {
return debugMenuListItems.size();
}
static class DebugMenuListItemViewHolder extends RecyclerView.ViewHolder {
TextView title;
TextView description;
public DebugMenuListItemViewHolder(@NonNull View itemView) {
super(itemView);
// Get ref to views
title = itemView.findViewById(R.id.debug_menu_item_title);
description = itemView.findViewById(R.id.debug_menu_item_description);
}
}
}
@@ -0,0 +1,27 @@
package one.nem.lacerta.feature.debug.common.model;
public class DebugMenuDocumentListItem {
private String title;
private String description;
private String updatedAt;
public DebugMenuDocumentListItem(String title, String description, String updatedAt) {
this.title = title;
this.description = description;
this.updatedAt = updatedAt;
}
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public String getUpdatedAt() {
return updatedAt;
}
}
@@ -0,0 +1,38 @@
package one.nem.lacerta.feature.debug.common.model;
public class DebugMenuListItem {
private String title;
private String description;
private int destinationId; // Navigation destination ID
private boolean enabled;
public DebugMenuListItem(String title, String description, int destinationId, boolean enabled) {
this.title = title;
this.description = description;
this.destinationId = destinationId;
this.enabled = enabled;
}
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public int getDestinationId() {
return destinationId;
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
@@ -1,102 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".DebugMenuFragment">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Debug Menu"
android:textSize="36sp"
android:padding="16dp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<!-- Call Events -->
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Call Debug Events"
android:textSize="24sp"
android:padding="8dp" />
<!-- android:textColor="@color/material_dynamic_primary10" />-->
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_debug_menu_scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Start scan action"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp" />
<!-- Padding -->
<View
android:layout_width="match_parent"
android:layout_height="16dp" />
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="SharedPref"
android:textSize="24sp" />
<!-- android:textColor="@color/material_dynamic_primary10" />-->
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_debug_menu_clear_pref"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Clear Preferences"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_debug_menu_shared_pref_editor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Shared Preferences Editor"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp" />
<!-- Padding -->
<View
android:layout_width="match_parent"
android:layout_height="16dp" />
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:text="SharedPref"
android:textSize="24sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_debug_menu_call_play_ground"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:text="Playground" />
</LinearLayout>
</ScrollView>
</LinearLayout>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/Theme.Lacerta"
tools:context=".DebugMenuContainerFragment" >
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/debug_menu_top_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryContainer"
app:titleTextColor="@color/colorOnPrimaryContainer"
app:title="Debug Menu"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragmentContainerView"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/debug_menu_top_toolbar"
app:navGraph="@navigation/feature_debug_internal_navigation" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -2,22 +2,16 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuContainerActivity">
tools:context=".DebugMenuDocumentTesterListFragment" >
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragmentContainerView"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="409dp"
android:layout_height="729dp"
android:layout_marginStart="1dp"
android:layout_marginEnd="1dp"
app:defaultNavHost="true"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_document_list"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/feature_debug_navigation" />
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuDocumentTesterManageFragment" >
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="16dp"
android:background="@drawable/rounded_secondary_container">
<TextView
android:id="@+id/textView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:textSize="16sp"
android:textColor="@color/colorOnSecondaryContainer"
android:text="Debug actions" />
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Document title"
android:id="@+id/edit_text_document_title"
android:layout_margin="16dp"
android:inputType="text"
android:textSize="16sp"
style="@style/ThemeOverlay.Material3.TextInputEditText.OutlinedBox" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_insert_test_data"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:text="Insert test data"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/Theme.Lacerta"
tools:context=".DebugMenuDocumentTesterTopFragment">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="0dp"
android:id="@+id/debug_menu_document_tester_recycler_view"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -3,12 +3,10 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugPlayGroundFragment">
tools:context=".DebugMenuMetaDataFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/Theme.Lacerta"
tools:context=".DebugMenuTopFragment" >
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/debug_menu_recycler_view"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -1,121 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".DebugSharedPrefEditorFragment">
<RadioGroup
android:id="@+id/radioGroupPrefType"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/radioButtonCommon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Common" />
<RadioButton
android:id="@+id/radioButtonUserData"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="UserData" />
</RadioGroup>
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Save pref" />
<LinearLayout
android:id="@+id/SaveLinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3">
<EditText
android:id="@+id/saveKeyEditText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:layout_weight="2"
android:hint="Key:Value" />
<com.google.android.material.button.MaterialButton
android:id="@+id/saveButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:layout_weight="1"
android:text="Save" />
</LinearLayout>
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Load pref" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/LoadLinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="3">
<EditText
android:id="@+id/loadKeyEditText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:hint="Key" />
<com.google.android.material.button.MaterialButton
android:id="@+id/loadButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Load" />
</LinearLayout>
<TextView
android:id="@+id/loadValueTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="No value..."
android:textSize="24sp" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/prefItemTextView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="None" />
</LinearLayout>
</ScrollView>
</LinearLayout>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp">
<TextView
android:id="@+id/debug_menu_item_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginEnd="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/debug_menu_item_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/debug_menu_item_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="16dp">
<TextView
android:id="@+id/document_list_item_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="TITLE"
android:layout_marginEnd="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/document_list_item_updated_at"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/document_list_item_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="14sp"
android:text="DESCRIPTION"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/document_list_item_title" />
<TextView
android:id="@+id/document_list_item_updated_at"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="14sp"
android:text="Updated at: aaaaaaaaaa"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/feature_debug_internal_navigation"
app:startDestination="@id/debugMenuTopFragment">
<fragment
android:id="@+id/debugMenuTopFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuTopFragment"
android:label="fragment_debug_menu_top"
tools:layout="@layout/fragment_debug_menu_top" >
<action
android:id="@+id/action_debugMenuTopFragment_to_debugMenuMetaDataFragment"
app:destination="@id/debugMenuMetaDataFragment" />
<action
android:id="@+id/action_debugMenuTopFragment_to_debugMenuDocumentTesterTopFragment"
app:destination="@id/debugMenuDocumentTesterTopFragment" />
<action
android:id="@+id/action_debugMenuTopFragment_to_scannerDataManagerStubFragment"
app:destination="@id/scannerDataManagerStubFragment" />
</fragment>
<fragment
android:id="@+id/debugMenuMetaDataFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuMetaDataFragment"
android:label="fragment_debug_menu_meta_data"
tools:layout="@layout/fragment_debug_menu_meta_data" />
<fragment
android:id="@+id/debugMenuDocumentTesterTopFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuDocumentTesterTopFragment"
android:label="fragment_debug_menu_document_tester_top"
tools:layout="@layout/fragment_debug_menu_document_tester_top" >
<action
android:id="@+id/action_debugMenuDocumentTesterTopFragment_to_debugMenuDocumentTesterListFragment"
app:destination="@id/debugMenuDocumentTesterListFragment" />
<action
android:id="@+id/action_debugMenuDocumentTesterTopFragment_to_debugMenuDocumentTesterManageFragment"
app:destination="@id/debugMenuDocumentTesterManageFragment" />
</fragment>
<fragment
android:id="@+id/debugMenuDocumentTesterListFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuDocumentTesterListFragment"
android:label="fragment_debug_menu_document_tester_list"
tools:layout="@layout/fragment_debug_menu_document_tester_list" />
<fragment
android:id="@+id/debugMenuDocumentTesterManageFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuDocumentTesterManageFragment"
android:label="fragment_debug_menu_document_tester_manage"
tools:layout="@layout/fragment_debug_menu_document_tester_manage" />
<fragment
android:id="@+id/scannerDataManagerStubFragment"
android:name="one.nem.lacerta.component.scanner.ScannerDataManagerStubFragment"
android:label="ScannerDataManagerStubFragment" />
</navigation>
@@ -3,28 +3,10 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/feature_debug_navigation"
app:startDestination="@id/debugMenuFragment">
app:startDestination="@id/debugMenuContainerFragment">
<fragment
android:id="@+id/debugMenuFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuFragment"
android:label="fragment_debug_menu"
tools:layout="@layout/fragment_debug_menu" >
<action
android:id="@+id/action_debugMenuFragment_to_debugSharedPrefEditorFragment"
app:destination="@id/debugSharedPrefEditorFragment" />
<action
android:id="@+id/action_debugMenuFragment_to_debugPlayGroundFragment"
app:destination="@id/debugPlayGroundFragment" />
</fragment>
<fragment
android:id="@+id/debugSharedPrefEditorFragment"
android:name="one.nem.lacerta.feature.debug.DebugSharedPrefEditorFragment"
android:label="fragment_debug_shared_pref_editor"
tools:layout="@layout/fragment_debug_shared_pref_editor" />
<fragment
android:id="@+id/debugPlayGroundFragment"
android:name="one.nem.lacerta.feature.debug.DebugPlayGroundFragment"
android:label="fragment_debug_play_ground"
tools:layout="@layout/fragment_debug_play_ground" />
android:id="@+id/debugMenuContainerFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuContainerFragment"
android:label="fragment_debug_menu_container"
tools:layout="@layout/fragment_debug_menu_container" />
</navigation>
+13 -5
View File
@@ -27,9 +27,17 @@ android {
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.10.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation libs.androidx.appcompat
implementation libs.com.google.android.material
testImplementation libs.junit
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso.core
// Navigation
implementation libs.navigation.fragment
implementation libs.navigation.ui
implementation libs.navigation.dynamic.features.fragment
// shared
implementation project(':shared:ui')
}
@@ -1,4 +1,4 @@
package one.nem.lacerta.component.scanner;
package one.nem.lacerta.feature.home;
import android.os.Bundle;
@@ -10,10 +10,10 @@ import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link ScannerScanResultFragment#newInstance} factory method to
* Use the {@link HomeTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class ScannerScanResultFragment extends Fragment {
public class HomeTopFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
@@ -24,7 +24,7 @@ public class ScannerScanResultFragment extends Fragment {
private String mParam1;
private String mParam2;
public ScannerScanResultFragment() {
public HomeTopFragment() {
// Required empty public constructor
}
@@ -34,11 +34,11 @@ public class ScannerScanResultFragment extends Fragment {
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ScannerScanResultFragment.
* @return A new instance of fragment HomeTopFragment.
*/
// TODO: Rename and change types and number of parameters
public static ScannerScanResultFragment newInstance(String param1, String param2) {
ScannerScanResultFragment fragment = new ScannerScanResultFragment();
public static HomeTopFragment newInstance(String param1, String param2) {
HomeTopFragment fragment = new HomeTopFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
@@ -59,6 +59,6 @@ public class ScannerScanResultFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_scanner_scan_result, container, false);
return inflater.inflate(R.layout.fragment_home_top, container, false);
}
}
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ScannerScanFragment">
tools:context=".HomeTopFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/feature_home_navigation"
app:startDestination="@id/homeTopFragment">
<fragment
android:id="@+id/homeTopFragment"
android:name="one.nem.lacerta.feature.home.HomeTopFragment"
android:label="fragment_home_top"
tools:layout="@layout/fragment_home_top" />
</navigation>
@@ -0,0 +1,4 @@
<resources>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>
+20 -5
View File
@@ -27,9 +27,24 @@ android {
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.10.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation libs.androidx.appcompat
implementation libs.com.google.android.material
implementation 'androidx.navigation:navigation-fragment:2.7.5'
implementation 'androidx.navigation:navigation-ui:2.7.5'
testImplementation libs.junit
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso.core
// Navigation
implementation libs.navigation.fragment
implementation libs.navigation.ui
implementation libs.navigation.dynamic.features.fragment
// Hilt (DI)
implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler
implementation project(':shared:ui')
}
@@ -0,0 +1,46 @@
package one.nem.lacerta.feature.library;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
public class DocumentAdapter extends RecyclerView.Adapter<DocumentAdapter.DocumentViewHolder> {
private List<String> documentList;
public DocumentAdapter(List<String> documentList) {
this.documentList = documentList;
}
@NonNull
@Override
public DocumentViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_library_menu, parent, false);
return new DocumentViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull DocumentViewHolder holder, int position) {
holder.title.setText(documentList.get(position));
}
@Override
public int getItemCount() {
return documentList.size();
}
class DocumentViewHolder extends RecyclerView.ViewHolder {
TextView title;
DocumentViewHolder(View itemView) {
super(itemView);
title = itemView.findViewById(R.id.debug_menu_item_title);
}
}
}
@@ -0,0 +1,35 @@
package one.nem.lacerta.feature.library;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
// LibraryArchiveFragment.java
public class LibraryArchiveFragment extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_library_top);
// ここに入力された内容を表示する機能
TextView textView = findViewById(R.id.document_list);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// 文字をタップしたときの処理
// 移動先のアクティビティを指定
Intent intent = new Intent(LibraryArchiveFragment.this, LibraryDocFragment.class);
// データを付加する
intent.putExtra("key_name", "value_data");
startActivity(intent);
}
});
}
}
@@ -0,0 +1,50 @@
package one.nem.lacerta.feature.library;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
public class LibraryDocFragment extends Fragment {
private TextView textView; // フィールドとして TextView を定義
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_library_file, container, false);
textView = view.findViewById(R.id.textView);
return view;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// フラグメントに渡されたデータを取得
if (getArguments() != null) {
String receivedData = getArguments().getString("key_name");
// onCreateView メソッドで取得した TextView にデータをセットする
if (textView != null) {
textView.setText(receivedData);
}
}
}
// Factory method for creating a new instance of the fragment
public static LibraryDocFragment newInstance(String data) {
LibraryDocFragment fragment = new LibraryDocFragment();
// フラグメントにデータを渡す
Bundle args = new Bundle();
args.putString("key_name", data);
fragment.setArguments(args);
return fragment;
}
}
@@ -0,0 +1,91 @@
package one.nem.lacerta.feature.library;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
/**
* A simple {@link Fragment} subclass.
* Use the {@link LibraryTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class LibraryTopFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
public LibraryTopFragment() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment LibraryTopFragment.
*/
// TODO: Rename and change types and number of parameters
public static LibraryTopFragment newInstance(String param1, String param2) {
LibraryTopFragment fragment = new LibraryTopFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_library_top, container, false);
// Use view.findViewById instead of findViewById
RecyclerView documentRecyclerView = view.findViewById(R.id.document_list);
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
documentRecyclerView.setLayoutManager(layoutManager);
List<String> documentList = new ArrayList<>();
documentList.add("Document A");
documentList.add("Document B");
documentList.add("Document C");
// Create and set the adapter
DocumentAdapter adapter = new DocumentAdapter(documentList);
documentRecyclerView.setAdapter(adapter);
// Use a LinearLayoutManager to specify the layout
return view;
}
}
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:id="@+id/textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginEnd="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="@style/Theme.Lacerta"
tools:context=".LibraryTopFragment">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryContainer"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:title="Library"
app:titleTextColor="@color/colorOnPrimaryContainer" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/document_list"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tool_bar" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp">
<TextView
android:id="@+id/debug_menu_item_title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:layout_marginEnd="8dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/debug_menu_item_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/debug_menu_item_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/feature_library_navigation"
app:startDestination="@id/feature_library_top_fragment">
<fragment
android:id="@+id/feature_library_top_fragment"
android:name="one.nem.lacerta.feature.library.LibraryTopFragment"
android:label="fragment_library_top"
tools:layout="@layout/fragment_library_top" />
</navigation>
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">Library</string>
</resources>
+1
View File
@@ -0,0 +1 @@
/build
+39
View File
@@ -0,0 +1,39 @@
plugins {
alias(libs.plugins.com.android.library)
}
android {
namespace 'one.nem.lacerta.model'
compileSdk 34
defaultConfig {
minSdk 26
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation libs.androidx.appcompat
implementation libs.com.google.android.material
testImplementation libs.junit
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso.core
// JGit
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
}
Loaded 100 of 206 files, more files were not shown because too many files have changed in this diff. Show more