DEADSOFTWARE

MainComponent in kotlin
authorfredboy <fredboy@protonmail.com>
Sat, 25 May 2024 04:52:14 +0000 (11:52 +0700)
committerfredboy <fredboy@protonmail.com>
Sat, 25 May 2024 04:52:14 +0000 (11:52 +0700)
core/src/ru/deadsoftware/cavedroid/MainComponent.java [deleted file]
core/src/ru/deadsoftware/cavedroid/MainComponent.kt [new file with mode: 0644]

diff --git a/core/src/ru/deadsoftware/cavedroid/MainComponent.java b/core/src/ru/deadsoftware/cavedroid/MainComponent.java
deleted file mode 100644 (file)
index b487c6d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-package ru.deadsoftware.cavedroid;
-
-import dagger.Component;
-import ru.deadsoftware.cavedroid.game.GameScreen;
-import ru.deadsoftware.cavedroid.menu.MenuScreen;
-import ru.deadsoftware.cavedroid.misc.utils.AssetLoader;
-import ru.deadsoftware.cavedroid.prefs.PreferencesStore;
-
-import javax.inject.Singleton;
-
-@Singleton
-@Component(dependencies = {CaveGame.class, PreferencesStore.class})
-public interface MainComponent {
-    GameScreen getGameScreen();
-
-    MenuScreen getMenuScreen();
-
-    MainConfig getMainConfig();
-
-    AssetLoader getAssetLoader();
-}
diff --git a/core/src/ru/deadsoftware/cavedroid/MainComponent.kt b/core/src/ru/deadsoftware/cavedroid/MainComponent.kt
new file mode 100644 (file)
index 0000000..b2a77ee
--- /dev/null
@@ -0,0 +1,22 @@
+package ru.deadsoftware.cavedroid
+
+import dagger.Component
+import ru.deadsoftware.cavedroid.game.GameScreen
+import ru.deadsoftware.cavedroid.menu.MenuScreen
+import ru.deadsoftware.cavedroid.misc.utils.AssetLoader
+import ru.deadsoftware.cavedroid.prefs.PreferencesStore
+import javax.inject.Singleton
+
+@Singleton
+@Component(dependencies = [CaveGame::class, PreferencesStore::class])
+interface MainComponent {
+
+    val gameScreen: GameScreen
+
+    val menuScreen: MenuScreen
+
+    val mainConfig: MainConfig
+
+    val assetLoader: AssetLoader
+
+}
\ No newline at end of file