diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
deleted file mode 100644
index 76049e85..00000000
--- a/.idea/deploymentTargetDropDown.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/feature/library/build.gradle b/feature/library/build.gradle
index 97d6dc86..89087a45 100644
--- a/feature/library/build.gradle
+++ b/feature/library/build.gradle
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
+ id 'com.google.dagger.hilt.android'
}
android {
@@ -46,5 +47,9 @@ dependencies {
implementation project(':shared:ui')
+ implementation project(':model')
+
+ implementation project(':data')
+
}
\ No newline at end of file
diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java
index 12b4fdef..987dc903 100644
--- a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java
+++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java
@@ -10,12 +10,18 @@ import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
+import one.nem.lacerta.model.document.DocumentMeta;
+
public class DocumentAdapter extends RecyclerView.Adapter {
- private List documentList;
+ private List documentMetas;
- public DocumentAdapter(List documentList) {
- this.documentList = documentList;
+ public DocumentAdapter(List documentMetas) {
+ // nullの場合に例外を発生させる
+ if (documentMetas == null) {
+ throw new IllegalArgumentException("DocumentMetas list cannot be null or empty");
+ }
+ this.documentMetas = documentMetas;
}
@NonNull
@@ -27,12 +33,15 @@ public class DocumentAdapter extends RecyclerView.Adapter documentList = new ArrayList<>();
- documentList.add("Document A");
- documentList.add("Document B");
- documentList.add("Document C");
+ //データを取得
+
+ List 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(documentList);
+ DocumentAdapter adapter = new DocumentAdapter(metas);
documentRecyclerView.setAdapter(adapter);
// Use a LinearLayoutManager to specify the layout