mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
DIテスト
This commit is contained in:
parent
7bcc4dbbad
commit
bc0370303f
|
@ -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')
|
||||
|
||||
// Data
|
||||
implementation project(':data:repository')
|
||||
|
||||
// Source
|
||||
implementation project(':data:source:database')
|
||||
implementation project(':data:source:preference')
|
||||
// // 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')
|
||||
//
|
||||
// Hilt (DI)
|
||||
implementation libs.com.google.dagger.hilt.android
|
||||
annotationProcessor libs.com.google.dagger.hilt.compiler
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
plugins {
|
||||
alias(libs.plugins.com.android.library)
|
||||
id 'com.google.dagger.hilt.android'
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -21,6 +21,7 @@ import javax.inject.Inject;
|
|||
* create an instance of this fragment.
|
||||
*/
|
||||
|
||||
@AndroidEntryPoint
|
||||
public class DebugMenuFragment extends Fragment {
|
||||
|
||||
@Inject
|
||||
|
|
Loading…
Reference in New Issue
Block a user