diff --git a/app/build.gradle b/app/build.gradle index 3e0b7f21..89166fec 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,18 +45,18 @@ dependencies { implementation project(':feature:scan') implementation project(':feature:debug') // デバッグメニュー - // Component - implementation project(':component:common') - implementation project(':component:scanner') - implementation project(':component:viewer') +// // 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') - +// // Data +// implementation project(':data:repository') +// +// // Source +// implementation project(':data:source:database') +// implementation project(':data:source:preference') +// // Hilt (DI) implementation libs.com.google.dagger.hilt.android annotationProcessor libs.com.google.dagger.hilt.compiler diff --git a/app/src/main/java/one/nem/lacerta/MainActivity.java b/app/src/main/java/one/nem/lacerta/MainActivity.java index 7250a192..b541757e 100644 --- a/app/src/main/java/one/nem/lacerta/MainActivity.java +++ b/app/src/main/java/one/nem/lacerta/MainActivity.java @@ -11,7 +11,6 @@ import android.widget.Toast; import com.google.android.material.bottomnavigation.BottomNavigationView; -import one.nem.lacerta.data.repository.TestData; import dagger.hilt.android.AndroidEntryPoint; import javax.inject.Inject; @@ -19,9 +18,6 @@ import javax.inject.Inject; @AndroidEntryPoint public class MainActivity extends AppCompatActivity { - @Inject - TestData testData; - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -36,6 +32,6 @@ public class MainActivity extends AppCompatActivity { NavigationUI.setupWithNavController(bottomNavigationView, navController); - Toast.makeText(this, testData.getTestData(), Toast.LENGTH_SHORT).show(); + Toast.makeText(this, "testMessage", Toast.LENGTH_SHORT).show(); } } \ No newline at end of file diff --git a/feature/debug/build.gradle b/feature/debug/build.gradle index c6f6ed14..852a2e71 100644 --- a/feature/debug/build.gradle +++ b/feature/debug/build.gradle @@ -1,5 +1,6 @@ plugins { alias(libs.plugins.com.android.library) + id 'com.google.dagger.hilt.android' } android { diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java index 108a8310..38fa171b 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java @@ -21,6 +21,7 @@ import javax.inject.Inject; * create an instance of this fragment. */ +@AndroidEntryPoint public class DebugMenuFragment extends Fragment { @Inject