依存関係追加とか

This commit is contained in:
ろむねこ 2023-12-11 11:47:15 +09:00
parent 3dc1e2d4ee
commit d4e429fdca
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
3 changed files with 7 additions and 1 deletions

View File

@ -14,8 +14,10 @@ import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint; import dagger.hilt.android.AndroidEntryPoint;
import dagger.hilt.android.qualifiers.ApplicationContext; import dagger.hilt.android.qualifiers.ApplicationContext;
import one.nem.lacerta.source.pref.repository.Common;
@AndroidEntryPoint @AndroidEntryPoint
public class CommonImpl { public class CommonImpl implements Common {
@ApplicationContext @ApplicationContext
@Inject @Inject

View File

@ -3,6 +3,7 @@ package one.nem.lacerta.feature.debug;
import android.os.Bundle; import android.os.Bundle;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import androidx.navigation.ui.NavigationUI; import androidx.navigation.ui.NavigationUI;
import android.view.LayoutInflater; import android.view.LayoutInflater;
@ -88,6 +89,7 @@ public class DebugMenuFragment extends Fragment {
view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> {
// Fragment移動 // Fragment移動
Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugSharedPrefEditorFragment);
}); });
view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> { view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> {

View File

@ -1,6 +1,7 @@
[versions] [versions]
nav = "2.7.5" nav = "2.7.5"
agp = "8.0.2" agp = "8.0.2"
activity = "1.8.0"
[libraries] [libraries]
navigation-fragment = { group="androidx.navigation", name="navigation-fragment", version.ref="nav"} navigation-fragment = { group="androidx.navigation", name="navigation-fragment", version.ref="nav"}
@ -17,6 +18,7 @@ androidx-test-espresso-core = { group="androidx.test.espresso", name="espresso-c
com-google-dagger-hilt-android = { group="com.google.dagger", name="hilt-android", version="2.44" } com-google-dagger-hilt-android = { group="com.google.dagger", name="hilt-android", version="2.44" }
com-google-dagger-hilt-compiler = { group="com.google.dagger", name="hilt-compiler", version="2.44" } com-google-dagger-hilt-compiler = { group="com.google.dagger", name="hilt-compiler", version="2.44" }
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
[plugins] [plugins]
com-android-library = { id = "com.android.library", version.ref = "agp" } com-android-library = { id = "com.android.library", version.ref = "agp" }