From e6cdba337e944a1ab523e5a77293ac683bb16795 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 12:37:48 +0900 Subject: [PATCH] =?UTF-8?q?Hilt=E3=81=AEInject=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/viewer/ViewerBodyFragment.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java index cdde3395..4809416a 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java @@ -8,13 +8,33 @@ 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.data.Document; +import one.nem.lacerta.data.LacertaLibrary; +import one.nem.lacerta.utils.LacertaLogger; +import one.nem.lacerta.vcs.factory.LacertaVcsFactory; + /** * A simple {@link Fragment} subclass. * Use the {@link ViewerBodyFragment#newInstance} factory method to * create an instance of this fragment. */ +@AndroidEntryPoint public class ViewerBodyFragment extends Fragment { + @Inject + Document document; + + @Inject + LacertaLibrary lacertaLibrary; + + @Inject + LacertaLogger logger; + + @Inject + LacertaVcsFactory lacertaVcsFactory; public ViewerBodyFragment() { // Required empty public constructor