Compare commits

..
Author SHA1 Message Date
r-ca 4235030986 外部リソースを使うように 2024-01-19 15:27:51 +09:00
r-ca c60fedeb87 WIP 2024-01-19 15:26:57 +09:00
r-ca 2f18134581 WIP 2024-01-19 15:25:28 +09:00
ろむねこ 4101f75685 Merge pull request #81 from lacerta-doc/refactor/refactor1
リファクタリング
2024-01-19 15:20:52 +09:00
r-ca 184771c92d リソースを切り出す準備 2024-01-19 15:19:15 +09:00
r-ca 3e12f1222b ナビゲーションの並び順を変更 2024-01-19 15:17:44 +09:00
r-ca 29f2749cb7 整形 2024-01-19 15:16:20 +09:00
r-ca 244b2fb123 リファクタリング 2024-01-19 15:15:46 +09:00
r-ca 725d541316 リファクタリング 2024-01-19 15:14:08 +09:00
r-ca fc712a131a Revert "utilsを依存関係に追加, LoggerをInject"
This reverts commit 42eb3d4c80.
2024-01-19 15:07:35 +09:00
r-ca cc7b0dc5d1 Revert "utilsを依存関係に追加, LoggerをInject"
This reverts commit 169a6c6e0a.
2024-01-19 15:07:34 +09:00
r-ca 169a6c6e0a utilsを依存関係に追加, LoggerをInject 2024-01-19 15:07:27 +09:00
r-ca 42eb3d4c80 utilsを依存関係に追加, LoggerをInject 2024-01-19 15:07:23 +09:00
r-ca 1c87b73a5b テスト用に設置していたトーストを削除 2024-01-19 15:05:44 +09:00
ろむねこ 46f119b531 Merge pull request #80 from lacerta-doc/improve/bottom_nav_color
システムナビゲーションの色をUIにあわせるようにした
2024-01-19 15:02:32 +09:00
r-ca def799bbe6 APIレベル27以上でシステムナビゲーションのアイコン色を適切に変更できるようにした 2024-01-19 15:01:20 +09:00
r-ca defc051436 システムナビゲーションの背景をボトムナビゲーションと同じに 2024-01-19 14:56:44 +09:00
r-ca de9b68de87 Revert "依存関係追加"
This reverts commit 802e4cc75a.
2024-01-19 14:50:20 +09:00
r-ca 802e4cc75a 依存関係追加 2024-01-19 14:48:17 +09:00
ろむねこ abc91b79ee Merge pull request #79 from lacerta-doc/feature/search/add_ui
Feature/search/add UI
2024-01-19 14:24:03 +09:00
Fuchimoto1234 b601b28f81 search UI 2024-01-19 12:49:33 +09:00
Fuchimoto1234 853ac1eca3 search UI 2024-01-19 12:42:04 +09:00
Fuchimoto1234 834bc35318 search UI 2024-01-19 12:30:17 +09:00
Fuchimoto1234 1e3a3262a4 search UI 2024-01-19 12:11:56 +09:00
r-ca 475c511d32 hotfix 2024-01-18 18:23:14 +09:00
r-ca 474d6417c9 hotfix: Adapterの初期化処理修正 2024-01-18 18:22:10 +09:00
r-ca c7e141b892 hotfix: 型の変更に追従 2024-01-18 18:21:01 +09:00
ろむねこ 3d2cc5ac05 Merge pull request #78 from lacerta-doc/feature/home/add_document_history
ドキュメント履歴をホームに追加
2024-01-18 18:19:49 +09:00
r-ca 73c310ee01 hotfix: 型の変更に追従 2024-01-18 18:16:44 +09:00
ろむねこ 5c3d811979 Merge pull request #77 from lacerta-doc/feature/lacerta_library_recent
Feature/lacerta library recent
2024-01-18 18:12:18 +09:00
ろむねこ f5bc740f58 Merge pull request #76 from lacerta-doc/feature/scan_and_save_document
Feature/scan and save document
2024-01-18 18:11:21 +09:00
r-ca 8a57331d32 メニューに検索を追加 2024-01-18 14:33:27 +09:00
r-ca abdca108d4 ナビゲーショングラフに追加 2024-01-18 14:32:57 +09:00
r-ca 8b66646e7d ナビゲーショングラフ作成 2024-01-18 14:32:36 +09:00
r-ca c9160a2df0 依存関係修正 2024-01-18 14:31:52 +09:00
r-ca c5b0a33720 Revert "ナビゲーショングラフ作成"
This reverts commit 13f31017f7.
2024-01-18 14:31:30 +09:00
r-ca 13f31017f7 ナビゲーショングラフ作成 2024-01-18 14:30:22 +09:00
r-ca e6778e6214 フラグメント作成 2024-01-18 14:29:29 +09:00
Fuchimoto1234 71f9be77cd fix 2024-01-17 12:58:25 +09:00
r-ca e0d63122bd getRecentDocument実装 2024-01-17 12:52:13 +09:00
r-ca 1c3fdf921d Dao追加 2024-01-17 12:52:05 +09:00
Fuchimoto1234 d07e63f534 Merge branch 'develop' into feature/home/add_document_history
# Conflicts:
#	data/src/main/java/one/nem/lacerta/data/Document.java
#	data/src/main/java/one/nem/lacerta/data/impl/DocumentImpl.java
2024-01-17 12:42:55 +09:00
Fuchimoto1234 5160411c76 fix 2024-01-17 12:41:31 +09:00
Fuchimoto1234 20d30e338e wip 2024-01-17 12:35:30 +09:00
r-ca 3be6185c21 getRecentDocumentの戻り値を変更 2024-01-17 12:15:47 +09:00
r-ca c82952f397 スキーマ更新, Dao更新 2024-01-17 12:11:12 +09:00
r-ca 8c9dc14f16 DBスキーマアップデート 2024-01-17 12:09:27 +09:00
r-ca d22644e37a 依存関係に追加 2024-01-17 12:08:54 +09:00
r-ca c80576d046 修正 2024-01-17 12:08:45 +09:00
r-ca b7cb4369d1 クエリ追加 2024-01-17 12:08:24 +09:00
r-ca 2cfab24c76 Injection追加 2024-01-17 12:07:28 +09:00
r-ca 55b34d964c Folderをデータベースに保存するように WIP 2024-01-17 12:07:18 +09:00
r-ca 744a2bef65 actionを追加するように WIP 2024-01-17 11:25:41 +09:00
r-ca 74becab37b デバッグ用のログポイント追加 2024-01-17 11:09:33 +09:00
r-ca 58d6ae17c6 タイミングの都合でエラーが出るのでloggerを使わないように 2024-01-17 11:07:54 +09:00
r-ca dea5f240f0 ドキュメント新規保存のロジックを実装 WIP 2024-01-17 11:05:25 +09:00
r-ca 119771a7f9 コメント追加, デバッグ用の実装を追加 2024-01-17 11:00:20 +09:00
r-ca b6a30d5cbf Document実装 2024-01-17 10:57:08 +09:00
r-ca 2ec4b96c14 Vcs変更 2024-01-17 10:55:39 +09:00
r-ca 151911d0b2 バージョンコード更新 2024-01-17 10:46:55 +09:00
r-ca d832438f8f Vcs実装 2024-01-17 10:46:31 +09:00
r-ca 0487553f3b Dao追加 2024-01-17 10:40:01 +09:00
r-ca 678c9730ef Dao追加 2024-01-17 10:39:17 +09:00
r-ca e1b43a5f22 EntityにisIncludedを追加 2024-01-17 10:37:42 +09:00
r-ca d384347e0a Merge branch 'develop' into feature/scan_and_save_document 2024-01-17 10:31:28 +09:00
r-ca 8faaf1e84a hotfix: 起動できないので暫定で修正 2024-01-16 13:01:35 +09:00
ろむねこ a81d79a972 Merge pull request #75 from lacerta-doc/refactor/refactoring2
リファクタリング
2024-01-16 12:59:08 +09:00
r-ca 1e2f48e0ae shared:iconを削除 2024-01-16 12:58:04 +09:00
r-ca be7bd6b6fc 依存関係から削除 2024-01-16 12:55:04 +09:00
r-ca 16eb6d083e :shared:iconを廃止1 2024-01-16 12:54:07 +09:00
r-ca 4de33b9550 JGit関連のモジュールを削除 2024-01-16 12:53:04 +09:00
r-ca b4d94954b9 消し忘れていた記述を削除 2024-01-16 12:51:54 +09:00
r-ca 526ab97706 整理, コメント追加 2024-01-16 12:50:06 +09:00
r-ca 6f0af7c4eb 整理 2024-01-16 12:49:37 +09:00
r-ca c6d85471c6 整理, コメント追加 2024-01-16 12:48:54 +09:00
r-ca c5d7224b40 不用意なインポートを整理 2024-01-16 12:46:20 +09:00
ろむねこ cc62529224 Merge pull request #74 from lacerta-doc/r-ca-patch-2
Create PULL_REQUEST_TEMPLATE.md
2024-01-16 12:42:06 +09:00
ろむねこ 2d686ce776 Create PULL_REQUEST_TEMPLATE.md 2024-01-16 12:41:50 +09:00
r-ca a61c044391 新ドキュメントを生成できるように 2024-01-16 12:36:28 +09:00
r-ca bc19dd22d8 DocumentMetaにコンストラクタを追加 2024-01-16 12:35:19 +09:00
ろむねこ 61ed1bbf79 Merge pull request #71 from lacerta-doc/add_scanner_component
スキャナの追加
2024-01-16 12:28:58 +09:00
ろむねこ fd785d9334 Merge pull request #68 from lacerta-doc/improve_document_object
WIP: 全体的なオブジェクトの修正/変更/追加/削除
2024-01-16 12:27:44 +09:00
r-ca e6ce3571bf Inject追加 2024-01-16 12:25:37 +09:00
r-ca 462ea77e91 依存関係に追加 2024-01-16 12:21:44 +09:00
r-ca faf0971ffe アクションをメニューに合わせて更新 2024-01-16 12:16:33 +09:00
r-ca 3eac0cf49c アクションをメニューに合わせて更新 WIP 2024-01-16 12:15:16 +09:00
r-ca 680b101476 メニューアイテム更新 2024-01-16 12:14:00 +09:00
r-ca 8200a03168 ログ修正 2024-01-16 12:08:29 +09:00
r-ca 290795d3aa Merge remote-tracking branch 'origin/improve/logger_add_error_code' into add_scanner_component 2024-01-16 12:04:19 +09:00
ろむねこ 1e1f014e59 Merge pull request #70 from lacerta-doc/improve/logger_add_error_code
エラーIDをログに流すメソッドを実装
2024-01-16 12:03:54 +09:00
r-ca 20f6333dcc エラーIDをログに流すメソッドを実装 2024-01-16 12:03:33 +09:00
r-ca d30e68b23f コメント修正 2024-01-16 11:59:36 +09:00
r-ca 24e54ec0f0 終了ボタンを実装 2024-01-16 11:58:42 +09:00
r-ca d01f5b9c79 ToolBar実装 WIP 2024-01-16 11:50:50 +09:00
r-ca 8502bcdcab 命名修正 2024-01-16 11:45:49 +09:00
r-ca 7c91987c76 アイコン色修正 2024-01-16 11:44:24 +09:00
r-ca 74aef19312 アイコン追加 2024-01-16 11:43:34 +09:00
r-ca 2168f67fea scaleType修正 2024-01-16 11:27:03 +09:00
r-ca 380e8117b8 プレビュー実装 WIP 2024-01-16 11:06:44 +09:00
r-ca a6aeb5480a スキャン後の操作を行う画面を実装 WIP 2024-01-16 11:05:43 +09:00
r-ca 78505c62e6 暫定Drawable作成 2024-01-16 10:50:49 +09:00
r-ca 467d5ae9ee WIP 2024-01-16 10:37:36 +09:00
r-ca 0f4b66eb37 いろいろ 2024-01-16 10:29:15 +09:00
r-ca cec7f3bb15 レイアウト設計WIP 2024-01-16 10:26:25 +09:00
r-ca 1137604515 レイアウトリソース作成 2024-01-16 10:18:11 +09:00
r-ca 091467d113 Revert "フラグメント作成"
This reverts commit d780e57e39.
2024-01-16 10:17:30 +09:00
r-ca aefe5d1001 スキャナ実装いろいろ 2024-01-16 10:16:58 +09:00
r-ca d780e57e39 フラグメント作成 2024-01-16 10:16:45 +09:00
r-ca 35b998eebe アクティビティ作成 2024-01-15 15:09:58 +09:00
r-ca b99efb3336 いろいろ 2024-01-15 15:03:24 +09:00
r-ca 9ebf656274 メニューに追加 2024-01-15 15:03:21 +09:00
r-ca 84a8d0d44d Revert "アクティビティ作成"
This reverts commit 5b1461ff26.
2024-01-15 14:59:13 +09:00
r-ca 5b1461ff26 アクティビティ作成 2024-01-15 14:50:09 +09:00
r-ca 57ca804b2b Revert "アクティビティ作成"
This reverts commit b81f8d5c87.
2024-01-15 14:49:39 +09:00
r-ca b81f8d5c87 アクティビティ作成 2024-01-15 14:48:55 +09:00
r-ca e44313d418 ナビゲーショングラフに追加 2024-01-15 14:46:18 +09:00
r-ca 334d1ccba2 処理実装 WIP 2024-01-15 14:45:23 +09:00
r-ca 5bf55ada0e 依存関係追加 2024-01-15 14:36:52 +09:00
r-ca 75c0700144 レイアウト編集, 処理init 2024-01-15 14:36:10 +09:00
r-ca dbb737d896 ScannerManagerFragment作成 2024-01-15 14:32:16 +09:00
r-ca 3045c75c45 ビルドエラー回避コメントアウト 2024-01-14 17:36:21 +09:00
r-ca aac94922df HiltをPluginに追加 2024-01-14 17:35:17 +09:00
r-ca 78ff41b3e3 ビルドエラー回避コメントアウト 2024-01-14 17:34:32 +09:00
r-ca e026da96fa DocumentDebugを削除 2024-01-14 17:27:43 +09:00
r-ca 9245981233 仕様変更でスタブが壊れたのでとりあえずコメントアウト 2024-01-14 17:26:01 +09:00
r-ca bc74ee605e 不要になったデバッグメニューの画面を削除 2024-01-14 17:25:19 +09:00
r-ca 475e378b7c Impl 2024-01-14 17:22:37 +09:00
r-ca 6c8233536c コメント追加 2024-01-14 17:18:37 +09:00
r-ca 3878c139af createDocument実装 2024-01-14 17:18:25 +09:00
r-ca 56a3acf36d createDocument実装 2024-01-14 17:17:34 +09:00
r-ca 0cab05c581 PublicPathにrootを返すメソッドを追加 2024-01-14 17:16:28 +09:00
r-ca 9db85bb9b3 Setter追加漏れ修正 2024-01-14 17:13:43 +09:00
r-ca 17cb2829ce 依存関係追加 2024-01-14 17:08:22 +09:00
r-ca 397c923cc1 修正 2024-01-14 17:00:10 +09:00
r-ca 94cec3432e 修正 2024-01-14 16:59:36 +09:00
r-ca e78ee829ce 修正 2024-01-14 16:59:21 +09:00
r-ca 4ae2a9fe3a メソッドの統合 2024-01-14 16:59:02 +09:00
r-ca d6a0dbeaa2 VCSに変更履歴を登録するように WIP 2024-01-14 16:58:19 +09:00
r-ca 98c3820679 Initを廃止 2024-01-14 16:55:50 +09:00
r-ca de85626d66 依存関係追加 2024-01-14 16:53:30 +09:00
r-ca 7e20d8e443 close()を廃止, DocumentDetailを取得できるように 2024-01-14 16:48:04 +09:00
r-ca eba02abfd4 DocumentProcessor更新 WIP 2024-01-14 16:45:48 +09:00
r-ca aa7f285773 WIP 2024-01-14 16:40:03 +09:00
r-ca e5e1b3a2bb パーサー更新 2024-01-14 16:35:22 +09:00
r-ca cd5a588545 XmlMetaModel更新 2024-01-14 16:34:41 +09:00
r-ca bd5a041424 Impl生成し直し 2024-01-14 16:28:28 +09:00
r-ca 9d793c3c0a Documentインタフェース実装 2024-01-14 16:27:56 +09:00
r-ca 0d4f0686b7 DocumentDetailにPagesを追加 2024-01-14 16:13:09 +09:00
r-ca 5e6fa45fed コメント 2024-01-14 16:11:43 +09:00
r-ca 885cd77d5b Pageオブジェクトを作成 2024-01-14 16:11:17 +09:00
r-ca cbd7c103c5 コメント 2024-01-14 16:07:48 +09:00
r-ca ddd303fa88 コンストラクタ追加 2024-01-14 16:06:58 +09:00
r-ca 14fbb56dcd Setter追加 2024-01-14 16:06:36 +09:00
r-ca bf01610eb5 Getter追加 2024-01-14 16:06:14 +09:00
r-ca b63e2dd862 コンストラクタ変更 2024-01-14 16:05:23 +09:00
r-ca 8f0f95d8af 移動したフィールドを追加 2024-01-14 16:04:55 +09:00
r-ca d75ecff0e7 DefaultBranchをMetaに移動, Repositoryを廃止 2024-01-14 16:03:50 +09:00
r-ca bc20c92d44 DocumentPathを廃止, 作者情報をMetaに移動WIP 2024-01-14 16:02:49 +09:00
ろむねこ 5837a1a2d3 Merge pull request #63 from lacerta-doc/feature/add_vcs
VCS追加(WIP)
2024-01-14 15:39:10 +09:00
r-ca 176d8da59d Revert "Log一覧フラグメント実装WIP"
This reverts commit dc516bc083.
2024-01-14 15:19:36 +09:00
r-ca dc516bc083 Log一覧フラグメント実装WIP 2024-01-14 15:19:33 +09:00
r-ca 5c83c8fe13 リネーム 2024-01-14 15:18:08 +09:00
r-ca 200af1955b コミット漏れ 2024-01-14 15:10:07 +09:00
r-ca 951ee15235 コミット漏れ 2024-01-14 15:10:04 +09:00
r-ca 9a35c218b3 仮の実装を追加 2024-01-14 15:09:56 +09:00
r-ca 52894cf19c デバッグのためにデータベースの破壊を許可 2024-01-14 15:09:44 +09:00
r-ca 656d3a5964 DBバージョンのインクリメント 2024-01-14 15:09:31 +09:00
r-ca f95a2d64c3 アイテム追加 2024-01-14 14:57:27 +09:00
r-ca 92f9cfe4aa ビルドエラー回避のために一旦rootPathを戻した 2024-01-14 14:56:30 +09:00
r-ca 162f0a7bdb ビルドエラー修正 2024-01-14 14:54:12 +09:00
r-ca ba119fdb3d 壊れたインポートを削除 2024-01-14 14:53:47 +09:00
r-ca c711ad304b アノテーション修正 2024-01-14 14:53:35 +09:00
r-ca b2a619629f リネーム 2024-01-14 14:51:24 +09:00
r-ca a3426b6620 デバッグロジック実装 WIP 2024-01-14 14:01:43 +09:00
r-ca a9fb6283e7 依存関係追加 2024-01-14 13:59:53 +09:00
r-ca 6153e944eb レイアウト作成 WIP 2024-01-14 13:59:14 +09:00
r-ca a0baaf02cb WIP 2024-01-14 13:59:06 +09:00
r-ca 623be098d1 レイアウト変更 2024-01-14 13:56:30 +09:00
r-ca 999de728f0 メニューにアイテム追加 2024-01-14 13:55:40 +09:00
r-ca a032b9c1b1 ナビゲーショングラフ追加 2024-01-14 13:53:32 +09:00
r-ca 34de82cec3 引数削除など 2024-01-14 13:52:31 +09:00
r-ca fb4ba28391 引数削除など 2024-01-14 13:49:30 +09:00
r-ca 44baef8199 デバッグ用フラグメント作成 2024-01-14 13:48:52 +09:00
r-ca 60f86cd9a2 デバッグ用フラグメント作成 2024-01-14 13:48:22 +09:00
r-ca add140ad39 ナビゲーショングラフに追加 2024-01-14 13:46:22 +09:00
r-ca 4c40f9926e フラグメント作成, 引数関係を削除 2024-01-14 13:45:43 +09:00
r-ca f119264599 WIP 画面推移実装 2024-01-14 13:44:04 +09:00
r-ca 7f7e7d4af3 レイアウト修正 2024-01-14 13:43:09 +09:00
r-ca b99277082d 引数関係を削除 2024-01-14 13:40:25 +09:00
r-ca a6167b98af ナビゲーショングラフに追加 2024-01-14 13:34:30 +09:00
r-ca f75594233f デバッグ用フラグメント実装 WIP 2024-01-14 13:32:33 +09:00
r-ca 32ee755d08 Factory実装 WIP 2024-01-14 13:29:47 +09:00
r-ca 0758b697a2 Impl実装 WIP 2024-01-14 13:28:02 +09:00
r-ca 1abfcc1e62 依存関係にRoomを追加 2024-01-14 13:26:59 +09:00
r-ca a1b6ed81df VcsLogDao実装 2024-01-14 13:25:29 +09:00
r-ca 00a141a101 VcsRevDao実装 2024-01-14 13:23:48 +09:00
r-ca 6845e552ef Entity微修正 2024-01-14 13:22:28 +09:00
r-ca f98614c5f2 Implクラスコンストラクタ実装 WIP 2024-01-14 13:00:29 +09:00
r-ca b040e2572c Implクラス作成, Impl生成 2024-01-14 12:55:09 +09:00
r-ca 3eb94cade0 インタフェース実装 WIP 2024-01-14 12:54:29 +09:00
r-ca e9b7ad4d92 fromJson実装 WIP 2024-01-14 12:50:56 +09:00
r-ca e07cbda769 toJson実装 2024-01-14 12:48:54 +09:00
r-ca 80aeb8811b Action系のModelはActionBaseを継承するように 2024-01-14 12:40:46 +09:00
r-ca 2d7dfe1b5b ActionBaseを作成 2024-01-14 12:39:45 +09:00
r-ca 362eda782d 実装を後回しにする部分にコメントを追加 2024-01-14 12:30:44 +09:00
r-ca b51eeb50ac 一旦後回しにするので削除 2024-01-14 12:28:56 +09:00
r-ca 2673fb6bce 実装を後回しにする部分にコメントを追加 2024-01-14 12:28:02 +09:00
r-ca bb5c38cbca パッケージを間違えてたので修正 2024-01-14 12:27:28 +09:00
r-ca 3f4614cf6b CreateBranchモデル作成, コンストラクタ, Getter作成 2024-01-14 12:27:10 +09:00
r-ca dc65cdbac8 DeletePageモデル作成, コンストラクタ, Getter作成 2024-01-14 12:25:16 +09:00
r-ca dbbdda79f4 UpdatePageモデル作成, コンストラクタ, Getter作成 2024-01-14 12:24:46 +09:00
r-ca 20c0dbd371 InsertPageモデル作成, コンストラクタ, Getter作成 2024-01-14 12:23:23 +09:00
r-ca ccaed8387a パッケージ構成変更 2024-01-14 12:17:05 +09:00
r-ca bfb6bee14a modelを定義するパッケージ作成, placeholder 2024-01-14 12:15:48 +09:00
r-ca 3b283c1b05 依存関係にJacksonを追加 2024-01-14 12:08:46 +09:00
r-ca e718e13ed9 表記ゆれ修正 2024-01-14 12:05:53 +09:00
r-ca 8277258760 ActionTypes定義 WIP 2024-01-14 11:56:44 +09:00
r-ca 062e8c8bf9 Dao作成 WIP 2024-01-14 11:31:33 +09:00
r-ca 0439370bd0 Dao作成 WIP 2024-01-14 11:30:56 +09:00
r-ca 541b748501 Dao作成 WIP 2024-01-14 11:30:43 +09:00
r-ca 88546fe89a Databaseに追加 WIP 2024-01-14 11:29:58 +09:00
r-ca 53b3ebebef Rev実装 2024-01-14 11:28:51 +09:00
r-ca a7195c4079 Converter追加 2024-01-13 15:51:35 +09:00
r-ca e848f40b8b エンティティ実装 WIP 2024-01-13 15:51:09 +09:00
r-ca 578f1ef8a8 変更履歴を管理するEntity追加 2024-01-13 15:47:29 +09:00
r-ca fca44e1753 リビジョンを管理するエンティティ作成 2024-01-13 15:46:42 +09:00
r-ca da1dba5fda DBにパブリックパスを追加 2024-01-13 15:43:38 +09:00
r-ca c614230744 WIP 2024-01-13 15:42:51 +09:00
r-ca e5c3b3aa92 依存関係追加 2024-01-13 15:37:08 +09:00
r-ca 442ac4866a インタフェース作成 2024-01-13 15:36:42 +09:00
r-ca 8d00386f20 依存関係追加 2024-01-13 15:34:43 +09:00
r-ca 9a14b1db23 VCSモジュール作成 2024-01-13 15:33:54 +09:00
ろむねこ 385f2f327d Merge pull request #60 from lacerta-doc/model/public_path
PublicPathの追加
2024-01-13 15:20:45 +09:00
ろむねこ f09d35b8c0 Merge pull request #59 from lacerta-doc/data/add_search_stub
JavaDoc対応
2024-01-13 15:18:32 +09:00
r-ca 002c78d09b 実装 2024-01-13 15:17:48 +09:00
r-ca 171c8b380c 効率化 2024-01-13 15:13:56 +09:00
r-ca 04651f3b8e 実装 WIP 2024-01-13 15:12:03 +09:00
r-ca 180428fbb7 実装 WIP 2024-01-13 15:07:11 +09:00
r-ca 955e9fa6c8 JavaDoc対応 2024-01-13 14:59:54 +09:00
ろむねこ 1d3015a7e4 Merge pull request #58 from lacerta-doc/data/add_search_stub
LacertaSearchインタフェースにスタブを追加
2024-01-13 14:39:12 +09:00
r-ca 4ce8315678 HiltModule実装 2024-01-13 14:36:59 +09:00
r-ca 3c66480f0f 受け取ったクエリをコンソールに吐き出すようにした 2024-01-13 14:35:25 +09:00
r-ca 82d0187a11 LacertaLibraryの実装を流用して取得できるように 2024-01-13 14:34:07 +09:00
r-ca dc340f1a96 継承, impl生成 2024-01-13 14:30:30 +09:00
r-ca 1d24467c09 インタフェースの戻り値を修正 2024-01-13 14:29:58 +09:00
ろむねこ bf385b952c Merge pull request #55 from lacerta-doc/data/add_search_interface
検索インタフェースをを追加
2024-01-13 14:27:29 +09:00
r-ca da207fe251 autoSearch追加 2024-01-13 14:22:50 +09:00
r-ca e7ababe65a Revert "検索オブジェクト作成 WIP"
This reverts commit 9725c1a07c.
2024-01-13 14:14:07 +09:00
r-ca cbf56dd331 Revert "検索オブジェクト作成 WIP"
This reverts commit c2aada949e.
2024-01-13 14:14:07 +09:00
r-ca 1a360057b6 Revert "検索モード実装"
This reverts commit e8f51d3717.
2024-01-13 14:14:06 +09:00
r-ca bc8e68126b Revert "iroiro"
This reverts commit 8eee8843b7.
2024-01-13 14:14:06 +09:00
r-ca ccb4dc4bb6 Revert "AUTO追加"
This reverts commit 2690eec511.
2024-01-13 14:14:06 +09:00
r-ca 2690eec511 AUTO追加 2024-01-13 14:12:06 +09:00
r-ca 8eee8843b7 iroiro 2024-01-13 14:11:49 +09:00
r-ca e8f51d3717 検索モード実装 2024-01-13 14:10:45 +09:00
r-ca c2aada949e 検索オブジェクト作成 WIP 2024-01-13 14:08:59 +09:00
r-ca 9725c1a07c 検索オブジェクト作成 WIP 2024-01-13 14:07:03 +09:00
r-ca 1090e1bf74 インタフェース生成 2024-01-13 14:03:54 +09:00
ろむねこ a9b76161b7 Merge pull request #53 from lacerta-doc/data/add_library_item_stub
LacertaLibraryインターフェースにスタブを追加
2024-01-13 14:02:05 +09:00
r-ca 37af356c92 Debug 2024-01-12 12:47:14 +09:00
r-ca af4513212d 適当な日付を表示するようにした 2024-01-12 12:43:01 +09:00
r-ca 3f58c623f3 LayoutManager追加 2024-01-12 12:40:46 +09:00
r-ca a754198d75 修正 2024-01-12 12:38:56 +09:00
r-ca 8ee554d445 ナビゲーショングラフ追加 2024-01-12 12:28:31 +09:00
r-ca c346170a9d HiltModuleのアノテーション修正 2024-01-12 12:27:51 +09:00
r-ca 5bd84e730f コンストラクタのアノテーション忘れ修正 2024-01-12 12:25:01 +09:00
r-ca 9a56846e3a デバッグロジック実装 2024-01-12 12:24:30 +09:00
r-ca 8cd49804ca 命名修正 2024-01-12 12:19:12 +09:00
r-ca 993f34e1fe レイアウト作成 2024-01-12 12:18:11 +09:00
r-ca 81ceaaf0d6 init 2024-01-12 12:16:11 +09:00
r-ca d77cedc68f 引数削除 2024-01-12 12:15:45 +09:00
r-ca 283146a81f デバッグ用フラグメント作成 2024-01-12 12:15:11 +09:00
r-ca dc4879c900 HiltModule作成 2024-01-12 12:14:01 +09:00
r-ca 2f6bd99572 JavaDoc対応 2024-01-12 12:11:17 +09:00
r-ca 527d3c309f getDocumentDetailByIdのスタブを実装 2024-01-12 11:04:18 +09:00
r-ca f326771aaf idを正しく返すように修正 2024-01-12 11:03:14 +09:00
r-ca d2ebed3934 DocumentDetailを生成する内部メソッド作成 2024-01-12 11:02:50 +09:00
r-ca 3cd1f50f34 スタブメソッド実装 2024-01-12 10:59:39 +09:00
r-ca c663d78e11 履歴を生成する内部メソッド作成 2024-01-12 10:59:16 +09:00
r-ca bb36458c4d スタブメソッド生成 2024-01-12 10:54:28 +09:00
r-ca 7107b03de9 空のコンストラクタを追加, コメントを追加 2024-01-12 10:50:19 +09:00
r-ca db4da7812b LibraryItemPageにSetterを追加 2024-01-12 10:49:44 +09:00
r-ca a6ee0c12f4 ListItemに空のコンストラクタを追加 2024-01-12 10:41:13 +09:00
r-ca f9f07972ac ListItemにSetterを追加 2024-01-12 10:40:32 +09:00
r-ca e8876cec73 JavaFakerを依存関係に追加 2024-01-12 10:32:33 +09:00
r-ca 01f0d74ab6 継承, Impl生成 2024-01-12 10:27:36 +09:00
r-ca 1036cbe5d9 スタブクラス作成, 2024-01-12 10:27:04 +09:00
r-ca b1886438e1 継承, impl生成 2024-01-12 10:26:32 +09:00
ろむねこ 5bc54f6083 Merge pull request #50 from lacerta-doc/data/add_library_item_interface
ライブラリを取得するインタフェースを実装
2024-01-12 10:24:00 +09:00
r-ca f937503840 インタフェース設計 WIP 2024-01-12 10:18:04 +09:00
r-ca 9f41632b0f リネーム 2024-01-12 09:56:18 +09:00
r-ca fb2ba1e6e5 戻り値の型変更 2024-01-12 09:55:34 +09:00
r-ca 3930ec6d9c WIP 2024-01-12 09:54:48 +09:00
r-ca ca61d2c055 ListItemモデルをラッピングするモデルを作成 2024-01-12 09:54:38 +09:00
r-ca 451e8532d1 ListItemモデルをラッピングするモデルを作成 2024-01-11 16:12:29 +09:00
r-ca 8314f850f6 Repository, Module, Implファイル作成 2024-01-11 15:55:51 +09:00
ろむねこ 78ad88206c Merge pull request #47 from lacerta-doc/model/add_list_item_model
ListItemのモデルを追加
2024-01-11 15:08:33 +09:00
r-ca 5dcb27a2e9 アイコンIDを追加 2024-01-11 15:04:42 +09:00
r-ca f833465dc8 :shared:uiを依存関係に追加 2024-01-11 15:03:44 +09:00
r-ca 4ac03fd4f3 重複を削除, 名前を統一 2024-01-11 15:02:41 +09:00
r-ca 17b2392fea drawableにアイコンを2個追加 2024-01-11 15:01:17 +09:00
r-ca 68f2ba3b59 修正 2024-01-11 14:55:06 +09:00
r-ca 91bbca54ff enum作成 2024-01-11 14:53:20 +09:00
r-ca 19dfa070fd ListItemモデル作成, コンストラクタ定義, Getter 2024-01-11 14:52:30 +09:00
r-ca b7f55ef0db ListItemモデル作成 2024-01-11 14:03:10 +09:00
ろむねこ 1c91b52431 Merge pull request #45 from lacerta-doc/improve/document_1
Readme.mdに説明を追加
2024-01-11 13:55:39 +09:00
r-ca 1b85845499 Readme.mdに説明を追加 2024-01-11 10:59:36 +09:00
ろむねこ 523008ff3f Merge pull request #41 from lacerta-doc/improve/improve_debug_menu
デバッグメニューから不要になったアイテムを削除
2024-01-10 12:28:11 +09:00
r-ca 50c2b1dc4d リンクを削除 2024-01-10 12:23:17 +09:00
r-ca ae8f7ef1f1 ナビゲーショングラフから削除 2024-01-10 12:23:03 +09:00
r-ca 27766effc1 メタデータを表示するフラグメント, クラスを削除 2024-01-10 12:22:49 +09:00
r-ca f7fe8b35b1 メニューから削除 2024-01-10 12:11:29 +09:00
r-ca 87c4738f37 ナビゲーションから削除 2024-01-10 12:10:48 +09:00
r-ca 96bfca0550 レイアウト, クラス削除 2024-01-10 12:10:37 +09:00
ろむねこ 0140c0376b Merge pull request #34 from lacerta-doc/improve/remove_page_index
Indexの廃止
2024-01-09 17:26:14 +09:00
r-ca 89a3a179bd index廃止 2024-01-09 17:23:56 +09:00
r-ca ff905d9280 index廃止 2024-01-09 17:23:08 +09:00
r-ca 4b0ea02f16 cleanup 2024-01-09 17:22:23 +09:00
r-ca ca37a97e2f Indexを廃止 2024-01-09 17:21:00 +09:00
ろむねこ 217f096a38 Merge pull request #33 from lacerta-doc/feature/add_doc_proc_missing
DocumentProcessorの不足しているメソッドを実装する(1)
2024-01-09 17:16:11 +09:00
r-ca 0c59c85b28 addNewPageBeforeIndex実装 2024-01-09 17:12:13 +09:00
r-ca e3a5dee36c addNewPageAfterIndex実装 2024-01-09 17:07:37 +09:00
r-ca 1805cd7d73 WIP 2024-01-09 17:05:25 +09:00
r-ca 513a91b41e throws追加 2024-01-09 17:04:42 +09:00
ろむねこ 3f2534b1eb Merge pull request #30 from lacerta-doc/improve/improve_file_manager
FileManagerの修正
2024-01-09 16:26:20 +09:00
r-ca af836ed486 修正 2024-01-09 16:18:02 +09:00
r-ca fe3d332a36 修正 2024-01-09 15:56:47 +09:00
r-ca 5fb938c263 リファクタリング 2024-01-09 15:54:14 +09:00
r-ca 3cafa05b27 修正 WIP 2024-01-09 15:53:20 +09:00
r-ca 9065ee1e1f ログ追加, 保存場所が異常になる問題を修正 2024-01-09 15:52:47 +09:00
r-ca 36ecb3ab13 新しいインスタンスを生成できるようにした 2024-01-09 15:30:18 +09:00
r-ca 01e111bdd5 必要に応じてインスタンスを生成するようにした 2024-01-09 15:27:42 +09:00
r-ca 65a25ad228 Revert "Revert "WIP""
This reverts commit 1b676f8368.
2024-01-09 15:18:31 +09:00
r-ca 1efac1ffb6 Revert "Revert "新しいインスタンスを作成するメソッドを作った""
This reverts commit 27aa6a2f15.
2024-01-09 15:18:30 +09:00
r-ca c05d45afdd fix 2024-01-09 15:11:15 +09:00
r-ca 27aa6a2f15 Revert "新しいインスタンスを作成するメソッドを作った"
This reverts commit 943ca1daf5.
2024-01-09 15:10:27 +09:00
r-ca 1b676f8368 Revert "WIP"
This reverts commit 30ed65079b.
2024-01-09 15:10:27 +09:00
r-ca 30ed65079b WIP 2024-01-09 15:10:19 +09:00
r-ca 943ca1daf5 新しいインスタンスを作成するメソッドを作った 2024-01-09 15:05:28 +09:00
r-ca 8913f8118d ファイルが存在しない場合に作成するメソッドを追加 2024-01-09 14:31:01 +09:00
r-ca 4cf3ff5f3c createFileの場合でも親ディレクトリを生成するように 2024-01-09 14:24:43 +09:00
r-ca 360580eff2 自動でパス解決させる 2024-01-09 14:20:06 +09:00
r-ca 730640425f 暫定)エラーハンドリング 2024-01-09 14:09:27 +09:00
r-ca 69b60944b4 暫定)エラーハンドリング 2024-01-09 14:09:05 +09:00
r-ca e8804e8f84 close処理修正 2024-01-09 14:03:29 +09:00
r-ca 7951bef6e0 保存処理 2024-01-09 14:02:07 +09:00
r-ca fbde892f40 ifNotExist実装 2024-01-09 13:52:00 +09:00
r-ca 022e7e278a fix 2024-01-09 13:51:19 +09:00
r-ca d88c9c2030 isExistを引数なしでも実行できるように 2024-01-09 13:50:47 +09:00
r-ca e055f8fe9e ディレクトリがない場合だけ新規作成するメソッド追加 WIP 2024-01-09 13:49:46 +09:00
r-ca 1af344a6d3 throws追加, 実装WIP 2024-01-09 13:47:58 +09:00
r-ca f3ac07e633 throws追加 2024-01-09 13:45:27 +09:00
r-ca a887446d21 isExistの実装を変更 2024-01-09 13:44:28 +09:00
r-ca b3a4207762 アンコメント 2024-01-09 13:42:36 +09:00
r-ca 0439a998e3 createDirectory実装 fix 2024-01-09 12:53:18 +09:00
r-ca a2eb04e96b createDirectory実装 WIP 2024-01-09 12:52:39 +09:00
r-ca b0c97da382 createFile実装 2024-01-09 12:52:18 +09:00
r-ca 3a9053e987 impl 2024-01-09 12:50:01 +09:00
r-ca 7cdb005ebb ファイル/ディレクトリを作成するメソッドを定義 2024-01-09 12:49:51 +09:00
r-ca 3a270cdc9f loggerをfinalに 2024-01-09 12:48:32 +09:00
r-ca f380e7eef8 不要なimportを削除 2024-01-09 12:48:11 +09:00
r-ca 8ca642c7f4 getFileRef実装 2024-01-09 12:46:20 +09:00
r-ca c28d94e417 loadBitmapInternal, loadBitmap実装 2024-01-09 12:44:40 +09:00
r-ca 8587c6a707 リファクタリング 2024-01-09 12:42:16 +09:00
r-ca f3465bcf81 loadXml, loadXmlInternal実装 2024-01-09 12:42:03 +09:00
r-ca 3e2a295a22 重複したメソッドを削除 2024-01-09 12:40:07 +09:00
r-ca f36dc05db1 リファクタリング 2024-01-09 12:39:36 +09:00
r-ca 78525d634a saveBitmap実装 2024-01-09 12:39:05 +09:00
r-ca 0736a7326a saveBitmapInternal実装 2024-01-09 12:38:48 +09:00
r-ca 76f4a6c228 saveXml実装 2024-01-09 12:37:23 +09:00
r-ca 3a41c4e105 Save系のメソッドからチェーンできる必要はなさそうなので戻り値をvoidに fix 2024-01-09 12:36:55 +09:00
r-ca 301678658c Save系のメソッドからチェーンできる必要はなさそうなので戻り値をvoidに 2024-01-09 12:36:35 +09:00
r-ca e20b3f4a35 修正 2024-01-09 12:34:42 +09:00
r-ca e0a344bb48 Xmlを保存するInternalメソッド実装 2024-01-09 12:34:10 +09:00
r-ca a2eda32183 getCurrentInstance実装 2024-01-09 12:32:50 +09:00
r-ca 0f8b71e739 Impl生成 2024-01-09 12:31:57 +09:00
r-ca 91fe39d141 読み書きのインタフェースを実装 2024-01-09 12:31:31 +09:00
r-ca 0dced5d0dc ディレクトリ/ファイルの判定メソッドを実装 2024-01-09 12:25:25 +09:00
r-ca 9e5b2dad46 読み書きの確認の前にファイルの存在を確認するように 2024-01-09 12:24:56 +09:00
r-ca 5c931ece3f ファイルの存在確認を実装 2024-01-09 12:23:59 +09:00
r-ca 3b861e3a07 読み込み/書き込み権限の確認を実装 WIP 2024-01-09 12:23:37 +09:00
r-ca 37497cb1ea configの書き込みを実装 2024-01-09 12:22:09 +09:00
r-ca 3efaf30b95 configの書き込みを実装 2024-01-09 12:20:15 +09:00
r-ca 9142696fac resolve実装 2024-01-09 12:19:40 +09:00
r-ca d5cf2f31d6 resolve実装 2024-01-09 12:18:03 +09:00
r-ca fcda369a2e resolveと競合するのでStringのsetPathを廃止 2024-01-09 12:15:12 +09:00
r-ca 9faf5c9055 実装 WIP 2024-01-09 12:14:43 +09:00
r-ca 0d78f9fa7c rootの合致チェックをフラグで切り替えるように 2024-01-09 12:00:26 +09:00
r-ca 8ebc96fa98 rootの合致チェックをフラグで切り替えるように 2024-01-09 12:00:16 +09:00
r-ca 2b8766db0a 自動でディレクトリを作成するかを切り替えるフラグを追加 2024-01-09 11:58:21 +09:00
r-ca 2233bb1a35 Impl WIP 2024-01-09 11:56:50 +09:00
r-ca c513b44e8d Impl WIP 2024-01-09 11:55:37 +09:00
r-ca cc35d8a5ea Impl WIP 2024-01-09 11:55:24 +09:00
r-ca 16ac36dd4f 既存の実装を削除 2024-01-09 11:48:46 +09:00
r-ca eadd65a334 WIP 2024-01-09 11:48:06 +09:00
r-ca 3ed835ef2f 既存の実装を削除 2024-01-09 11:34:12 +09:00
r-ca 4a66ed786d コメントアウト(エラーを減らすため) 2024-01-08 16:49:11 +09:00
r-ca 89e2f15a29 コメントアウト(エラーを減らすため) 2024-01-08 16:47:42 +09:00
ろむねこ 717b8e9637 Merge pull request #23 from lacerta-doc/source/add_files
画像ファイルの追加(保存), メタデータの管理
2024-01-08 16:18:36 +09:00
ろむねこ 3e24896bd1 Merge pull request #11 from lacerta-doc/feature/library/add_document_list
Feature/library/add document list
2024-01-08 16:14:10 +09:00
ろむねこ 94943184c4 Merge pull request #20 from lacerta-doc/r-ca-patch-1
Update issue templates
2024-01-08 15:58:17 +09:00
ろむねこ 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 3205923eb5 修正 2024-01-08 15:15:12 +09:00
r-ca 441479d9b9 デバッグ実装 2024-01-08 15:13:58 +09:00
r-ca 099d900ffd close処理を実装 2024-01-08 15:11:54 +09:00
r-ca 080e86d05d デバッグ処理実装 2024-01-08 15:11:28 +09:00
r-ca 6d6f4790a0 ページを修正 2024-01-08 15:09:48 +09:00
r-ca 1a31d63786 Currentの確認処理を修正 2024-01-08 15:09:17 +09:00
r-ca ce834a7cfd Currentを確認するメソッド追加 2024-01-08 15:06:33 +09:00
r-ca f7b8006fa4 保存ロジック修正 2024-01-08 14:42:29 +09:00
r-ca 5bb2f0d387 修正漏れ 2024-01-08 14:37:50 +09:00
r-ca e54cc07e9d ファイルマネージャーを共用するように 2024-01-08 14:37:10 +09:00
r-ca bc5d0edd68 unused警告を無効に 2024-01-08 12:52:45 +09:00
r-ca 3540f20c46 ログ追加 2024-01-08 12:52:10 +09:00
r-ca 164b6ea6d4 ログ追加 2024-01-08 12:50:44 +09:00
r-ca 8fdefb9850 Logger追加 2024-01-08 12:50:26 +09:00
r-ca 8e4018beb0 必要のなかった戻り値を削除 2024-01-08 12:49:52 +09:00
r-ca ddd2b097e6 import整理 2024-01-08 12:48:20 +09:00
r-ca 9fe646fad8 import整理 2024-01-08 12:48:04 +09:00
r-ca 5e1d1f6a76 書き換えない変数をfinalに 2024-01-08 12:47:39 +09:00
r-ca 649d6ccfdc ログ修正 2024-01-08 12:46:42 +09:00
r-ca dccb3090e1 Merge branch 'common/improve_logger' into source/add_files_refactor1 2024-01-08 12:43:58 +09:00
r-ca de4a501c3f Revert "KeyValueログモデル作成"
This reverts commit b75759b650.
2024-01-08 12:43:49 +09:00
r-ca 28b5f97c31 Revert "移動"
This reverts commit 3453d224e1.
2024-01-08 12:43:49 +09:00
r-ca 4656914203 Revert "Key-Valueなログを出力しやすくした"
This reverts commit a439bbd888.
2024-01-08 12:43:48 +09:00
r-ca 1996d8dc4a Revert "修正"
This reverts commit 3b6d88bafd.
2024-01-08 12:43:48 +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
r-ca 3b6d88bafd 修正 2024-01-08 12:41:10 +09:00
r-ca a439bbd888 Key-Valueなログを出力しやすくした 2024-01-08 12:39:37 +09:00
r-ca 3453d224e1 移動 2024-01-08 12:36:39 +09:00
r-ca b75759b650 KeyValueログモデル作成 2024-01-08 12:35:30 +09:00
r-ca a78cac8178 リファクタリング 2024-01-08 12:29:24 +09:00
r-ca a42ef8f4fc 改行の訂正 2024-01-08 12:27:00 +09:00
r-ca 5c16ea6e21 メタデータの書き込みに対応 2024-01-08 12:23:48 +09:00
r-ca f000addbce Documentオブジェクト読み込みメソッド作成 2024-01-08 12:20:12 +09:00
r-ca 73fa8201d6 Documentオブジェクト保存メソッド作成 2024-01-08 12:17:16 +09:00
r-ca 5c0fd4fdbb WIP Documentオブジェクト保存メソッド作成 2024-01-08 12:16:03 +09:00
r-ca 6e514b216a パーサー作り直し 2024-01-08 12:14:23 +09:00
r-ca 59ba2cdcfc WIP 2024-01-08 12:03:26 +09:00
r-ca b3be0b9e21 Initメソッド作り直し 2024-01-08 12:00:22 +09:00
r-ca a836410cbd ファイルにStringを保存するメソッド作成 2024-01-08 11:56:24 +09:00
r-ca 15d454690e ファイルにStringを保存するメソッド作成 WIP 2024-01-08 11:54:13 +09:00
r-ca 2ba243ea4a ファイルの中身をStringで読み出すメソッド作成 2024-01-08 11:48:17 +09:00
r-ca 52657fdbbd ファイルを取得するメソッド作成 2024-01-08 11:42:58 +09:00
r-ca 88cd58f920 いくつかのメソッドで対応する引数を増やした 2024-01-08 11:38:05 +09:00
r-ca 1ee0a1b8ea ファイル名から検索するメソッドを追加 2024-01-08 11:35:09 +09:00
r-ca 656482e968 一気に移動する処理を作成 WIP 2024-01-08 11:32:46 +09:00
r-ca efc16423d4 ログ 2024-01-08 11:30:48 +09:00
r-ca 38db65c9d3 挙動修正 2024-01-08 11:30:30 +09:00
r-ca 31a0220b90 Currentまでを自動で作成するメソッドを作成 2024-01-08 11:27:59 +09:00
r-ca 5cb57997b8 WIP 2024-01-08 11:27:09 +09:00
r-ca 0fade2c41b ファイルマネージャにメソッド追加, 微修正 2024-01-08 11:26:18 +09:00
r-ca 5a0b215626 ファイルマネージャにメソッド追加 WIP 2024-01-08 11:24:29 +09:00
r-ca 49775a1f49 WIP 2024-01-08 11:23:06 +09:00
r-ca 552f0e42b5 親ディレクトリが不足している場合は作成するように WIP 2024-01-08 11:19:05 +09:00
r-ca b8e70cd015 ログポイント追加 2024-01-08 11:14:48 +09:00
r-ca 67350639c7 ファイル作成/削除を追加 WIP 2024-01-08 11:12:51 +09:00
r-ca eb6a13baba ボタン追加WIP 2024-01-08 11:00:55 +09:00
r-ca bd0a16bec6 ボタン追加WIP 2024-01-08 10:56:33 +09:00
r-ca 1019b1d035 init処理を追加 2024-01-08 10:54:46 +09:00
r-ca 2f0460a9ea サンプルにパスを追加 2024-01-08 10:53:20 +09:00
r-ca 2b4a24de7c クラス変数作成 2024-01-08 10:51:39 +09:00
r-ca b683c311df クラス変数作成 2024-01-08 10:51:10 +09:00
r-ca 4bbb119729 Listで追加するメソッドを実装 2024-01-08 10:50:31 +09:00
r-ca 8c714d5193 修正 2024-01-08 09:52:19 +09:00
r-ca f441a957f7 pluginにHiltを追加 2024-01-07 19:37:38 +09:00
r-ca dfe5c36e9e リファクタリング 2024-01-07 19:36:49 +09:00
r-ca c54967f016 WIP 2024-01-07 19:22:57 +09:00
r-ca 95beda8cc2 WIP 2024-01-07 18:07:43 +09:00
r-ca 02d72ffa68 グローバル変数作成 2024-01-07 18:04:07 +09:00
r-ca b159db97bb サンプルを生成するメソッド作成 2024-01-07 18:03:33 +09:00
r-ca 1653da9c94 依存関係に追加 2024-01-07 18:01:33 +09:00
r-ca 1b00f2c64e WIP 2024-01-07 18:00:40 +09:00
r-ca de668412fc WIP 2024-01-07 17:55:39 +09:00
r-ca 07042f4e91 リスナー作成 いろいろ 2024-01-07 17:52:56 +09:00
r-ca 78c36df105 レイアウト修正 2024-01-07 17:52:17 +09:00
r-ca 14837f83cc 依存関係追加 2024-01-07 17:48:44 +09:00
r-ca 4fd490ee12 Factory作成 2024-01-07 17:47:47 +09:00
r-ca d453c0705f import 2024-01-07 17:44:42 +09:00
r-ca aca90aa6e1 依存関係に追加 2024-01-07 16:38:12 +09:00
r-ca f52d00f930 リスナー追加 2024-01-07 16:37:07 +09:00
r-ca 9b70adecac レイアウト修正 WIP 2024-01-07 16:36:19 +09:00
r-ca 80c5bca179 WIP 2024-01-07 16:32:44 +09:00
r-ca 0a639d4b05 レイアウト修正 2024-01-07 16:30:57 +09:00
r-ca 3ed6f7b5a6 テーマをインポート 2024-01-07 16:29:22 +09:00
r-ca f86dc981b4 レイアウト修正 WIP 2024-01-07 16:28:33 +09:00
r-ca c9eda4837b いろいろ 2024-01-07 16:26:46 +09:00
r-ca 4d72fc10bf 引数の処理を削除 2024-01-07 16:25:38 +09:00
r-ca c9a594763d デバッグ用フラグメント作成 2024-01-07 16:25:04 +09:00
r-ca 5a93b79b07 依存関係追加 2024-01-07 16:23:33 +09:00
r-ca 8a5cbe7b18 メタデータのパース処理実装 WIP 2023-12-25 15:51:11 +09:00
r-ca ca153f5602 Injectできるように 2023-12-25 15:45:42 +09:00
r-ca 73f553cff3 パーサーを依存関係に追加 2023-12-25 15:44:15 +09:00
r-ca bd1a1d56cb XMLMetaのパーサーを作成 Impl WIP 2023-12-25 15:43:03 +09:00
r-ca b98fa18cae XMLMetaのパーサーを作成 Impl WIP 2023-12-25 15:34:17 +09:00
r-ca 4875394417 XMLMetaのパーサーを作成 Repository WIP 2023-12-25 15:33:56 +09:00
r-ca b675e7ffa9 XMLMetaのパーサーを作成 WIP 2023-12-25 15:32:57 +09:00
r-ca 453fa4c4cf utilsの依存関係にmodelを追加 2023-12-25 15:31:39 +09:00
r-ca ce3565c082 依存修正 2023-12-25 15:31:10 +09:00
r-ca 523a66429e モデル移動 2023-12-25 15:30:13 +09:00
r-ca b7062a4942 一旦コメントアウト 2023-12-25 15:15:58 +09:00
r-ca 43c7f4ae0f 一旦コメントアウト 2023-12-25 15:15:55 +09:00
r-ca 77702b9da5 Revert "XMLメタデータを読み取るメソッド追加"
This reverts commit d2950ab781.
2023-12-25 15:14:09 +09:00
r-ca d2950ab781 XMLメタデータを読み取るメソッド追加 2023-12-25 15:13:55 +09:00
r-ca 4aefae6b51 XMLメタデータを読み取るメソッド追加 2023-12-25 15:07:00 +09:00
r-ca f2ed0515f8 モデルを移動 2023-12-25 15:05:49 +09:00
r-ca b30834479e initメソッド実装 WIP 2023-12-25 15:04:16 +09:00
r-ca aa0728e97b initメソッド作成 2023-12-25 15:03:04 +09:00
r-ca 3affd2dd2f ログ追加 2023-12-25 15:00:14 +09:00
r-ca 9534e36a9d LoggerをInjectした 2023-12-25 14:57:21 +09:00
r-ca 3bfcc9fd63 close()を追加 WIP 2023-12-25 14:55:02 +09:00
r-ca e3186249a0 XmlMetaProcessor廃止 2023-12-25 14:53:12 +09:00
r-ca c8517ad814 Impl 2023-12-25 14:49:04 +09:00
r-ca ffb6ebb358 Repository追加 2023-12-25 14:46:45 +09:00
r-ca a4db519fcf 操作メソッド追加 2023-12-25 14:29:10 +09:00
r-ca 5ff6ac32ba コンストラクタ, Getter, Setter 2023-12-25 14:25:22 +09:00
r-ca bc06438811 メタデータのモデル作成 WIP 2023-12-25 14:23:12 +09:00
r-ca 6adcbf81c6 メタデータのモデル作成 WIP 2023-12-25 14:23:08 +09:00
r-ca bc24ec45af メタデータのプロセッサーを作成 2023-12-25 14:16:46 +09:00
r-ca ca3b4d78a5 Revert "メタデータのプロセッサーを作成"
This reverts commit c1b8722b82.
2023-12-25 14:16:13 +09:00
r-ca c1b8722b82 メタデータのプロセッサーを作成 2023-12-25 14:15:54 +09:00
r-ca 646627ac49 一旦コメントアウト 2023-12-25 13:34:04 +09:00
r-ca 6a98deab83 FileManagerに普通のファイル読み書きを追加 WIP 2023-12-25 13:33:28 +09:00
r-ca 92b48336ac FileManagerに普通のファイル読み書きを追加 WIP 2023-12-25 13:30:46 +09:00
r-ca 81d545b90b addNewPage実装 WIP 2023-12-25 13:29:02 +09:00
r-ca 9daccbb084 山っぽいものを描画するように 2023-12-25 12:13:22 +09:00
r-ca a47d652275 pngで保存するように変更 2023-12-25 11:57:48 +09:00
r-ca e55b5709dd pngで保存するように変更 2023-12-25 11:57:44 +09:00
r-ca 9fc5d160ac pngで保存するように変更 2023-12-25 11:57:37 +09:00
r-ca 544b09dc39 デバッグメニューロジック実装 2023-12-25 11:55:42 +09:00
r-ca bc42d59471 デバッグメニューレイアウト修正 2023-12-25 11:52:10 +09:00
r-ca 5d46fc3e81 デバッグメニューレイアウト作成 2023-12-25 11:50:13 +09:00
r-ca 9a17910862 saveの中身を実装 WIP 2023-12-25 11:49:01 +09:00
r-ca 8441b88ab3 save/load/removeを追加 Impl WIP 2023-12-25 11:46:54 +09:00
r-ca 92d147ab65 Revert "save/load/removeを追加 Impl WIP"
This reverts commit 1eee31316a.
2023-12-25 11:45:33 +09:00
r-ca 1eee31316a save/load/removeを追加 Impl WIP 2023-12-25 11:44:58 +09:00
r-ca 302eccfdfe save/load/removeを追加 Impl WIP 2023-12-25 11:42:51 +09:00
r-ca 93d1fa3f19 save/load/removeを追加 2023-12-25 11:41:37 +09:00
r-ca 2154e67178 WIP 2023-12-25 11:38:14 +09:00
r-ca de9b78035a Merge remote-tracking branch 'origin/source/add_files' into source/add_files 2023-12-24 15:07:30 +09:00
r-ca 7cb5b1ca7c アノテーション忘れ修正 2023-12-24 15:07:17 +09:00
r-ca 85c419c3ea アノテーション忘れ修正 2023-12-24 15:07:17 +09:00
r-ca 685bdd56f8 メニューに追加 2023-12-24 15:07:16 +09:00
r-ca a32ea3568f Navigationに追加 2023-12-24 15:07:16 +09:00
r-ca 275cd77f53 Impl, Factory修正 2023-12-24 15:07:15 +09:00
r-ca a8274d3882 ロジック実装 2023-12-24 15:07:15 +09:00
r-ca 8b0b58ce99 ID変更 2023-12-24 15:07:14 +09:00
r-ca eeb5387cdf WIP レイアウト 2023-12-24 15:07:14 +09:00
r-ca 41d5f8d71f ファイルマネージャーのデバッグ用フラグメント作成 2023-12-24 15:07:13 +09:00
r-ca b90ef6a487 Factory作成, 実装 2023-12-24 15:07:13 +09:00
r-ca 734f6eb41d Module実装 2023-12-24 15:07:13 +09:00
r-ca 4f762627cf Module作成 2023-12-24 15:07:12 +09:00
r-ca 85a1f8a505 create/remove実装 2023-12-24 15:07:12 +09:00
r-ca 98232dc403 create/removeの引数変更 2023-12-24 15:07:11 +09:00
r-ca e925893ad2 getList修正 2023-12-24 15:07:11 +09:00
r-ca 2f21ecd6bd getList修正 2023-12-24 15:07:10 +09:00
r-ca d203b1b76e Revert "パッケージ整理"
This reverts commit f2dfd2ca56.
2023-12-24 15:07:10 +09:00
r-ca a15383d420 Revert "WIP"
This reverts commit bbad45fbbd.
2023-12-24 15:07:09 +09:00
r-ca 6433b9a1ae WIP 2023-12-24 15:07:09 +09:00
r-ca 1a1446ac62 パッケージ整理 2023-12-24 15:07:09 +09:00
r-ca 60544c7905 Impl実装 WIP 2023-12-24 15:07:08 +09:00
r-ca 7e7d72f903 Impl実装 WIP 2023-12-24 15:07:08 +09:00
r-ca 5a468e37f9 なんかもう全部変えた 2023-12-24 15:07:07 +09:00
r-ca 25cbc32ef9 リネーム 2023-12-24 15:07:07 +09:00
r-ca 310944f51e ImplクラスInit 2023-12-24 15:07:06 +09:00
r-ca c90715b0f5 Repository実装 2023-12-24 15:07:06 +09:00
r-ca effdd8e9f3 リネーム 2023-12-24 15:07:05 +09:00
r-ca b07d370e69 モジュール整理 2023-12-24 15:07:05 +09:00
r-ca f51313411b 依存関係にHiltを追加 2023-12-24 15:07:04 +09:00
r-ca c183327842 依存関係にJGitを追加 2023-12-24 15:07:04 +09:00
r-ca 95d9af1281 インポート追加 2023-12-24 15:07:04 +09:00
r-ca 413c42fdc1 Impl実装 WIP 2023-12-24 15:07:03 +09:00
r-ca 7eca8e9528 リポジトリ更新 2023-12-24 15:07:03 +09:00
r-ca a0deb45fa0 WIP 2023-12-24 15:07:02 +09:00
r-ca e19198446b Factory作成 2023-12-24 15:07:02 +09:00
r-ca e0fe27eadd Impl, Moduleクラス作成 2023-12-24 15:07:01 +09:00
r-ca 83707f8bec パッケージ整理 2023-12-24 15:07:01 +09:00
r-ca c3d9bb0cf9 DocumentProcessor リポジトリ作成 2023-12-24 15:07:00 +09:00
r-ca 39d356841b 依存関係修正 2023-12-24 15:07:00 +09:00
r-ca 4db67a59d7 Init 2023-12-24 15:07:00 +09:00
r-ca 26f5968a4a Init WIP 2023-12-24 15:06:56 +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
nero 54f2076eda ArrayListを削除(使ってなかったので) 2023-12-22 10:50:23 +09:00
nero c31a590ce3 例外時に出力するメッセージを変更 2023-12-22 10:29:57 +09:00
r-ca 21f2f55531 アノテーション忘れ修正 2023-12-21 16:55:50 +09:00
r-ca 02f1ac13cf アノテーション忘れ修正 2023-12-21 16:54:52 +09:00
r-ca e0f634fcb6 メニューに追加 2023-12-21 16:54:13 +09:00
r-ca 69a0b392ff Navigationに追加 2023-12-21 16:53:55 +09:00
r-ca 0d42dc3461 Impl, Factory修正 2023-12-21 16:53:17 +09:00
r-ca 2aa6bf8c5b ロジック実装 2023-12-21 16:49:17 +09:00
r-ca 123145b6a8 ID変更 2023-12-21 16:49:13 +09:00
r-ca e723174b81 WIP レイアウト 2023-12-21 16:45:26 +09:00
r-ca c1b3c06a9d ファイルマネージャーのデバッグ用フラグメント作成 2023-12-21 16:38:59 +09:00
nero 2402936a19 重複事項を削除 2023-12-21 16:25:10 +09:00
nero ba87fb283e コメント追加 2023-12-21 16:19:34 +09:00
nero c35c4e829e コメントと例外が起こった際の処理を入れた 2023-12-21 16:16:07 +09:00
nero 017748b4a6 保存されたデータを一覧表示できるようにした 2023-12-21 16:03:49 +09:00
r-ca a23010b535 Factory作成, 実装 2023-12-21 15:13:31 +09:00
r-ca 29e0dca2c7 Module実装 2023-12-21 15:12:21 +09:00
r-ca a1c87535c6 Module作成 2023-12-21 15:09:15 +09:00
r-ca a0c4718b3a create/remove実装 2023-12-21 15:08:32 +09:00
r-ca 7c0d82f25c create/removeの引数変更 2023-12-21 15:07:32 +09:00
r-ca 5f74123c63 getList修正 2023-12-21 15:06:56 +09:00
r-ca d0543d89b9 getList修正 2023-12-21 15:05:56 +09:00
r-ca fd74f5eab0 Revert "パッケージ整理"
This reverts commit f2dfd2ca56.
2023-12-21 15:03:51 +09:00
r-ca 1bac068c8c Revert "WIP"
This reverts commit bbad45fbbd.
2023-12-21 15:03:51 +09:00
r-ca bbad45fbbd WIP 2023-12-21 15:03:44 +09:00
r-ca f2dfd2ca56 パッケージ整理 2023-12-21 15:02:02 +09:00
r-ca e3d6826912 Impl実装 WIP 2023-12-21 14:59:12 +09:00
nero c2ee49d274 保存されているデータ件数を表示する機能 2023-12-21 14:54:58 +09:00
r-ca b28a939792 Impl実装 WIP 2023-12-21 14:54:45 +09:00
nero dd98602309 コメント追加 2023-12-21 14:54:06 +09:00
r-ca 7ba70cc84b なんかもう全部変えた 2023-12-21 14:53:04 +09:00
r-ca 865d8b994c リネーム 2023-12-21 14:49:36 +09:00
r-ca 1c5325711a ImplクラスInit 2023-12-21 14:45:35 +09:00
r-ca aff7af76d4 Repository実装 2023-12-21 14:44:36 +09:00
r-ca 9fecefeb4e リネーム 2023-12-21 14:41:06 +09:00
r-ca 577453a4db モジュール整理 2023-12-21 14:35:41 +09:00
r-ca 814dfd23fa 依存関係にHiltを追加 2023-12-21 14:31:04 +09:00
r-ca 0309864d0b 依存関係にJGitを追加 2023-12-21 14:29:53 +09:00
r-ca 947c2aa2ab インポート追加 2023-12-21 14:29:16 +09:00
r-ca 0f4ce1b9b1 Impl実装 WIP 2023-12-21 14:27:28 +09:00
r-ca 8a851e4f11 リポジトリ更新 2023-12-21 14:26:59 +09:00
r-ca a298247824 WIP 2023-12-21 14:09:00 +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
r-ca 59e32fe696 Factory作成 2023-12-21 14:00:22 +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 15beb0af57 Impl, Moduleクラス作成 2023-12-21 12:47:23 +09:00
r-ca 14e7fbd127 パッケージ整理 2023-12-21 12:46:49 +09:00
r-ca 144ff7dfd2 DocumentProcessor リポジトリ作成 2023-12-21 12:44:42 +09:00
r-ca d030847992 依存関係修正 2023-12-21 12:42:50 +09:00
r-ca eb1ad1f4af Init 2023-12-21 12:27:50 +09:00
r-ca fc048c9bd6 Init WIP 2023-12-21 12:27:28 +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
Fuchimoto1234 a5efab5838 アイテムのレイアウトを作成 2023-12-20 10:00:16 +09:00
Fuchimoto1234 f186064f6e 途中 2023-12-19 12:56:31 +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
Fuchimoto1234 59a35cbb4a 依存関係追加 2023-12-19 10:36:27 +09:00
Fuchimoto1234 a78e60416d 依存関係追加 2023-12-19 10:34:31 +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
Fuchimoto1234 ac5a950ce3 依存関係追加 2023-12-18 15:16:57 +09:00
nero 5a92c210f7 依存関係追加 2023-12-18 15:15:54 +09:00
171 changed files with 5050 additions and 1162 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の概要 -->
# 詳細
<!-- 改善内容の詳細 -->
# 影響箇所
<!-- 予想される影響箇所(省略可) -->
@@ -1,10 +1,20 @@
---
name: 新機能用テンプレート
about: 新規開発Issue用テンプレート
about: 新規能用テンプレート
title: ''
labels: ''
labels: 新機能
assignees: ''
---
WIP
# 概要
<!-- Issueの概要 -->
# 詳細
<!-- 機能の詳細 -->
# 関連Issue
<!-- 関連するIssueがあれば -->
# 影響箇所
<!-- 予想される影響箇所(省略可) -->
+18
View File
@@ -0,0 +1,18 @@
# 概要
<!-- PRの概要 -->
# 関連Issue
- #000 <!-- 関連するIssueを指定(なければ省略可) -->
# 詳細
<!-- 詳細 -->
# 影響箇所
<!-- 予想される影響箇所 -->
# チェック
<!-- 参考用, 全てにチェックがついている必要があるわけではありません -->
- [ ] 機能として完成している
- [ ] WIP(Work in progress: 作業中)
- [ ] 正常にビルド/起動ができる
- [ ] 既存の機能を壊していない
-10
View File
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<value>
<entry key="app">
<State />
</entry>
</value>
</component>
</project>
+2 -1
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">
@@ -25,10 +26,10 @@
<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" />
<option value="$PROJECT_DIR$/vcs" />
</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">
+18
View File
@@ -0,0 +1,18 @@
# 概要
<!-- PRの概要 -->
# 関連Issue
- #000 <!-- 関連するIssueを指定(なければ省略可) -->
# 詳細
<!-- 詳細 -->
# 影響箇所
<!-- 予想される影響箇所 -->
# チェック
<!-- 参考用, 全てにチェックがついている必要があるわけではありません -->
- [ ] 機能として完成している
- [ ] WIP(Work in progress: 作業中)
- [ ] 正常にビルド/起動ができる
- [ ] 既存の機能を壊していない
+38
View File
@@ -7,6 +7,44 @@ WIP
## メモ
- アイコン: Google Material Icons https://fonts.google.com/icons (Weight:300, Grade:0, Optical size: 24px)
## モジュール構成
### モジュール一覧
- `component` : コンポーネント
- `common` : 共通コンポーネント
- UIの中で共通で使う要素(メニューアイテムとか)
- `scanner` : スキャナー
- スキャナーの実装
- `viewer` : ビューワー
- ドキュメントビューワーの実装
- `data` : データ
- UIからデータを取得/保存するためのラッパーモジュール
- `Document` : ドキュメント関係
- WIP(JavaDocを参照してください, 余裕があったら追記します)
- `feature` : 機能モジュール(ナビゲーションからみた機能で分割)
- `common`: 共通機能
- 設定画面とか、どこからでも呼ばれうる画面
- `debug`: デバッグメニュー
- `home`: ホーム画面
- `library`: ライブラリ画面
- `scan`: スキャン画面
- `search`: 検索画面
- `model` : モデル
- データモデルをまとめたモジュール (WIP)
- `document` : ドキュメント
- `meta` : メタデータ
- `processor` : プロセッサ
- いくつかの処理をまとめたモジュール
- `DocumentProcessor` : ドキュメント処理(ドキュメントにページを追加したり更新したり)
- `shared` :
- 共有リソース
- `source` : ソース
- (バックエンドが使うのでとりあえず後回し、フロントから直接操作することは絶対にありません)
- `utils` : ユーティリティ
- ちょっとしたユーティリティをまとめたモジュール
- `LacertaLogger` : ロガー
- `XmlMetaParser` : XMLメタデータパーサー(フロントから直接操作することは絶対にありません)
## コーディング規則/推奨(WIP)
### 規則
- `// TODO`コメントには任意のsuffixを付ける
+19 -29
View File
@@ -11,8 +11,11 @@ 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"
}
@@ -23,14 +26,18 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
applicationIdSuffix ".debug"
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'
applicationIdSuffix ".beta"
matchingFallbacks = ['release']
}
release {
@@ -52,32 +59,6 @@ dependencies {
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso.core
// 内部モジュール
// Feature
implementation project(':feature:home')
implementation project(':feature:search')
implementation project(':feature:library')
implementation project(':feature:scan')
implementation project(':feature:debug') // デバッグメニュー
// // Component
// implementation project(':component:common')
// implementation project(':component:scanner')
// implementation project(':component:viewer')
// // Data
// implementation project(':data:repository')
//
// // Source
// implementation project(':data:source:database')
// 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
@@ -87,4 +68,13 @@ dependencies {
implementation libs.navigation.ui
implementation libs.navigation.dynamic.features.fragment
// Feature
implementation project(':feature:home')
implementation project(':feature:search')
implementation project(':feature:library')
implementation project(':feature:scan')
implementation project(':feature:debug') // デバッグメニュー
implementation project(':data')
implementation project(':shared:ui')
}
+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>
@@ -1,6 +1,7 @@
package one.nem.lacerta;
import android.app.Application;
import android.util.Log;
import com.google.android.material.color.DynamicColors;
@@ -12,7 +13,13 @@ public class LacertaApplication extends Application {
public void onCreate() {
super.onCreate();
// DynamicColorを有効化
DynamicColors.applyToActivitiesIfAvailable(this);
if (DynamicColors.isDynamicColorAvailable()) {
Log.d("DynamicColors", "DynamicColors is available. Applying to activities...");
DynamicColors.applyToActivitiesIfAvailable(this);
} else {
Log.d("DynamicColors", "DynamicColors is not available.");
}
}
}
@@ -1,12 +1,15 @@
package one.nem.lacerta;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.FragmentManager;
import androidx.navigation.NavController;
import androidx.navigation.fragment.NavHostFragment;
import androidx.navigation.ui.NavigationUI;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
@@ -25,16 +28,23 @@ public class MainActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Debug
FragmentManager supportFragmentManager = getSupportFragmentManager();
// Init navigation
try {
FragmentManager supportFragmentManager = getSupportFragmentManager();
NavHostFragment navHostFragment = (NavHostFragment) supportFragmentManager.findFragmentById(R.id.nav_host_fragment);
assert navHostFragment != null;
NavController navController = navHostFragment.getNavController();
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_nav);
NavigationUI.setupWithNavController(bottomNavigationView, navController);
}
catch (Exception e) {
Log.e("Init", "Failed to init navigation");
Log.e("Init", "Searchable Error code: " + "894b5941-3bc0-46fe-b752-0dbc88be29a8");
Toast.makeText(this, "Failed to init navigation", Toast.LENGTH_LONG).show();
finish(); // Exit app
}
NavHostFragment navHostFragment = (NavHostFragment) supportFragmentManager.findFragmentById(R.id.nav_host_fragment);
NavController navController = navHostFragment.getNavController();
BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_nav);
NavigationUI.setupWithNavController(bottomNavigationView, navController);
Toast.makeText(this, "testMessage", Toast.LENGTH_SHORT).show();
// Set navigation bar color
getWindow().setNavigationBarColor(ContextCompat.getColor(this, one.nem.lacerta.shared.ui.R.color.colorSurfaceVariant));
}
}
}
+8 -4
View File
@@ -4,17 +4,21 @@
<item
android:id="@id/feature_home_navigation"
android:icon="@drawable/home_24px"
android:title="Home"/>
android:title="@string/home_title"/>
<item
android:id="@id/feature_search_navigation"
android:icon="@drawable/search_24px"
android:title="@string/search_title"/>
<item
android:id="@id/feature_library_navigation"
android:icon="@drawable/folder_24px"
android:title="Library"/>
android:title="@string/library_title"/>
<item
android:id="@id/feature_debug_navigation"
android:icon="@drawable/developer_mode_24px"
android:title="Debug menu"/>
android:title="@string/debug_menu_title"/>
</menu>
+1
View File
@@ -9,6 +9,7 @@
<include app:graph="@navigation/feature_library_navigation" />
<include app:graph="@navigation/feature_home_navigation" />
<include app:graph="@navigation/feature_search_navigation" />
</navigation>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<cache-path name="cache" path="." />
</paths>
+18
View File
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.com.android.library)
id 'com.google.dagger.hilt.android'
}
android {
@@ -29,9 +30,26 @@ dependencies {
implementation libs.androidx.appcompat
implementation libs.com.google.android.material
implementation libs.androidx.activity
implementation libs.androidx.constraintlayout
testImplementation libs.junit
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso.core
// Hilt (DI)
implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler
implementation 'com.websitebeaver:documentscanner:1.0.0'
implementation project(':shared:ui')
implementation project(':model')
implementation project(':processor')
implementation project(':utils')
implementation project(':vcs')
implementation project(':data')
}
@@ -1,4 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<activity
android:name=".ScannerManagerActivity"
android:exported="false" />
</application>
</manifest>
@@ -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,251 @@
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.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Date;
import java.util.Locale;
import java.util.UUID;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.processor.DocumentProcessor;
import one.nem.lacerta.processor.factory.DocumentProcessorFactory;
import one.nem.lacerta.utils.LacertaLogger;
import one.nem.lacerta.utils.repository.DeviceInfoUtils;
/**
* A simple {@link Fragment} subclass.
* Use the {@link ScannerDataManagerStubFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class ScannerDataManagerStubFragment extends Fragment {
// TODO-rca: 時間があったらcacheを使うようにする?
// Results
private ArrayList<CapturedData> results = new ArrayList<>();
private Uri photoURI;
private DocumentDetail documentDetail;
private DocumentProcessor documentProcessor;
@Inject
DocumentProcessorFactory documentProcessorFactory;
@Inject
LacertaLogger logger;
@Inject
DeviceInfoUtils deviceInfoUtils;
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();
// });
//
// view.findViewById(R.id.button_create_documnent).setOnClickListener(v -> {
// Log.d("ScannerDataManagerStubFragment", "button_create_documnent clicked");
// Toast.makeText(getActivity(), "button_create_documnent clicked", Toast.LENGTH_LONG).show();
//
// this.documentDetail = createSampleDocumentDetail();
//
// });
//
// view.findViewById(R.id.button_init_document_processor).setOnClickListener(v -> {
// Log.d("ScannerDataManagerStubFragment", "button_init_document_processor clicked");
// Toast.makeText(getActivity(), "button_init_document_processor clicked", Toast.LENGTH_LONG).show();
// // TODO-rca: ここでDocumentProcessorを初期化する
// if (this.documentDetail == null) {
// Toast.makeText(getActivity(), "documentDetail is null", Toast.LENGTH_LONG).show();
// return;
// }
// this.documentProcessor = documentProcessorFactory.create(this.documentDetail);
// Toast.makeText(getActivity(), "documentProcessor created", Toast.LENGTH_LONG).show();
// try {
// this.documentProcessor.init();
// } catch (Exception e) {
// Toast.makeText(getActivity(), "Error occurred while initializing documentProcessor", Toast.LENGTH_LONG).show();
// Log.e("ScannerDataManagerStubFragment", "Error occurred while initializing documentProcessor", e);
// }
// Toast.makeText(getActivity(), "documentProcessor initialized", Toast.LENGTH_LONG).show();
// });
//
// view.findViewById(R.id.button_add_page).setOnClickListener(v -> {
// Log.d("ScannerDataManagerStubFragment", "button_add_page clicked");
// Toast.makeText(getActivity(), "button_add_page clicked", Toast.LENGTH_LONG).show();
// if (this.documentProcessor == null) {
// Toast.makeText(getActivity(), "documentProcessor is null", Toast.LENGTH_LONG).show();
// return;
// }
// Bitmap[] bitmaps = new Bitmap[results.size()];
// for (int i = 0; i < results.size(); i++) {
// bitmaps[i] = results.get(i).getBitmap();
// }
//
// try {
// this.documentProcessor.addNewPagesToLast(bitmaps);
// } catch (Exception e) {
// Toast.makeText(getActivity(), "Error occurred while adding pages", Toast.LENGTH_LONG).show();
// Log.e("ScannerDataManagerStubFragment", "Error occurred while adding pages", e);
// }
//
// Toast.makeText(getActivity(), "pages added", Toast.LENGTH_LONG).show();
//
// try {
// this.documentProcessor.close();
// } catch (Exception e) {
// Toast.makeText(getActivity(), "Error occurred while closing documentProcessor", Toast.LENGTH_LONG).show();
// Log.e("ScannerDataManagerStubFragment", "Error occurred while closing documentProcessor", e);
// }
// });
}
public DocumentDetail createSampleDocumentDetail() {
//
// String id = UUID.randomUUID().toString();
//
// Toast.makeText(getActivity(), "Generated id: " + id, Toast.LENGTH_LONG).show();
// //logger.debug("CreateSample", "Generated id: " + id);
//
// DocumentMeta meta = new DocumentMeta(
// id,
// "Sample" + DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now()),
// new Date(),
// new Date());
//
// DocumentPath path = new DocumentPath(
// deviceInfoUtils.getExternalStorageDirectoryString(),
// "Sample" + DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now()));
//
// return new DocumentDetail(meta, path, "SampleAuthor", "SampleDefaultBranch");
return null;
}
@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));
}
}
@@ -0,0 +1,204 @@
package one.nem.lacerta.component.scanner;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;
import androidx.activity.EdgeToEdge;
import androidx.annotation.AnimatorRes;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.google.android.material.appbar.MaterialToolbar;
import com.websitebeaver.documentscanner.DocumentScanner;
import java.util.ArrayList;
import java.util.Objects;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.processor.factory.DocumentProcessorFactory;
import one.nem.lacerta.utils.LacertaLogger;
import one.nem.lacerta.data.Document;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
@AndroidEntryPoint
public class ScannerManagerActivity extends AppCompatActivity {
String TAG = "ScannerManagerActivity";
@Inject
LacertaLogger logger;
@Inject
Document document;
@Inject
DocumentProcessorFactory documentProcessorFactory;
@Inject
LacertaVcsFactory lacertaVcsFactory;
// Variables
private ArrayList<Bitmap> croppedImages = new ArrayList<>();
View view;
DocumentScanner documentScanner = new DocumentScanner(
this,
(croppedImageResults) -> {
logger.debug(TAG, "croppedImage size: " + croppedImageResults.size());
ArrayList<Bitmap> croppedImages = new ArrayList<>();
for (String result : croppedImageResults) {
croppedImages.add(BitmapFactory.decodeFile(result));
}
processResult(croppedImages);
return null;
},
(errorMessage) -> {
// an error happened
logger.error(TAG, "Error: " + errorMessage);
logger.e_code("543a230e-cb9a-47a2-8131-3beecfe1c458");
return null;
},
() -> {
// user canceled document scan
logger.debug(TAG, "User canceled document scan");
return null;
},
null,
null,
null
);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_scanner_manager);
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;
});
MaterialToolbar toolbar = findViewById(R.id.top_toolbar);
setSupportActionBar(toolbar);
Objects.requireNonNull(getSupportActionBar()).setDisplayHomeAsUpEnabled(true);
documentScanner.startScan();
// Init
this.view = findViewById(R.id.main); // TODO-rca:なんとかする
}
@Override
public boolean onCreateOptionsMenu(android.view.Menu menu) {
getMenuInflater().inflate(R.menu.scanner_result_toolbar, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(android.view.MenuItem item) {
if (item.getItemId() == R.id.action_save_new) {
// 新ドキュメントとして保存
Toast.makeText(this, "保存処理", Toast.LENGTH_SHORT).show();
saveNewDocument();
return true;
} else if (item.getItemId() == R.id.action_insert_exist) {
// 既存ドキュメントに挿入
Toast.makeText(this, "挿入処理", Toast.LENGTH_SHORT).show();
insertToExistDocument();
return true;
} else if (item.getItemId() == android.R.id.home) {
finish();
return true;
}
return super.onOptionsItemSelected(item);
}
private void processResult(ArrayList<Bitmap> resultImages) {
logger.debug(TAG, "processResult");
if (resultImages.isEmpty()) {
logger.debug(TAG, "resultImages(arg) is empty");
if (this.croppedImages.isEmpty()) {
logger.debug(TAG, "this.resultImages is empty");
logger.e_code("7cb0584e-74ef-48ec-848a-c4d14e75e15a");
// TODO-rca: なんかする
} else {
logger.debug(TAG, "this.resultImages is not empty");
updateResultView(this.croppedImages);
}
} else {
logger.debug(TAG, "resultImages(arg) is not empty");
updateResultView(resultImages);
this.croppedImages = resultImages;
}
}
private void saveNewDocument() {
logger.debug(TAG, "saveNewDocument");
DocumentMeta documentMeta = new DocumentMeta("Untitled"); // TODO-rca: デフォルトタイトルを指定できるようにする
DocumentDetail documentDetail = document.createDocument(documentMeta);
Bitmap[] bitmaps = new Bitmap[this.croppedImages.size()];
this.croppedImages.toArray(bitmaps);
try {
documentProcessorFactory.create(documentDetail).addNewPagesToLast(bitmaps);
Toast.makeText(this, "Saved.", Toast.LENGTH_SHORT).show();
lacertaVcsFactory.create(documentDetail.getMeta().getId()).generateRevisionAtCurrent("Initial commit");
lacertaVcsFactory.create(documentDetail.getMeta().getId()).printLog(); // Debug
lacertaVcsFactory.create(documentDetail.getMeta().getId()).printRev(); // Debug
finish();
} catch (Exception e) {
logger.error(TAG, "Error: " + e.getMessage());
logger.e_code("9dff2a28-20e8-4ccd-9d04-f0c7646faa6a");
}
}
private void insertToExistDocument() {
logger.debug(TAG, "insertToExistDocument");
// TODO-rca: 実装
}
private void updateResultView(ArrayList<Bitmap> resultImages) {
logger.debug(TAG, "updateResultView");
LinearLayout resultView = findViewById(R.id.result_list_container);
ImageView selectedImage = findViewById(R.id.selected_image);
resultView.removeAllViews();
for (Bitmap resultImage : resultImages) {
View resultImageView = getLayoutInflater().inflate(R.layout.result_image_container_item, null);
ImageView imageView = resultImageView.findViewById(R.id.result_image);
imageView.setImageBitmap(resultImage);
imageView.setOnClickListener(v -> {
selectedImage.setImageBitmap(resultImage);
for (int i = 0; i < resultView.getChildCount(); i++) {
View child = resultView.getChildAt(i).findViewById(R.id.result_image);
child.setSelected(false);
}
v.setSelected(true);
});
resultView.addView(resultImageView);
}
}
}
@@ -0,0 +1,95 @@
package one.nem.lacerta.component.scanner;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.websitebeaver.documentscanner.DocumentScanner;
import com.websitebeaver.documentscanner.DocumentScannerActivity;
import java.util.Objects;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.utils.LacertaLogger;
import one.nem.lacerta.vcs.LacertaVcs;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
@AndroidEntryPoint
public class ScannerManagerFragment extends Fragment {
String TAG = getClass().getSimpleName();
@Inject
LacertaLogger logger;
@Inject
LacertaVcsFactory vcsFactory;
private static final boolean DEFAULT_SINGLE_PAGE = false;
private boolean singlePage;
public ScannerManagerFragment() {
// Required empty public constructor
}
// public static ScannerManagerFragment newInstance(boolean singlePage) {
// ScannerManagerFragment fragment = new ScannerManagerFragment();
// Bundle args = new Bundle();
// args.putBoolean("singlePage", singlePage);
// fragment.setArguments(args);
// return fragment;
// }
public static ScannerManagerFragment newInstance() {
ScannerManagerFragment fragment = new ScannerManagerFragment();
Bundle args = new Bundle();
args.putBoolean("singlePage", DEFAULT_SINGLE_PAGE);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
singlePage = getArguments().getBoolean("singlePage", DEFAULT_SINGLE_PAGE);
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_scanner_manager, container, false);
// ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(
// ViewGroup.LayoutParams.MATCH_PARENT,
// ViewGroup.LayoutParams.MATCH_PARENT
// );
// view.setLayoutParams(layoutParams);
return view;
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
// Init
logger.debug(TAG, "called");
view.findViewById(R.id.button_intent_scanner_manager_activity).setOnClickListener(v -> {
// DocumentScannerActivityを起動する
Intent intent = new Intent(requireActivity().getApplicationContext(), ScannerManagerActivity.class);
startActivity(intent);
});
}
}
@@ -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
);
}
}
@@ -1,64 +0,0 @@
package one.nem.lacerta.component.scanner;
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 ScannerScanResultFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class ScannerScanResultFragment 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 ScannerScanResultFragment() {
// 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 ScannerScanResultFragment.
*/
// TODO: Rename and change types and number of parameters
public static ScannerScanResultFragment newInstance(String param1, String param2) {
ScannerScanResultFragment fragment = new ScannerScanResultFragment();
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_scanner_scan_result, container, false);
}
}
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true">
<shape android:shape="rectangle">
<solid android:color="#00000000" />
<corners android:radius="8dp" />
<stroke android:color="#FF0000" android:width="2dp" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="#00000000" />
<corners android:radius="8dp" />
</shape>
</item>
</selector>
@@ -0,0 +1,55 @@
<?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:id="@+id/main"
android:theme="@style/Theme.Lacerta"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/top_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryContainer"
app:titleTextColor="@color/colorOnPrimaryContainer"
app:title="Preview"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/selected_image"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_above="@+id/horizontal_scroll"
android:scaleType="centerInside"
app:layout_constraintBottom_toTopOf="@+id/horizontal_scroll"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/top_toolbar" />
<HorizontalScrollView
android:id="@+id/horizontal_scroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:scrollbars="none"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/selected_image">
<LinearLayout
android:id="@+id/result_list_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
</LinearLayout>
</HorizontalScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,93 @@
<?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:weightSum="2"
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="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16px"
android:layout_weight="1"
android:text="Call camera" />
</LinearLayout>
<LinearLayout
android:id="@+id/init_button_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal"
android:weightSum="2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/action_button_container">
<com.google.android.material.button.MaterialButton
android:id="@+id/button_create_documnent"
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="Create Doc Obj" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_init_document_processor"
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="Init Processor" />
</LinearLayout>
<LinearLayout
android:id="@+id/doc_button_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:weightSum="2"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/init_button_container">
<com.google.android.material.button.MaterialButton
android:id="@+id/button_add_page"
style="@style/Widget.Material3.Button.IconButton.Filled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16px"
android:layout_weight="1"
android:text="Add page to last" />
</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/doc_button_container" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ScannerManagerFragment">
<Button
android:id="@+id/button_intent_scanner_manager_activity"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ScannerScanFragment">
<!-- TODO: Update blank fragment layout -->
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
</FrameLayout>
@@ -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>
@@ -0,0 +1,6 @@
<?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="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/result_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxHeight="64dp"
android:adjustViewBounds="true"
android:background="@drawable/result_image_container_item_border"
android:padding="8dp"
android:scaleType="centerCrop" />
</FrameLayout>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_save_new"
android:icon="@drawable/save_24px"
android:title="Save"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/action_insert_exist"
android:icon="@drawable/ic_baseline_add_24"
android:title="Save"
app:showAsAction="ifRoom"/>
</menu>
+5
View File
@@ -41,6 +41,9 @@ dependencies {
// JGit
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
// Java Faker
implementation 'com.github.javafaker:javafaker:1.0.2'
// Room
implementation libs.androidx.room.runtime
annotationProcessor libs.androidx.room.compiler
@@ -53,4 +56,6 @@ dependencies {
// データソースモジュール
implementation project(':source')
implementation project(':vcs')
}
@@ -13,34 +13,13 @@ import one.nem.lacerta.model.document.tag.DocumentTag;
*/
public interface Document {
ArrayList<DocumentMeta> getAllDocumentMetas(int limit);
DocumentDetail createDocument(DocumentMeta meta);
ArrayList<DocumentMeta> getAllDocumentMetas(int limit, int offset);
DocumentDetail createDocument();
/**
* 更新の新しいドキュメントから順に並べてlimit件取得する
* @param limit 取得する上限数
*/
ArrayList<DocumentMeta> getRecentDocumentMetas(int limit);
void deleteDocument(String documentId);
/**
* 更新の新しいドキュメントから順に並べてoffset位置からlimit件取得する
* @param limit 取得する上限数
* @param offset 取得するオフセット
*/
ArrayList<DocumentMeta> getRecentDocumentMetas(int limit, int offset);
void updateDocument(DocumentMeta meta, DocumentDetail detail);
/**
* ドキュメントIDからDocumentDetailを取得する
* @param id ドキュメントID
*/
DocumentDetail getDocumentDetail(String id);
/**
* DocumentMetaからDocumentDetailを取得する
* @param meta DocumentMeta
*/
DocumentDetail getDocumentDetailByMeta(DocumentMeta meta); // 簡単に使えるように
DocumentDetail createDocumentByMeta(DocumentMeta meta);
DocumentDetail getDocument(String documentId);
}
@@ -1,12 +0,0 @@
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);
}
@@ -0,0 +1,25 @@
package one.nem.lacerta.data;
import java.util.ArrayList;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.ListItemType;
import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.document.DocumentDetail;
public interface LacertaLibrary {
// Get History
ArrayList<ListItem> getRecentDocument(int limit);
ArrayList<ListItem> getRecentDocument(int limit, int offset);
// Get Library page
LibraryItemPage getLibraryPage(int limit);
LibraryItemPage getLibraryPage(int limit, int offset);
LibraryItemPage getLibraryPage(String pageId, int limit);
LibraryItemPage getLibraryPage(String pageId, int limit, int offset);
// GetDocument
DocumentDetail getDocumentDetailById(String id); // TODO-rca: Documentに統合する
}
@@ -0,0 +1,13 @@
package one.nem.lacerta.data;
import java.util.ArrayList;
import one.nem.lacerta.model.ListItem;
public interface LacertaSearch {
ArrayList<ListItem> autoSearch(String query, int limit);
ArrayList<ListItem> autoSearch(String query, int limit, int offset);
}
@@ -1,47 +0,0 @@
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);
}
}
@@ -1,141 +1,107 @@
package one.nem.lacerta.data.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;
import java.util.UUID;
// Hilt
import javax.inject.Inject;
// Lacerta/data
import one.nem.lacerta.data.Document;
// Lacerta/model
import one.nem.lacerta.model.PublicPath;
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;
// Lacerta/source
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;
// Lacerta/utils
import one.nem.lacerta.utils.LacertaLogger;
// Lacerta/vcs
import one.nem.lacerta.vcs.LacertaVcs;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
public class DocumentImpl implements Document{
public class DocumentImpl implements Document {
private LacertaDatabase database;
String TAG = getClass().getSimpleName();
@Inject
public DocumentImpl(LacertaDatabase database) {
this.database = database;
LacertaLogger logger;
@Inject
LacertaDatabase database;
@Inject
LacertaVcsFactory vcsFactory;
@Inject
public DocumentImpl() {
// Init
// logger.debug(TAG, "called");
}
@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);
public DocumentDetail createDocument(DocumentMeta meta) {
DocumentDetail detail = new DocumentDetail();
detail.setMeta(meta);
detail.setPages(new ArrayList<>());
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));
}
// TODO-rca: UIスレッドから追い出す
// 組み立て処理
// 可読性が終わるのでコンストラクタはつかわないほうがいいかも?
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.setId(documentEntity.id);
documentMeta.setTitle(documentEntity.title);
documentMeta.setCreatedAt(documentEntity.createdAt);
documentMeta.setUpdatedAt(documentEntity.updatedAt);
documentMeta.setTags(documentTags);
// Create DocumentEntity
DocumentEntity documentEntity = new DocumentEntity();
documentEntity.id = meta.getId();
documentEntity.title = meta.getTitle();
documentEntity.author = meta.getAuthor();
documentEntity.defaultBranch = meta.getDefaultBranch();
documentEntity.updatedAt = meta.getUpdatedAt();
documentEntity.createdAt = meta.getCreatedAt();
documentEntity.publicPath = meta.getPath().getStringPath();
documentEntity.tagIds = meta.getTagIds();
documentMetas.add(documentMeta);
}
database.documentDao().insert(documentEntity);
return documentMetas;
// Vcs
LacertaVcs vcs = vcsFactory.create(meta.getId());
vcs.createDocument(meta.getId());
return detail;
}
@Override
public ArrayList<DocumentMeta> getAllDocumentMetas(int limit, int offset) {
return null; // TODO-rca: 実装する
public DocumentDetail createDocument() {
DocumentMeta meta = new DocumentMeta();
meta.setId(UUID.randomUUID().toString());
meta.setTitle("New Document");
meta.setAuthor("author");
meta.setDefaultBranch("master");
meta.setUpdatedAt(new Date());
meta.setCreatedAt(new Date());
meta.setPath(new PublicPath().getRoot()); // TODO-rca: 2回インスタンスを生成していて無駄なのでなんとかする
meta.setTags(new ArrayList<>());
return createDocument(meta);
}
@Override
public ArrayList<DocumentMeta> getRecentDocumentMetas(int limit) {
// ArrayList<DocumentMeta> documentMetas = new ArrayList<>();
// database.documentDao().
// TODO-rca: 履歴取得するDao実装する
public void deleteDocument(String documentId) {
}
@Override
public void updateDocument(DocumentMeta meta, DocumentDetail detail) {
}
@Override
public DocumentDetail getDocument(String documentId) {
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;
}
}
@@ -0,0 +1,72 @@
package one.nem.lacerta.data.impl;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.ListItemType;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.source.database.LacertaDatabase;
import one.nem.lacerta.source.database.common.DateTypeConverter;
import one.nem.lacerta.source.database.entity.DocumentEntity;
import one.nem.lacerta.utils.LacertaLogger;
public class LacertaLibraryImpl implements LacertaLibrary {
@Inject
LacertaLogger logger;
@Inject
LacertaDatabase database;
@Override
public ArrayList<ListItem> getRecentDocument(int limit) {
List<DocumentEntity> documentEntities = database.documentDao().getRecentDocument(limit);
ArrayList<ListItem> listItems = new ArrayList<>();
for (DocumentEntity documentEntity : documentEntities) {
ListItem listItem = new ListItem();
listItem.setItemType(ListItemType.ITEM_TYPE_DOCUMENT);
listItem.setTitle(documentEntity.title);
listItem.setDescription(DateFormat.getDateInstance().format(documentEntity.updatedAt));
listItem.setItemId(documentEntity.id);
listItems.add(listItem);
}
return listItems;
}
@Override
public ArrayList<ListItem> getRecentDocument(int limit, int offset) {
return null; // TODO-rca: Implement
}
@Override
public LibraryItemPage getLibraryPage(int limit) {
return null;
}
@Override
public LibraryItemPage getLibraryPage(int limit, int offset) {
return null;
}
@Override
public LibraryItemPage getLibraryPage(String pageId, int limit) {
return null;
}
@Override
public LibraryItemPage getLibraryPage(String pageId, int limit, int offset) {
return null;
}
@Override
public DocumentDetail getDocumentDetailById(String id) {
return null;
}
}
@@ -0,0 +1,219 @@
package one.nem.lacerta.data.impl;
import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.ListItemType;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.utils.LacertaLogger;
import com.github.javafaker.DateAndTime;
import com.github.javafaker.Faker;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Objects;
import java.util.UUID;
import javax.inject.Inject;
/**
* LacertaLibraryのスタブ実装
*/
public class LacertaLibraryStubImpl implements LacertaLibrary {
LacertaLogger logger;
Faker faker;
@Inject
public LacertaLibraryStubImpl(LacertaLogger logger) {
faker = new Faker(); // Init Faker
this.logger = logger;
logger.debug("LibraryStub", "Initialized");
}
// Internal Methods
// Generate Stub Data
private LibraryItemPage generateStubLibraryItemPage(int limit, String pageId) {
logger.debug("LibraryStub", "generateStubLibraryItemPage");
ArrayList<ListItem> listItems = new ArrayList<>();
int itemTotal = faker.number().numberBetween(1, limit); // 実際に返却するアイテム数を決定
int folderTotal;
// フォルダ数の抽選
if (itemTotal > 4) {
folderTotal = faker.number().numberBetween(1, itemTotal - 2);
}
else {
if (itemTotal > 2) {
folderTotal = 1;
}
else { // ドキュメント数がゼロにならないように
folderTotal = 0;
}
}
int documentTotal = itemTotal - folderTotal; // ドキュメント数を決定
logger.debug("LibraryStub", "itemTotal: " + itemTotal);
logger.debug("LibraryStub", "folderTotal: " + folderTotal);
logger.debug("LibraryStub", "documentTotal: " + documentTotal);
// フォルダを生成
for (int i = 0; i < folderTotal; i++) {
listItems.add(generateStubListItem(ListItemType.ITEM_TYPE_FOLDER));
}
// ドキュメントを生成
for (int i = 0; i < documentTotal; i++) {
listItems.add(generateStubListItem(ListItemType.ITEM_TYPE_DOCUMENT));
}
LibraryItemPage libraryItemPage = new LibraryItemPage();
libraryItemPage.setListItems(listItems);
if (pageId == null) {
libraryItemPage.setPageId(UUID.randomUUID().toString());
} else {
libraryItemPage.setPageId(pageId);
}
libraryItemPage.setPageTitle("FakePage" + faker.number().digits(3));
return libraryItemPage;
}
private ListItem generateStubListItem(ListItemType itemType) {
if (itemType == ListItemType.ITEM_TYPE_FOLDER) {
ListItem listItem = new ListItem();
listItem.setTitle("FakeFolder" + faker.number().digits(3));
listItem.setDescription("Updated at " + DateFormat.getDateTimeInstance().format(faker.date().birthday()));
listItem.setItemType(ListItemType.ITEM_TYPE_FOLDER);
listItem.setItemId(UUID.randomUUID().toString());
return listItem;
} else if (itemType == ListItemType.ITEM_TYPE_DOCUMENT) {
ListItem listItem = new ListItem();
listItem.setTitle("FakeDocument" + faker.book().title());
listItem.setDescription("Updated at " + DateFormat.getDateTimeInstance().format(faker.date().birthday()));
listItem.setItemType(ListItemType.ITEM_TYPE_DOCUMENT);
listItem.setItemId(UUID.randomUUID().toString());
return listItem;
} else {
return null;
}
}
private LibraryItemPage getRecentDocumentPage(int limit) {
int itemTotal = faker.number().numberBetween(1, limit);
ArrayList<ListItem> listItems = new ArrayList<>();
for (int i = 0; i < itemTotal; i++) {
listItems.add(generateStubListItem(ListItemType.ITEM_TYPE_DOCUMENT));
}
// DescriptionからDateを抽出して新しい順にソート
listItems.sort((a, b) -> {
String aDate = a.getDescription().substring(11);
String bDate = b.getDescription().substring(11);
return bDate.compareTo(aDate);
});
LibraryItemPage libraryItemPage = new LibraryItemPage();
libraryItemPage.setListItems(listItems);
libraryItemPage.setPageId(UUID.randomUUID().toString());
libraryItemPage.setPageTitle("RecentDocument");
return libraryItemPage;
}
private DocumentDetail generateStubDocumentDetail(String id) throws IllegalArgumentException {
if (Objects.isNull(id)) {
throw new IllegalArgumentException("id is null");
}
DocumentMeta documentMeta = new DocumentMeta();
documentMeta.setId(id);
documentMeta.setTitle("FakeDocument" + faker.book().title());
documentMeta.setCreatedAt(faker.date().birthday());
documentMeta.setUpdatedAt(faker.date().birthday()); // TODO-rca: 更新日のほうが古くなることがあるのでなんとかする?
ArrayList<String> tagIds = new ArrayList<>();
DocumentDetail documentDetail = new DocumentDetail();
documentDetail.setMeta(documentMeta);
// documentDetail.setPath(null); // TODO-rca: なんとかする
// documentDetail.setAuthor(faker.name().fullName());
// documentDetail.setRepository(null); // TODO-rca: なんとかする
return documentDetail;
}
/**
* 履歴ページを取得する
* @param limit 取得するアイテム数
* @return ページオブジェクト
*/
@Override
public ArrayList<ListItem> getRecentDocument(int limit) {
return getRecentDocumentPage(limit).getListItems();
}
/**
* 履歴ページを取得する
* @param limit 取得するアイテム数
* @param offset 取得するアイテムのオフセット
* @return ページオブジェクト
*/
@Override
public ArrayList<ListItem> getRecentDocument(int limit, int offset) {
return getRecentDocumentPage(limit).getListItems();
}
/**
* ライブラリページを取得する
* @param limit 取得するアイテム数
* @return ページオブジェクト
*/
@Override
public LibraryItemPage getLibraryPage(int limit) {
return generateStubLibraryItemPage(limit, null);
}
/**
* ライブラリページを取得する
* @param limit 取得するアイテム数
* @param offset 取得するアイテムのオフセット
* @return ページオブジェクト
*/
@Override
public LibraryItemPage getLibraryPage(int limit, int offset) {
return generateStubLibraryItemPage(limit, null);
}
/**
* ライブラリページを取得する
* @param pageId ページID
* @param limit 取得するアイテム数
* @return ページオブジェクト
*/
@Override
public LibraryItemPage getLibraryPage(String pageId, int limit) {
return generateStubLibraryItemPage(limit, pageId);
}
/**
* ライブラリページを取得する
* @param pageId ページID
* @param limit 取得するアイテム数
* @param offset 取得するアイテムのオフセット
* @return ページオブジェクト
*/
@Override
public LibraryItemPage getLibraryPage(String pageId, int limit, int offset) {
return generateStubLibraryItemPage(limit, pageId);
}
/**
* ドキュメント詳細を取得する
* @param id ドキュメントID
* @return ドキュメント詳細オブジェクト
*/
@Override
public DocumentDetail getDocumentDetailById(String id) throws IllegalArgumentException {
return generateStubDocumentDetail(id);
}
}
@@ -0,0 +1,51 @@
package one.nem.lacerta.data.impl;
import java.util.ArrayList;
import javax.inject.Inject;
import one.nem.lacerta.data.LacertaSearch;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.utils.LacertaLogger;
public class LacertaSearchStubImpl implements LacertaSearch {
private LacertaLibrary library;
private LacertaLogger logger;
@Inject
public LacertaSearchStubImpl(LacertaLibrary library, LacertaLogger logger) {
this.library = library;
this.logger = logger;
}
/**
* 検索
* @param query 検索クエリ
* @param limit 最大取得件数
* @return 検索結果
*/
@Override
public ArrayList<ListItem> autoSearch(String query, int limit) {
logger.debug("SearchStub", "autoSearch");
logger.debug("SearchStub", "query: " + query);
return library.getLibraryPage(limit).getListItems();
}
/**
* 検索
* @param query 検索クエリ
* @param limit 最大取得件数
* @param offset オフセット
* @return 検索結果
*/
@Override
public ArrayList<ListItem> autoSearch(String query, int limit, int offset) {
logger.debug("SearchStub", "autoSearch");
logger.debug("SearchStub", "query: " + query);
return library.getLibraryPage(limit, offset).getListItems();
}
}
@@ -1,16 +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.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,21 @@
package one.nem.lacerta.data.module;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.FragmentComponent;
import dagger.hilt.migration.DisableInstallInCheck;
import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.data.impl.LacertaLibraryStubImpl;
import one.nem.lacerta.utils.LacertaLogger;
@Module
// Fragmentにinstall
@InstallIn(FragmentComponent.class)
abstract public class LacertaLibraryModule {
@Binds
public abstract LacertaLibrary bindLacertaLibrary(LacertaLibraryStubImpl impl);
}
@@ -0,0 +1,16 @@
package one.nem.lacerta.data.module;
import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.FragmentComponent;
import one.nem.lacerta.data.LacertaSearch;
import one.nem.lacerta.data.impl.LacertaSearchStubImpl;
@Module
@InstallIn(FragmentComponent.class)
abstract public class LacertaSearchModule {
@Binds
public abstract LacertaSearch bindLacertaSearch(LacertaSearchStubImpl impl);
}
+9
View File
@@ -62,4 +62,13 @@ dependencies {
// Shared
implementation project(':shared:ui')
// Scanner
implementation project(':component:scanner')
// Processor
implementation project(':processor')
// LacertaVcs
implementation project(':vcs')
}
@@ -1,10 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<activity
android:name=".DebugMenuContainerActivity"
android:exported="false" />
</application>
</manifest>
@@ -0,0 +1,44 @@
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 DebugMenuDocProcessorTesterFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuDocProcessorTesterFragment extends Fragment {
public DebugMenuDocProcessorTesterFragment() {
// Required empty public constructor
}
public static DebugMenuDocProcessorTesterFragment newInstance() {
DebugMenuDocProcessorTesterFragment fragment = new DebugMenuDocProcessorTesterFragment();
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_doc_processor_tester, container, false);
return view;
}
}
@@ -1,81 +0,0 @@
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;
}
}
@@ -1,72 +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 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;
}
}
@@ -47,8 +47,8 @@ public class DebugMenuDocumentTesterTopFragment extends Fragment {
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));
// 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);
@@ -0,0 +1,115 @@
package one.nem.lacerta.feature.debug;
import android.os.Bundle;
import androidx.annotation.AnimatorRes;
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.TextView;
import java.util.ArrayList;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.document.DocumentDetail;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.ListItemType;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuLibraryItemListPageFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuLibraryItemListPageFragment extends Fragment {
@Inject
LacertaLibrary lacertaLibrary;
public DebugMenuLibraryItemListPageFragment() {
// Required empty public constructor
}
public static DebugMenuLibraryItemListPageFragment newInstance() {
DebugMenuLibraryItemListPageFragment fragment = new DebugMenuLibraryItemListPageFragment();
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_library_item_list_page, container, false);
ArrayList<ListItem> listItems = lacertaLibrary.getRecentDocument(10);
for (ListItem listItem : listItems) {
System.out.println(listItem.getTitle());
}
RecyclerView recyclerView = view.findViewById(R.id.item_recycler_view);
recyclerView.setAdapter(new ItemAdapter(listItems));
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
return view;
}
private class ItemAdapter extends RecyclerView.Adapter<ItemAdapter.ItemViewHolder> {
private ArrayList<ListItem> listItems;
public ItemAdapter(ArrayList<ListItem> listItems) {
this.listItems = listItems;
}
@Override
public ItemViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_debug_menu_document, parent, false);
return new ItemViewHolder(view);
}
@Override
public void onBindViewHolder(ItemViewHolder holder, int position) {
ListItem listItem = listItems.get(position);
holder.document_list_item_title.setText(listItem.getTitle());
holder.document_list_item_description.setText(listItem.getDescription());
holder.document_list_item_updated_at.setText(listItem.getItemType().toString());
}
@Override
public int getItemCount() {
return listItems.size();
}
public class ItemViewHolder extends RecyclerView.ViewHolder {
TextView document_list_item_title;
TextView document_list_item_description;
TextView document_list_item_updated_at;
public ItemViewHolder(View itemView) {
super(itemView);
document_list_item_title = itemView.findViewById(R.id.document_list_item_title);
document_list_item_description = itemView.findViewById(R.id.document_list_item_description);
document_list_item_updated_at = itemView.findViewById(R.id.document_list_item_updated_at);
}
}
}
}
@@ -12,6 +12,7 @@ import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.feature.debug.common.adapter.DebugMenuListItemAdapter;
import one.nem.lacerta.feature.debug.common.model.DebugMenuListItem;
@@ -20,6 +21,7 @@ import one.nem.lacerta.feature.debug.common.model.DebugMenuListItem;
* Use the {@link DebugMenuTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuTopFragment extends Fragment {
public DebugMenuTopFragment() {
// Required empty public constructor
@@ -46,8 +48,11 @@ public class DebugMenuTopFragment extends Fragment {
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("ScannerStub", "placeholder", R.id.action_debugMenuTopFragment_to_scannerDataManagerStubFragment, true));
debugMenuListItems.add(new DebugMenuListItem("Scanner", "placeholder", R.id.action_debugMenuTopFragment_to_scannerManagerFragment, true));
debugMenuListItems.add(new DebugMenuListItem("Document List", "placeholder", R.id.action_debugMenuTopFragment_to_debugMenuLibraryItemListPageFragment, true));
debugMenuListItems.add(new DebugMenuListItem("VCS", "placeholder", R.id.action_debugMenuTopFragment_to_debugMenuVcsGeneralFragment, true));
DebugMenuListItemAdapter adapter = new DebugMenuListItemAdapter(debugMenuListItems);
recyclerView.setAdapter(adapter);
@@ -0,0 +1,58 @@
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 javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.vcs.LacertaVcs;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuVcsGeneralActionFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class DebugMenuVcsGeneralActionFragment extends Fragment {
@Inject
LacertaVcsFactory lacertaVcsFactory;
public DebugMenuVcsGeneralActionFragment() {
// Required empty public constructor
}
public static DebugMenuVcsGeneralActionFragment newInstance() {
DebugMenuVcsGeneralActionFragment fragment = new DebugMenuVcsGeneralActionFragment();
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_vcs_general_action, container, false);
view.findViewById(R.id.add_sample_log_rev_button).setOnClickListener(v -> {
LacertaVcs lacertaVcs = lacertaVcsFactory.create("example_id");
lacertaVcs.insertPage(1, "example_id");
});
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 DebugMenuVcsGeneralFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuVcsGeneralFragment extends Fragment {
public DebugMenuVcsGeneralFragment() {
// Required empty public constructor
}
public static DebugMenuVcsGeneralFragment newInstance() {
DebugMenuVcsGeneralFragment fragment = new DebugMenuVcsGeneralFragment();
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_vcs_general, container, false);
RecyclerView recyclerView = view.findViewById(R.id.recycler_view);
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
List<DebugMenuListItem> debugMenuListItems = new ArrayList<>();
debugMenuListItems.add(new DebugMenuListItem("General Action", "placeholder", R.id.action_debugMenuVcsGeneralFragment_to_debugMenuVcsGeneralActionFragment, true));
debugMenuListItems.add(new DebugMenuListItem("Log Record", "placeholder", R.id.action_debugMenuVcsGeneralFragment_to_debugMenuVcsLogRecordFragment, true));
debugMenuListItems.add(new DebugMenuListItem("Rev Record", "placeholder", R.id.action_debugMenuVcsGeneralFragment_to_debugMenuVcsRevRecordFragment, true));
DebugMenuListItemAdapter adapter = new DebugMenuListItemAdapter(debugMenuListItems);
recyclerView.setAdapter(adapter);
return view;
}
}
@@ -0,0 +1,42 @@
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 DebugMenuVcsLogRecordFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuVcsLogRecordFragment extends Fragment {
public DebugMenuVcsLogRecordFragment() {
// Required empty public constructor
}
public static DebugMenuVcsLogRecordFragment newInstance() {
DebugMenuVcsLogRecordFragment fragment = new DebugMenuVcsLogRecordFragment();
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_vcs_log_record, container, false);
return view;
}
}
@@ -10,16 +10,16 @@ import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Use the {@link DebugMenuMetaDataFragment#newInstance} factory method to
* Use the {@link DebugMenuVcsRevRecordFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class DebugMenuMetaDataFragment extends Fragment {
public DebugMenuMetaDataFragment() {
public class DebugMenuVcsRevRecordFragment extends Fragment {
public DebugMenuVcsRevRecordFragment() {
// Required empty public constructor
}
public static DebugMenuMetaDataFragment newInstance() {
DebugMenuMetaDataFragment fragment = new DebugMenuMetaDataFragment();
public static DebugMenuVcsRevRecordFragment newInstance() {
DebugMenuVcsRevRecordFragment fragment = new DebugMenuVcsRevRecordFragment();
Bundle args = new Bundle();
fragment.setArguments(args);
return fragment;
@@ -34,6 +34,8 @@ public class DebugMenuMetaDataFragment extends Fragment {
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);
View view = inflater.inflate(R.layout.fragment_debug_menu_vcs_rev_record, container, false);
return view;
}
}
@@ -0,0 +1,36 @@
<?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=".DebugMenuDocProcessorTesterFragment" >
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="1dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="1dp"
android:orientation="vertical"
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="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/button_gen_random_img"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Generate random image" />
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -1,60 +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"
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>
@@ -4,11 +4,11 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuDocumentTesterListFragment" >
tools:context=".DebugMenuLibraryItemListPageFragment">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view_document_list"
android:layout_width="match_parent"
android:id="@+id/item_recycler_view"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuMetaDataFragment">
<!-- TODO: Update blank fragment layout -->
</FrameLayout>
@@ -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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuVcsGeneralFragment">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="0dp"
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>
@@ -0,0 +1,24 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuVcsGeneralActionFragment">
<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" >
<Button
android:id="@+id/add_sample_log_rev_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add Sample log/Rev" />
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuVcsGeneralFragment">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/log_recycler_view"
android:layout_width="0dp"
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>
@@ -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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DebugMenuVcsGeneralFragment">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rev_recycler_view"
android:layout_width="0dp"
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>
@@ -23,4 +23,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/debug_menu_item_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -10,38 +10,69 @@
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" />
<action
android:id="@+id/action_debugMenuTopFragment_to_debugMenuLibraryItemListPageFragment"
app:destination="@id/debugMenuLibraryItemListPageFragment" />
<action
android:id="@+id/action_debugMenuTopFragment_to_debugMenuVcsGeneralFragment"
app:destination="@id/debugMenuVcsGeneralFragment" />
<action
android:id="@+id/action_debugMenuTopFragment_to_scannerManagerFragment"
app:destination="@id/scannerManagerFragment" />
</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" />
android:id="@+id/scannerDataManagerStubFragment"
android:name="one.nem.lacerta.component.scanner.ScannerDataManagerStubFragment"
android:label="ScannerDataManagerStubFragment" />
<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" />
android:id="@+id/debugMenuLibraryItemListPageFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuLibraryItemListPageFragment"
android:label="fragment_debug_menu_library_item_list_page"
tools:layout="@layout/fragment_debug_menu_library_item_list_page" />
<fragment
android:id="@+id/debugMenuVcsGeneralFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuVcsGeneralFragment"
android:label="fragment_debug_menu_vcs_general"
tools:layout="@layout/fragment_debug_menu_vcs_general" >
<action
android:id="@+id/action_debugMenuVcsGeneralFragment_to_debugMenuVcsGeneralActionFragment"
app:destination="@id/debugMenuVcsGeneralActionFragment" />
<action
android:id="@+id/action_debugMenuVcsGeneralFragment_to_debugMenuVcsRevRecordFragment"
app:destination="@id/debugMenuVcsRevRecordFragment" />
<action
android:id="@+id/action_debugMenuVcsGeneralFragment_to_debugMenuVcsLogRecordFragment"
app:destination="@id/debugMenuVcsLogRecordFragment" />
</fragment>
<fragment
android:id="@+id/debugMenuVcsGeneralActionFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuVcsGeneralActionFragment"
android:label="fragment_debug_menu_vcs_general_action"
tools:layout="@layout/fragment_debug_menu_vcs_general_action" />
<fragment
android:id="@+id/debugMenuVcsLogRecordFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuVcsLogRecordFragment"
android:label="fragment_debug_menu_vcs_log_record"
tools:layout="@layout/fragment_debug_menu_vcs_log_record" />
<fragment
android:id="@+id/debugMenuVcsRevRecordFragment"
android:name="one.nem.lacerta.feature.debug.DebugMenuVcsRevRecordFragment"
android:label="fragment_debug_menu_vcs_rev_record"
tools:layout="@layout/fragment_debug_menu_vcs_rev_record" />
<fragment
android:id="@+id/scannerManagerFragment"
android:name="one.nem.lacerta.component.scanner.ScannerManagerFragment"
android:label="ScannerManagerFragment" />
</navigation>
+15
View File
@@ -1,4 +1,5 @@
plugins {
id 'com.google.dagger.hilt.android'
id 'com.android.library'
}
@@ -29,6 +30,8 @@ dependencies {
implementation libs.androidx.appcompat
implementation libs.com.google.android.material
implementation project(path: ':feature:debug')
implementation project(path: ':utils')
testImplementation libs.junit
androidTestImplementation libs.androidx.test.ext.junit
androidTestImplementation libs.androidx.test.espresso.core
@@ -38,6 +41,18 @@ dependencies {
implementation libs.navigation.ui
implementation libs.navigation.dynamic.features.fragment
// DI
implementation libs.com.google.dagger.hilt.android
annotationProcessor libs.com.google.dagger.hilt.compiler
// shared
implementation project(':shared:ui')
// DI
implementation project(':data')
//model
implementation project(':model')
implementation "androidx.recyclerview:recyclerview:1.3.2"
}
@@ -22,5 +22,7 @@ public class ExampleInstrumentedTest {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("one.nem.lacerta.feature.home.test", appContext.getPackageName());
}
}
@@ -1,20 +1,40 @@
package one.nem.lacerta.feature.home;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
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.data.LacertaLibrary;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.document.DocumentMeta;
/**
* A simple {@link Fragment} subclass.
* Use the {@link HomeTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class HomeTopFragment extends Fragment {
@Inject
LacertaLibrary lacertaLibrary;
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
@@ -46,12 +66,15 @@ public class HomeTopFragment extends Fragment {
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@@ -59,6 +82,42 @@ public class HomeTopFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_home_top, container, false);
}
}
View view = inflater.inflate(R.layout.fragment_home_top, container, false);
// List<DocumentMeta> metas = document.getAllDocumentMetas(100);
ArrayList<ListItem> listItems = lacertaLibrary.getRecentDocument(100);
Log.d("docs", Integer.toString(listItems.size()));
RecyclerView recyclerView = view.findViewById(R.id.item_recycler_view);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
MyAdapter myAdapter = new MyAdapter(listItems);
recyclerView.setAdapter(myAdapter);
return view;
}
String pageTitle;
String pageId;
ArrayList listItems;
String title;
String description;
String itemId;
}
@@ -0,0 +1,70 @@
package one.nem.lacerta.feature.home;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.document.DocumentMeta;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.List;
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.MyAdapterViewHolder> {
ArrayList<ListItem> listItems;
public MyAdapter(ArrayList<ListItem> listItems) {
this.listItems = listItems;
}
@NonNull
@Override
public MyAdapterViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_home_document, parent, false);
return new MyAdapterViewHolder(view);
}
@Override
public void onBindViewHolder(@NonNull MyAdapterViewHolder holder, int position) {
holder.title.setText(listItems.get(position).getTitle());
holder.description.setText(listItems.get(position).getDescription());
}
@Override
public int getItemCount() {
return listItems.size();
}
public class MyAdapterViewHolder extends RecyclerView.ViewHolder {
TextView title;
TextView description;
public MyAdapterViewHolder(@NonNull View itemView) {
super(itemView);
title = itemView.findViewById(R.id.debug_menu_item_title);
description = itemView.findViewById(R.id.debug_menu_item_description);
}
}
}
@@ -3,12 +3,19 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".HomeTopFragment">
tools:context=".HomeTopFragment"
tools:ignore="ExtraText">
<!-- TODO: Update blank fragment layout -->
<TextView
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/item_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
android:layout_height="match_parent">
</androidx.recyclerview.widget.RecyclerView>
</FrameLayout>
@@ -0,0 +1,36 @@
<?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" />
<TextView
android:id="@+id/debug_menu_item_updated_at_home"
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>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="my_recycler_view" type="id" />
<item name="TITLE" type="id" />
<item name="textView" type="id" />
</resources>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>
@@ -1,4 +1,5 @@
<resources>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
<string name="textview">TextView</string>
</resources>
+14
View File
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
id 'com.google.dagger.hilt.android'
}
android {
@@ -29,6 +30,8 @@ dependencies {
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
@@ -38,4 +41,15 @@ dependencies {
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')
implementation project(':model')
implementation project(':data')
}
@@ -0,0 +1,55 @@
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;
import one.nem.lacerta.model.document.DocumentMeta;
public class DocumentAdapter extends RecyclerView.Adapter<DocumentAdapter.DocumentViewHolder> {
private List<DocumentMeta> documentMetas;
public DocumentAdapter(List<DocumentMeta> documentMetas) {
// nullの場合に例外を発生させる
if (documentMetas == null) {
throw new IllegalArgumentException("DocumentMetas list cannot be null or empty");
}
this.documentMetas = documentMetas;
}
@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) {
DocumentMeta documentMeta = documentMetas.get(position);
if (documentMeta != null) {
holder.title.setText(documentMeta.getTitle());
}
}
@Override
public int getItemCount() {
return documentMetas.size();
}
class DocumentViewHolder extends RecyclerView.ViewHolder {
TextView title;
DocumentViewHolder(View itemView) {
super(itemView);
title = itemView.findViewById(R.id.debug_menu_item_title); // 適切な id に変更する
}
}
}
@@ -0,0 +1,38 @@
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
//画面変移用のコード
//Fragmentへのデータの受け渡し機能
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,51 @@
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;
//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;
}
}
@@ -2,19 +2,42 @@ 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 android.widget.Toast;
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.model.document.DocumentMeta;
import one.nem.lacerta.model.document.tag.DocumentTag;
/**
* A simple {@link Fragment} subclass.
* Use the {@link LibraryTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
@AndroidEntryPoint
public class LibraryTopFragment extends Fragment {
// @Inject
// Document document;
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
@@ -55,10 +78,29 @@ public class LibraryTopFragment extends Fragment {
}
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_library_top, container, false);
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<DocumentMeta> metas = document.getAllDocumentMetas(100);
// Toast.makeText(getContext(), "Documents: " + Integer.toString(metas.size()), Toast.LENGTH_LONG).show();
// Create and set the adapter
// DocumentAdapter adapter = new DocumentAdapter(metas);
// 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>
@@ -1,14 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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">
<!-- TODO: Update blank fragment layout -->
<TextView
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
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" />
</FrameLayout>
<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>
@@ -1,4 +1,3 @@
<resources>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
<string name="app_name">Library</string>
</resources>
+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')
}
@@ -0,0 +1,142 @@
package one.nem.lacerta.feature.search;
import android.app.LauncherActivity;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SearchView;
import java.util.ArrayList;
/**
* A simple {@link Fragment} subclass.
* Use the {@link SearchTopFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class SearchTopFragment extends Fragment {
private static final String TAG = SearchTopFragment.class.getSimpleName();
private final SearchTopFragment self = this;
private SearchView searchView;
private String searchWord;
// 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 SearchTopFragment() {
// 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 SearchTopFragment.
*/
// TODO: Rename and change types and number of parameters
public static SearchTopFragment newInstance(String param1, String param2) {
SearchTopFragment fragment = new SearchTopFragment();
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_search_top, container, false);
}
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
this.searchView.setIconifiedByDefault(true);
this.searchView.setSubmitButtonEnabled(false);
if (!this.searchWord.equals("")) {
this.searchView.setQuery(this.searchWord, false);
} else {
String queryHint = self.getResources().getString(R.string.hello_blank_fragment);
this.searchView.setQueryHint(queryHint);
}
this.searchView.setOnQueryTextListener(self.onQueryTextListener);
}
private final SearchView.OnQueryTextListener onQueryTextListener = new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
return self.setSearchWord(searchWord);
}
@Override
public boolean onQueryTextChange(String query) {
return false;
}
};
private boolean setSearchWord(String query) {
if (searchWord != null && !searchWord.equals("")) {
this.searchWord = searchWord;
}
this.searchView.setIconified(false);
this.searchView.onActionViewCollapsed();
this.searchView.clearFocus();
return false;
}
}
interface LacertaSearch {
ArrayList<LauncherActivity.ListItem> autoSearch(String query, int limit);
ArrayList<LauncherActivity.ListItem> autoSearch(String query, int limit, int offset);
}
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
tools:context=".SearchTopFragment">
<!-- TODO: Update blank fragment layout -->
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/Search_tool_bar"
android:layout_width="match_parent"
android:layout_height="69dp"
android:background="#E4E8EA"
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="" />
<SearchView
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
@@ -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_search_navigation"
app:startDestination="@id/searchTopFragment">
<fragment
android:id="@+id/searchTopFragment"
android:name="one.nem.lacerta.feature.search.SearchTopFragment"
android:label="fragment_search_top"
tools:layout="@layout/fragment_search_top" />
</navigation>
@@ -0,0 +1,4 @@
<resources>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>
+2
View File
@@ -36,4 +36,6 @@ dependencies {
// JGit
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
implementation project(":shared:ui")
}
@@ -0,0 +1,51 @@
package one.nem.lacerta.model;
import java.util.ArrayList;
public class LibraryItemPage {
String pageTitle;
String pageId;
ArrayList<ListItem> listItems;
// Constructor
public LibraryItemPage(String pageTitle, String pageId, ArrayList<ListItem> listItems) {
this.pageTitle = pageTitle;
this.pageId = pageId;
this.listItems = listItems;
}
public LibraryItemPage() {
// Empty constructor
}
// Getter
public String getPageTitle() {
return pageTitle;
}
public String getPageId() {
return pageId;
}
public ArrayList<ListItem> getListItems() {
return listItems;
}
// Setter
public void setPageTitle(String pageTitle) {
this.pageTitle = pageTitle;
}
public void setPageId(String pageId) {
this.pageId = pageId;
}
public void setListItems(ArrayList<ListItem> listItems) {
this.listItems = listItems;
}
}
@@ -0,0 +1,63 @@
package one.nem.lacerta.model;
import android.graphics.drawable.Drawable;
public class ListItem {
// Properties
String title;
String description;
ListItemType itemType;
String itemId;
// Constructor
public ListItem(String title, String description, ListItemType itemType, String itemId) {
this.title = title;
this.description = description;
this.itemType = itemType;
this.itemId = itemId;
}
public ListItem() {
// Empty constructor
}
// Getter
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public ListItemType getItemType() {
return itemType;
}
public String getItemId() {
return itemId;
}
// Setter
public void setTitle(String title) {
this.title = title;
}
public void setDescription(String description) {
this.description = description;
}
public void setItemType(ListItemType itemType) {
this.itemType = itemType;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
}
@@ -0,0 +1,17 @@
package one.nem.lacerta.model;
public enum ListItemType {
ITEM_TYPE_FOLDER(one.nem.lacerta.shared.ui.R.drawable.folder_24px),
ITEM_TYPE_DOCUMENT(one.nem.lacerta.shared.ui.R.drawable.description_24px);
private int iconId;
ListItemType(int iconId) {
this.iconId = iconId;
}
public int getIconId() {
return iconId;
}
}
@@ -0,0 +1,74 @@
package one.nem.lacerta.model;
import java.util.ArrayList;
import java.util.List;
public class PublicPath {
/*
* ユーザーが扱うパス(内部パスの代替)
* (時間がないのでInjectされることは考慮しない)
*
* TODO-rca:
* - こわれたパスを検知する
* - バリデーション
*/
List<String> path = new ArrayList<String>();
public PublicPath() {
}
public PublicPath(List<String> path) {
this.path = path;
}
private void add(String path) {
this.path.add(path);
}
private void resolveInternal(String path) {
if (path.equals("..")) {
this.path.remove(this.path.size() - 1);
} else {
add(path);
}
}
public PublicPath resolve(String path) {
resolveInternal(path);
return this;
}
public PublicPath resolve(List<String> path) {
for (String p : path) {
resolveInternal(p);
}
return this;
}
public PublicPath resolve(PublicPath path) {
for (String p : path.getPath()) {
resolveInternal(p);
}
return this;
}
public PublicPath parent() {
this.path.remove(this.path.size() - 1);
return this;
}
public List<String> getPath() {
return path;
}
public String getStringPath() {
return String.join("/", path);
}
public PublicPath getRoot() {
PublicPath root = new PublicPath();
root.add("/");
return root;
}
}
@@ -3,11 +3,14 @@ package one.nem.lacerta.model.document;
import org.eclipse.jgit.lib.Repository;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Date;
import one.nem.lacerta.model.document.path.DocumentPath;
import one.nem.lacerta.model.document.DocumentMeta;
import one.nem.lacerta.model.document.page.Page;
/**
* ドキュメントの詳細データ
*/
@@ -19,31 +22,21 @@ public class DocumentDetail {
DocumentMeta meta;
/**
* ドキュメントのパス(DocumentPathインスタンス)
* ドキュメントのページ(Pageインスタンスのリスト)
*/
DocumentPath path;
/**
* ドキュメントの作者(String)
*/
String author;
/**
* ドキュメントのデフォルトブランチ(String)
*/
String defaultBranch;
Repository repository;
ArrayList<Page> pages;
// Constructor
public DocumentDetail() {
}
public DocumentDetail(DocumentMeta meta, DocumentPath path, String author, String defaultBranch) {
public DocumentDetail(DocumentMeta meta) {
this.meta = meta;
this.path = path;
this.author = author;
this.defaultBranch = defaultBranch;
}
public DocumentDetail(DocumentMeta meta, ArrayList<Page> pages) {
this.meta = meta;
this.pages = pages;
}
// Getter
@@ -56,34 +49,12 @@ public class DocumentDetail {
}
/**
* ドキュメントのパス(DocumentPathインスタンス)を取得する
* ドキュメントのページ(Pageインスタンスのリスト)を取得する
*/
public DocumentPath getPath() {
return path;
public ArrayList<Page> getPages() {
return pages;
}
/**
* ドキュメントの作者(String)を取得する
*/
public String getAuthor() {
return author;
}
/**
* ドキュメントのデフォルトブランチ(String)を取得する
*/
public String getDefaultBranch() {
return defaultBranch;
}
/**
* ドキュメントのリポジトリを取得する
*/
public Repository getRepository() {
return repository;
}
// Setter
/**
@@ -95,34 +66,13 @@ public class DocumentDetail {
}
/**
* ドキュメントのパス(DocumentPathインスタンス)を設定する
* @param path DocumentPathインスタンス
* ドキュメントのページ(Pageインスタンスのリスト)を設定する
* @param pages Pageインスタンスのリスト
*/
public void setPath(DocumentPath path) {
this.path = path;
public void setPages(ArrayList<Page> pages) {
this.pages = pages;
}
/**
* ドキュメントの作者(String)を設定する
* @param author ドキュメントの作者
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* ドキュメントのデフォルトブランチ(String)を設定する
* @param defaultBranch ドキュメントのデフォルトブランチ
*/
public void setDefaultBranch(String defaultBranch) {
this.defaultBranch = defaultBranch;
}
/**
* ドキュメントのリポジトリを設定する
*/
public void setRepository(Repository repository) {
this.repository = repository;
}
}
@@ -1,6 +1,8 @@
package one.nem.lacerta.model.document;
import java.util.ArrayList;
import one.nem.lacerta.model.PublicPath;
import one.nem.lacerta.model.document.tag.DocumentTag;
import java.util.Date;
import java.util.List;
@@ -9,7 +11,7 @@ import java.util.UUID;
/**
* ドキュメントのメタデータ
*/
public class DocumentMeta {
public class DocumentMeta { // TODO-rca: JavaDoc対応
/**
* ドキュメントのID(String)
*/
@@ -35,42 +37,63 @@ public class DocumentMeta {
*/
List<DocumentTag> tags;
PublicPath path;
String author;
String defaultBranch;
// Constructor
public DocumentMeta() {
}
public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags) { // With all
public DocumentMeta(String title) {
this.id = UUID.randomUUID().toString();
this.title = title;
this.tags = new ArrayList<>();
this.author = ""; // TODO-rca: 作者のデフォルト値を設定できるようにする
this.defaultBranch = "main"; // TODO-rca: デフォルトブランチのデフォルト値を設定できるようにする
this.path = new PublicPath().getRoot();
this.updatedAt = new Date();
this.createdAt = new Date();
}
public DocumentMeta(String title, List<DocumentTag> tags, String author, String defaultBranch) {
this.id = UUID.randomUUID().toString();
this.title = title;
this.tags = tags;
this.author = author;
this.defaultBranch = defaultBranch;
}
public DocumentMeta(String id, String title, List<DocumentTag> tags, String author, String defaultBranch) {
this.id = id;
this.title = title;
this.tags = tags;
this.author = author;
this.defaultBranch = defaultBranch;
}
public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags, String author, String defaultBranch) {
this.id = id;
this.title = title;
this.updatedAt = updatedAt;
this.createdAt = createdAt;
this.tags = tags;
this.author = author;
this.defaultBranch = defaultBranch;
}
public DocumentMeta(String id, String title, Date updatedAt, Date createdAt) { // Without tags
public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags, PublicPath path, String author, String defaultBranch) {
this.id = id;
this.title = title;
this.updatedAt = updatedAt;
this.createdAt = createdAt;
this.tags = new ArrayList<>();
}
public DocumentMeta(String id, String title) { // Without tags, updatedAt, createdAt
this.id = id;
this.title = title;
// 現在時刻を設定
this.updatedAt = new Date();
this.createdAt = new Date();
this.tags = new ArrayList<>();
}
public DocumentMeta(String title) { // title only
this.id = UUID.randomUUID().toString(); // 新規作成時想定なのでコンストラクタで生成してしまう(使う人が楽なので)
this.title = title;
// 現在時刻を設定
this.updatedAt = new Date();
this.createdAt = new Date();
this.tags = new ArrayList<>();
this.tags = tags;
this.path = path;
this.author = author;
this.defaultBranch = defaultBranch;
}
// Getter
@@ -121,6 +144,27 @@ public class DocumentMeta {
return tagIds;
}
/**
* PublicPathを取得する
*/
public PublicPath getPath() {
return path;
}
/**
* ドキュメントの作者(String)を取得する
*/
public String getAuthor() {
return author;
}
/**
* ドキュメントのデフォルトブランチ(String)を取得する
*/
public String getDefaultBranch() {
return defaultBranch;
}
// Setter
/**
@@ -163,6 +207,30 @@ public class DocumentMeta {
this.tags = tags;
}
/**
* PublicPathを設定する
* @param path PublicPath
*/
public void setPath(PublicPath path) {
this.path = path;
}
/**
* ドキュメントの作者(String)を設定する
* @param author ドキュメントの作者
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* ドキュメントのデフォルトブランチ(String)を設定する
* @param defaultBranch ドキュメントのデフォルトブランチ
*/
public void setDefaultBranch(String defaultBranch) {
this.defaultBranch = defaultBranch;
}
/**
* updatedAtを現在時刻に設定する
*/
Loaded 100 of 171 files, more files were not shown because too many files have changed in this diff. Show more