DEADSOFTWARE

Restructure project and use kotlin dsl
authorfredboy <fredboy@protonmail.com>
Sat, 25 May 2024 09:27:46 +0000 (16:27 +0700)
committerfredboy <fredboy@protonmail.com>
Sat, 25 May 2024 09:27:46 +0000 (16:27 +0700)
218 files changed:
android/assets [deleted symlink]
android/build.gradle [deleted file]
android/build.gradle.kts [new file with mode: 0644]
android/project.properties [deleted file]
android/src/debug/res/drawable-hdpi/ic_launcher.png [moved from android/debug/res/drawable-hdpi/ic_launcher.png with 100% similarity]
android/src/debug/res/drawable-mdpi/ic_launcher.png [moved from android/debug/res/drawable-mdpi/ic_launcher.png with 100% similarity]
android/src/debug/res/drawable-xhdpi/ic_launcher.png [moved from android/debug/res/drawable-xhdpi/ic_launcher.png with 100% similarity]
android/src/debug/res/drawable-xxhdpi/ic_launcher.png [moved from android/debug/res/drawable-xxhdpi/ic_launcher.png with 100% similarity]
android/src/debug/res/drawable-xxxhdpi/ic_launcher.png [moved from android/debug/res/drawable-xxxhdpi/ic_launcher.png with 100% similarity]
android/src/debug/res/drawable/ic_launcher_foreground.xml [moved from android/debug/res/drawable/ic_launcher_foreground.xml with 100% similarity]
android/src/debug/res/values/strings.xml [moved from android/debug/res/values/strings.xml with 100% similarity]
android/src/main/AndroidManifest.xml [moved from android/AndroidManifest.xml with 100% similarity]
android/src/main/assets [new symlink]
android/src/main/kotlin/ru/deadsoftware/cavedroid/AndroidLauncher.kt [moved from android/src/ru/deadsoftware/cavedroid/AndroidLauncher.kt with 100% similarity]
android/src/main/kotlin/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt [moved from android/src/ru/deadsoftware/cavedroid/AndroidPreferencesStore.kt with 100% similarity]
android/src/main/res/drawable-anydpi-v26/ic_launcher.xml [moved from android/res/drawable-anydpi-v26/ic_launcher.xml with 100% similarity]
android/src/main/res/drawable-hdpi/ic_launcher.png [moved from android/res/drawable-hdpi/ic_launcher.png with 100% similarity]
android/src/main/res/drawable-mdpi/ic_launcher.png [moved from android/res/drawable-mdpi/ic_launcher.png with 100% similarity]
android/src/main/res/drawable-xhdpi/ic_launcher.png [moved from android/res/drawable-xhdpi/ic_launcher.png with 100% similarity]
android/src/main/res/drawable-xxhdpi/ic_launcher.png [moved from android/res/drawable-xxhdpi/ic_launcher.png with 100% similarity]
android/src/main/res/drawable-xxxhdpi/ic_launcher.png [moved from android/res/drawable-xxxhdpi/ic_launcher.png with 100% similarity]
android/src/main/res/drawable/ic_launcher_background.xml [moved from android/res/drawable/ic_launcher_background.xml with 100% similarity]
android/src/main/res/drawable/ic_launcher_foreground.xml [moved from android/res/drawable/ic_launcher_foreground.xml with 100% similarity]
android/src/main/res/values/strings.xml [moved from android/res/values/strings.xml with 100% similarity]
android/src/main/res/values/styles.xml [moved from android/res/values/styles.xml with 100% similarity]
android/src/main/res/xml/backup_descriptor.xml [moved from android/res/xml/backup_descriptor.xml with 100% similarity]
build.gradle [deleted file]
build.gradle.kts [new file with mode: 0644]
buildSrc/build.gradle.kts [new file with mode: 0644]
buildSrc/src/main/kotlin/ApplicationInfo.kt [new file with mode: 0644]
buildSrc/src/main/kotlin/Dependencies.kt [new file with mode: 0644]
buildSrc/src/main/kotlin/Versions.kt [new file with mode: 0644]
core/build.gradle [deleted file]
core/build.gradle.kts [new file with mode: 0644]
core/src/main/java/ru/deadsoftware/cavedroid/MainConfig.java [moved from core/src/ru/deadsoftware/cavedroid/MainConfig.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameComponent.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameComponent.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameModule.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameModule.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GamePhysics.java [moved from core/src/ru/deadsoftware/cavedroid/game/GamePhysics.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameProc.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameProc.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameRenderer.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameRenderer.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameScope.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameScope.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameScreen.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameScreen.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/GameUiWindow.java [moved from core/src/ru/deadsoftware/cavedroid/game/GameUiWindow.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/mobs/Mob.java [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/Mob.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/mobs/player/Player.java [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/player/Player.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/objects/TouchButton.java [moved from core/src/ru/deadsoftware/cavedroid/game/objects/TouchButton.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java [moved from core/src/ru/deadsoftware/cavedroid/game/objects/drop/DropController.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/game/world/GameWorld.java [moved from core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuComponent.java [moved from core/src/ru/deadsoftware/cavedroid/menu/MenuComponent.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuProc.java [moved from core/src/ru/deadsoftware/cavedroid/menu/MenuProc.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuScope.java [moved from core/src/ru/deadsoftware/cavedroid/menu/MenuScope.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/MenuScreen.java [moved from core/src/ru/deadsoftware/cavedroid/menu/MenuScreen.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/Button.java [moved from core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java [moved from core/src/ru/deadsoftware/cavedroid/menu/objects/ButtonEventListener.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java [moved from core/src/ru/deadsoftware/cavedroid/menu/objects/ButtonRenderer.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/Menu.java [moved from core/src/ru/deadsoftware/cavedroid/menu/submenus/Menu.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java [moved from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuMain.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java [moved from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuNewGame.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/misc/Assets.java [moved from core/src/ru/deadsoftware/cavedroid/misc/Assets.java with 100% similarity]
core/src/main/java/ru/deadsoftware/cavedroid/misc/Renderer.java [moved from core/src/ru/deadsoftware/cavedroid/misc/Renderer.java with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/CaveGame.kt [moved from core/src/ru/deadsoftware/cavedroid/CaveGame.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/MainComponent.kt [moved from core/src/ru/deadsoftware/cavedroid/MainComponent.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt [moved from core/src/ru/deadsoftware/cavedroid/game/GameItemsHolder.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/CommonBlockActionUtils.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/IPlaceBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToBackgroundAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceBlockItemToForegroundAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/placeblock/PlaceSlabAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/IUpdateBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedLeftAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateBedRightAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateGrassAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateRequiresBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/updateblock/UpdateSnowedGrassAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/IUseBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseChestAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseCraftingTableAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useblock/UseFurnaceAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/IUseItemAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseBedAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseEmptyBucketAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseLavaBucketAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UsePigSpawnEggAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/actions/useitem/UseWaterBucketAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt [moved from core/src/ru/deadsoftware/cavedroid/game/debug/DebugInfoStringsProvider.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/IGameInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/InputUtils.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/InputUtils.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/Joystick.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/Joystick.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/action/IGameInputAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/action/KeyboardInputAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/action/MouseInputAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/action/keys/KeyboardInputActionKey.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/action/keys/MouseInputActionKey.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/CloseGameWindowKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/DropItemKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyDownKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/FlyUpKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoLeftKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/GoRightKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/JumpKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/MoveCursorControlsModeKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/OpenInventoryKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/PauseGameKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SelectHotbarSlotKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/StopSwimKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/SwimUpKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleControlsModeKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleDebugInfoKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleGameModeKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/ToggleMinimapKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/keyboard/TurnOnFlyModeKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/AbstractInventoryItemsMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/AttackMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CloseGameWindowMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CreativeInventoryScrollMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/CursorMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/HotbarMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectChestInventoryItemMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCraftingInventoryItemMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectCreativeInventoryItemMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectFurnaceInventoryItemMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/SelectSurvivalInventoryItemMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/mouse/UseItemMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/handler/touch/JoystickInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/mapper/KeyboardInputActionMapper.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt [moved from core/src/ru/deadsoftware/cavedroid/game/input/mapper/MouseInputActionMapper.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/FallingBlock.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/MobSaveDataMapper.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/MobsController.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/PeacefulMob.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/Pig.kt [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/Pig.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt [moved from core/src/ru/deadsoftware/cavedroid/game/mobs/player/Inventory.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/Block.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/block/Block.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/block/BlockAnimationInfo.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/block/BlockDropInfo.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/block/BlockMargins.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/block/CommonBlockParams.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/craft/CraftingRecipe.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/dto/BlockDto.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/dto/CraftingDto.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/dto/GameItemsDto.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/dto/ItemDto.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/dto/SaveDataDto.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/item/CommonItemParams.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/item/InventoryItem.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/item/Item.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/item/Item.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/mapper/BlockMapper.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/mapper/ItemMapper.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/world/Biome.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/world/Biome.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt [moved from core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt [moved from core/src/ru/deadsoftware/cavedroid/game/objects/container/Chest.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Container.kt [moved from core/src/ru/deadsoftware/cavedroid/game/objects/container/Container.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt [moved from core/src/ru/deadsoftware/cavedroid/game/objects/container/ContainerController.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt [moved from core/src/ru/deadsoftware/cavedroid/game/objects/container/Furnace.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt [moved from core/src/ru/deadsoftware/cavedroid/game/objects/drop/Drop.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/BackgroundBlocksRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/BlocksRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/DebugRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/DropsRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/ForegroundBlocksRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/HudRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/MobsRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/TouchControlsRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/WindowsRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/windows/AbstractWindowRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/windows/ChestWindowRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/windows/CraftingWindowRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/windows/CreativeWindowRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/windows/FurnaceWindowRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/game/render/windows/SurvivalWindowRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt [moved from core/src/ru/deadsoftware/cavedroid/game/save/GameSaveData.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt [moved from core/src/ru/deadsoftware/cavedroid/game/save/GameSaveLoader.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/TooltipManager.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsConfigs.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/GameWindowsManager.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindow.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/AbstractInventoryWindowWithCraftGrid.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/ChestInventoryWindow.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CraftingInventoryWindow.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/CreativeInventoryWindow.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/FurnaceInventoryWindow.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt [moved from core/src/ru/deadsoftware/cavedroid/game/ui/windows/inventory/SurvivalInventoryWindow.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt [moved from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldBlocksLogicControllerTask.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt [moved from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt [moved from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldGenerator.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt [moved from core/src/ru/deadsoftware/cavedroid/game/world/GameWorldMobDamageControllerTask.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt [moved from core/src/ru/deadsoftware/cavedroid/menu/objects/BooleanOptionButton.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt [moved from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenuOptions.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt [moved from core/src/ru/deadsoftware/cavedroid/menu/submenus/MenusFactory.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/Saveable.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/Saveable.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindKeyboardInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindKeyboardInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindMouseInputHandler.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindMouseInputHandler.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindPlaceBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindPlaceBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindRenderer.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindRenderer.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUpdateBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUpdateBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUseBlockAction.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUseBlockAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/BindUseItemAction.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/BindUseItemAction.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/annotations/multibind/MultibindingConfig.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/annotations/multibinding/MultibindingConfig.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/ArrayMapExtensions.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/AssetLoader.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/GdxExtensions.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/ItemUtils.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/MeasureUnitsUtils.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/RenderingUtils.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/SpriteOrigin.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/SpriteUtils.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt [moved from core/src/ru/deadsoftware/cavedroid/misc/utils/mobs/MobSprites.kt with 100% similarity]
core/src/main/kotlin/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt [moved from core/src/ru/deadsoftware/cavedroid/prefs/PreferencesStore.kt with 100% similarity]
desktop/assets [deleted symlink]
desktop/build.gradle [deleted file]
desktop/build.gradle.kts [new file with mode: 0644]
desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt [new file with mode: 0644]
desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt [moved from desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopPreferencesStore.kt with 100% similarity]
desktop/src/main/resources [new symlink]
desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java [deleted file]
settings.gradle [deleted file]
settings.gradle.kts [new file with mode: 0644]

diff --git a/android/assets b/android/assets
deleted file mode 120000 (symlink)
index ec2e4be..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../assets
\ No newline at end of file
diff --git a/android/build.gradle b/android/build.gradle
deleted file mode 100644 (file)
index d52b9e9..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-buildscript {
-    configurations { natives }
-}
-
-plugins {
-    id "com.android.application"
-    id "kotlin-android"
-}
-
-def keystorePropertiesFile = rootProject.file("keystore.properties")
-def keystoreProperties = new Properties()
-keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-
-android {
-    namespace "ru.deadsoftware.cavedroid"
-    compileSdkVersion 34
-    sourceSets {
-        main {
-            manifest.srcFile 'AndroidManifest.xml'
-            java.srcDirs = ['src']
-            aidl.srcDirs = ['src']
-            renderscript.srcDirs = ['src']
-            res.srcDirs = ['res']
-            assets.srcDirs = ['assets']
-            jniLibs.srcDirs = ['libs']
-        }
-        debug {
-            res.srcDirs = ['debug/res']
-        }
-    }
-    compileOptions {
-        sourceCompatibility 17
-        targetCompatibility 17
-    }
-    packagingOptions {
-        exclude 'META-INF/robovm/ios/robovm.xml'
-    }
-    defaultConfig {
-        applicationId "ru.deadsoftware.cavedroid"
-        minSdkVersion 19
-        targetSdkVersion 34
-        versionCode 25
-        versionName "alpha0.9.2"
-
-        multiDexEnabled true
-    }
-    applicationVariants.all { variant ->
-        variant.outputs.all {
-            outputFileName = "android-${versionName}.apk"
-        }
-    }
-
-    signingConfigs {
-        release_config {
-            storeFile file(keystoreProperties['releaseKeystorePath'])
-            storePassword keystoreProperties['releaseKeystorePassword']
-            keyAlias keystoreProperties['releaseKeyAlias']
-            keyPassword keystoreProperties['releaseKeyPassword']
-        }
-    }
-
-    buildTypes {
-        release {
-            minifyEnabled false
-            signingConfig signingConfigs.release_config
-        }
-        debug {
-            applicationIdSuffix ".debug"
-        }
-    }
-    buildFeatures {
-        buildConfig true
-    }
-
-}
-
-
-// called every time gradle gets executed, takes the native dependencies of
-// the natives configuration, and extracts them to the proper libs/ folders
-// so they get packed with the APK.
-task copyAndroidNatives {
-    doFirst {
-        file("libs/armeabi/").mkdirs()
-        file("libs/armeabi-v7a/").mkdirs()
-        file("libs/arm64-v8a/").mkdirs()
-        file("libs/x86_64/").mkdirs()
-        file("libs/x86/").mkdirs()
-
-        configurations.natives.files.each { jar ->
-            def outputDir = null
-            if (jar.name.endsWith("natives-arm64-v8a.jar")) outputDir = file("libs/arm64-v8a")
-            if (jar.name.endsWith("natives-armeabi-v7a.jar")) outputDir = file("libs/armeabi-v7a")
-            if(jar.name.endsWith("natives-armeabi.jar")) outputDir = file("libs/armeabi")
-            if(jar.name.endsWith("natives-x86_64.jar")) outputDir = file("libs/x86_64")
-            if(jar.name.endsWith("natives-x86.jar")) outputDir = file("libs/x86")
-            if(outputDir != null) {
-                copy {
-                    from zipTree(jar)
-                    into outputDir
-                    include "*.so"
-                }
-            }
-        }
-    }
-}
-
-tasks.whenTaskAdded { packageTask ->
-    if (packageTask.name.contains("package")) {
-        packageTask.dependsOn 'copyAndroidNatives'
-    }
-}
-
-task run(type: Exec) {
-    def path
-    def localProperties = project.file("../local.properties")
-    if (localProperties.exists()) {
-        Properties properties = new Properties()
-        localProperties.withInputStream { instr ->
-            properties.load(instr)
-        }
-        def sdkDir = properties.getProperty('sdk.dir')
-        if (sdkDir) {
-            path = sdkDir
-        } else {
-            path = "$System.env.ANDROID_HOME"
-        }
-    } else {
-        path = "$System.env.ANDROID_HOME"
-    }
-
-    def adb = path + "/platform-tools/adb"
-    commandLine "$adb", 'shell', 'am', 'start', '-n', 'ru.deadsoftware.cavedroid/ru.deadsoftware.cavedroid.AndroidLauncher'
-}
-
-dependencies {
-    implementation project(":core")
-    implementation platform("org.jetbrains.kotlin:kotlin-bom:$kotlinVersion")
-    api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
-    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
-    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
-    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
-    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
-
-    configurations.implementation {
-        exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
-    }
-}
\ No newline at end of file
diff --git a/android/build.gradle.kts b/android/build.gradle.kts
new file mode 100644 (file)
index 0000000..40e158e
--- /dev/null
@@ -0,0 +1,131 @@
+import java.io.FileInputStream
+import java.util.Properties
+
+private val natives by configurations.creating
+
+plugins {
+    id("com.android.application")
+    id("kotlin-android")
+}
+
+private val keystorePropertiesFile = rootProject.file("keystore.properties")
+private val keystoreProperties = if (keystorePropertiesFile.exists()) {
+    Properties().apply {
+        load(FileInputStream(keystorePropertiesFile))
+    }
+} else {
+    null
+}
+
+
+android {
+    namespace = ApplicationInfo.packageName
+    compileSdk = 34
+
+    sourceSets {
+
+        named("main") {
+            jniLibs.srcDir("libs")
+        }
+
+        named("debug") {
+            res.srcDir("src/debug/res")
+        }
+
+    }
+
+    compileOptions {
+        sourceCompatibility = ApplicationInfo.sourceCompatibility
+        targetCompatibility = ApplicationInfo.sourceCompatibility
+    }
+
+    defaultConfig {
+        applicationId = ApplicationInfo.packageName
+        minSdk = 19
+        targetSdk = 34
+
+        versionCode = ApplicationInfo.versionCode
+        versionName = ApplicationInfo.versionName
+
+        multiDexEnabled = true
+    }
+
+    applicationVariants.asSequence()
+        .flatMap { variant -> variant.outputs.asSequence() }
+        .mapNotNull { output -> output as? com.android.build.gradle.internal.api.BaseVariantOutputImpl }
+        .forEach { output -> output.outputFileName = "android-${ApplicationInfo.versionName}.apk" }
+
+    val releaseConfig = signingConfigs.create("release_config")
+    with(releaseConfig) {
+        storeFile = keystoreProperties?.get("releaseKeystorePath")?.let(::file)
+        storePassword = keystoreProperties?.get("releaseKeystorePassword")?.toString()
+        keyAlias = keystoreProperties?.get("releaseKeyAlias")?.toString()
+        keyPassword = keystoreProperties?.get("releaseKeyPassword")?.toString()
+    }
+
+    buildTypes {
+        release {
+            isMinifyEnabled = false
+            signingConfig = releaseConfig
+        }
+
+        debug {
+            applicationIdSuffix = ".debug"
+        }
+    }
+
+    buildFeatures {
+        buildConfig = true
+    }
+}
+
+// called every time gradle gets executed, takes the native dependencies of
+// the natives configuration, and extracts them to the proper libs/ folders
+// so they get packed with the APK.
+task("copyAndroidNatives") {
+    doFirst {
+        val armeabiV7Dir = file("libs/armeabi-v7a/").apply { mkdirs() }
+        val arm64Dir = file("libs/arm64-v8a/").apply { mkdirs() }
+        val x86Dir = file("libs/x86/").apply { mkdirs() }
+        val amd64Dir = file("libs/x86_64/").apply { mkdirs() }
+
+        natives.files.forEach { jar ->
+            val outputDir = when {
+                jar.name.endsWith("natives-armeabi-v7a.jar") -> armeabiV7Dir
+                jar.name.endsWith("natives-arm64-v8a.jar") -> arm64Dir
+                jar.name.endsWith("natives-x86.jar") -> x86Dir
+                jar.name.endsWith("natives-x86_64.jar") -> amd64Dir
+                else -> null
+            }
+
+            if (outputDir != null) {
+                copy {
+                    from(zipTree(jar))
+                    into(outputDir)
+                    include("*.so")
+                }
+            }
+        }
+    }
+}
+
+tasks.whenTaskAdded {
+    if (name.contains("package")) {
+        dependsOn("copyAndroidNatives")
+    }
+}
+
+dependencies {
+    implementation((project(":core")))
+    implementation(platform(Dependencies.Kotlin.bom))
+
+    implementation(Dependencies.LibGDX.gdx)
+    implementation(Dependencies.LibGDX.Android.backend)
+
+    natives(Dependencies.LibGDX.Android.Natives.armeabi)
+    natives(Dependencies.LibGDX.Android.Natives.arm64)
+    natives(Dependencies.LibGDX.Android.Natives.x86)
+    natives(Dependencies.LibGDX.Android.Natives.x86_64)
+
+    configurations["implementation"].exclude(group = "org.jetbrains.kotlin", module = "kotlin-stdlib-jdk8")
+}
\ No newline at end of file
diff --git a/android/project.properties b/android/project.properties
deleted file mode 100644 (file)
index 3fefa92..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# This file is used by the Eclipse ADT plugin. It is unnecessary for IDEA and Android Studio projects, which
-# configure Proguard and the Android target via the build.gradle file.
-
-# To enable ProGuard to work with Eclipse ADT, uncomment this (available properties: sdk.dir, user.home)
-# and ensure proguard.jar in the Android SDK is up to date (or alternately reduce the android target to 23 or lower):
-# proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-rules.pro
-
-# Project target.
-target=android-19
diff --git a/android/src/main/assets b/android/src/main/assets
new file mode 120000 (symlink)
index 0000000..2978ef3
--- /dev/null
@@ -0,0 +1 @@
+../../../assets
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
deleted file mode 100644 (file)
index 60a1bb3..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-buildscript {
-    ext {
-        appName = "CaveDroid"
-
-        gdxVersion = '1.12.0'
-
-        guavaVersion = '28.1'
-
-        daggerVersion = '2.51.1'
-
-        kotlinVersion = '1.9.24'
-        kspVersion = '1.9.24-1.0.20'
-        kotlinSerializationVersion = '1.6.3'
-
-        kotlinpoetKspVersion = '1.16.0'
-    }
-
-    repositories {
-        mavenLocal()
-        mavenCentral()
-        maven { url "https://plugins.gradle.org/m2/" }
-        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
-        google()
-    }
-
-    dependencies {
-        classpath 'com.android.tools.build:gradle:8.2.2'
-        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
-    }
-}
-
-allprojects {
-    version = 'alpha0.9.2'
-
-    repositories {
-        mavenLocal()
-        mavenCentral()
-        google()
-        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
-        maven { url "https://oss.sonatype.org/content/repositories/releases/" }
-        maven { url "https://jitpack.io" }
-        maven { url "https://mvn.fredboy.ru/releases/" }
-    }
-}
diff --git a/build.gradle.kts b/build.gradle.kts
new file mode 100644 (file)
index 0000000..203acec
--- /dev/null
@@ -0,0 +1,30 @@
+buildscript {
+    repositories {
+        mavenLocal()
+        mavenCentral()
+        google()
+        maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
+        maven { url = uri("https://oss.sonatype.org/content/repositories/releases/") }
+        maven { url = uri("https://jitpack.io") }
+        maven { url = uri("https://mvn.fredboy.ru/releases/") }
+    }
+
+    dependencies {
+        classpath(Dependencies.androidGradlePlugin)
+        classpath(Dependencies.Kotlin.gradlePlugin)
+    }
+}
+
+allprojects {
+    version = ApplicationInfo.versionName
+
+    repositories {
+        mavenLocal()
+        mavenCentral()
+        google()
+        maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
+        maven { url = uri("https://oss.sonatype.org/content/repositories/releases/") }
+        maven { url = uri("https://jitpack.io") }
+        maven { url = uri("https://mvn.fredboy.ru/releases/") }
+    }
+}
\ No newline at end of file
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
new file mode 100644 (file)
index 0000000..876c922
--- /dev/null
@@ -0,0 +1,7 @@
+plugins {
+    `kotlin-dsl`
+}
+
+repositories {
+    mavenCentral()
+}
diff --git a/buildSrc/src/main/kotlin/ApplicationInfo.kt b/buildSrc/src/main/kotlin/ApplicationInfo.kt
new file mode 100644 (file)
index 0000000..05676c4
--- /dev/null
@@ -0,0 +1,11 @@
+import org.gradle.api.JavaVersion
+
+object ApplicationInfo {
+    const val name = "CaveDroid"
+    const val versionName = "alpha0.9.2"
+    const val versionCode = 25
+
+    const val packageName = "ru.deadsoftware.cavedroid"
+
+    val sourceCompatibility = JavaVersion.VERSION_17
+}
\ No newline at end of file
diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt
new file mode 100644 (file)
index 0000000..bfe2c54
--- /dev/null
@@ -0,0 +1,49 @@
+object Dependencies {
+
+    object LibGDX {
+        const val gdx = "com.badlogicgames.gdx:gdx:${Versions.gdx}"
+
+        object Android {
+            const val backend = "com.badlogicgames.gdx:gdx-backend-android:${Versions.gdx}"
+
+            object Natives {
+                const val armeabi = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-armeabi-v7a"
+                const val arm64 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-arm64-v8a"
+                const val x86 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-x86"
+                const val x86_64 = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-x86_64"
+            }
+        }
+
+        object Desktop {
+            const val backend = "com.badlogicgames.gdx:gdx-backend-lwjgl3:${Versions.gdx}"
+            const val natives = "com.badlogicgames.gdx:gdx-platform:${Versions.gdx}:natives-desktop"
+        }
+    }
+
+    object Dagger {
+        const val dagger = "com.google.dagger:dagger:${Versions.dagger}"
+        const val compiler = "com.google.dagger:dagger-compiler:${Versions.dagger}"
+    }
+
+    object Kotlin {
+        const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
+        const val bom = "org.jetbrains.kotlin:kotlin-bom:${Versions.kotlin}"
+        const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}"
+
+        object Serialization {
+            const val json = "org.jetbrains.kotlinx:kotlinx-serialization-json:${Versions.kotlinxSerialization}"
+            const val protobuf = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:${Versions.kotlinxSerialization}"
+        }
+    }
+
+    object Automultibind {
+        const val annotations = "ru.fredboy:automultibind-annotations:${Versions.automultibind}"
+        const val ksp = "ru.fredboy:automultibind-ksp:${Versions.automultibind}"
+    }
+
+    const val androidGradlePlugin = "com.android.tools.build:gradle:${Versions.agp}"
+
+    // TODO: Remove after complete kotlin migration
+    const val jetbrainsAnnotations = "org.jetbrains:annotations:${Versions.jetbrainsAnnotations}"
+
+}
\ No newline at end of file
diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt
new file mode 100644 (file)
index 0000000..69bfd29
--- /dev/null
@@ -0,0 +1,63 @@
+object Versions {
+
+    /**
+     * Android gradle plugin version
+     */
+    const val agp = "8.2.2"
+
+    /**
+     * LibGDX version
+     *
+     * [Source](https://github.com/libgdx/libgdx)
+     */
+    const val gdx = "1.12.0"
+
+    /**
+     * Dagger version
+     *
+     * [Source](https://github.com/google/dagger)
+     */
+    const val dagger = "2.51.1"
+
+    /**
+     * Kotlin version
+     *
+     * [Source](https://github.com/JetBrains/kotlin)
+     */
+    const val kotlin = "1.9.24"
+
+    /**
+     * Kotlinx serialization version
+     *
+     * [Source](https://github.com/Kotlin/kotlinx.serialization/)
+     */
+    const val kotlinxSerialization = "1.6.3"
+
+    /**
+     * Kotlin Symbol Processing version
+     *
+     * [Source](https://github.com/google/ksp)
+     */
+    const val ksp = "1.9.24-1.0.20"
+
+    /**
+     * Kotlin poet version
+     *
+     * [Source](https://github.com/square/kotlinpoet)
+     */
+    const val kotlinPoetKsp = "1.16.0"
+
+    /**
+     * JetBrains annotations version
+     *
+     * [Source](https://github.com/JetBrains/java-annotations)
+     */
+    const val jetbrainsAnnotations = "23.1.0"
+
+    /**
+     * Automultibind version
+     *
+     * [Source](https://github.com/fredboy/automultibind)
+     */
+    const val automultibind = "1.0.0"
+}
\ No newline at end of file
diff --git a/core/build.gradle b/core/build.gradle
deleted file mode 100644 (file)
index bd932c3..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-plugins {
-    id "java-library"
-    id "org.jetbrains.kotlin.jvm"
-    id "kotlin"
-    id "idea"
-    id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion"
-    id 'com.google.devtools.ksp' version "$kspVersion"
-}
-
-java.targetCompatibility = JavaVersion.VERSION_17
-java.sourceCompatibility = JavaVersion.VERSION_17
-
-sourceSets.main.java.srcDirs = ["src/"]
-
-dependencies {
-    implementation "ru.fredboy:automultibind-annotations:1.0.0"
-    ksp "ru.fredboy:automultibind-ksp:1.0.0"
-
-    api "com.badlogicgames.gdx:gdx:$gdxVersion"
-    api "com.google.dagger:dagger:$daggerVersion"
-    implementation 'org.jetbrains:annotations:23.1.0'
-    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
-    implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"
-    implementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$kotlinSerializationVersion"
-    ksp "com.google.dagger:dagger-compiler:$daggerVersion"
-}
diff --git a/core/build.gradle.kts b/core/build.gradle.kts
new file mode 100644 (file)
index 0000000..276f49d
--- /dev/null
@@ -0,0 +1,26 @@
+plugins {
+    id("java-library")
+    id("org.jetbrains.kotlin.jvm")
+    id("kotlin")
+    id("idea")
+    id("org.jetbrains.kotlin.plugin.serialization") version Versions.kotlin
+    id ("com.google.devtools.ksp") version Versions.ksp
+}
+
+java.sourceCompatibility = ApplicationInfo.sourceCompatibility
+java.targetCompatibility = ApplicationInfo.sourceCompatibility
+
+dependencies {
+    implementation(Dependencies.Automultibind.annotations)
+    ksp(Dependencies.Automultibind.ksp)
+
+    implementation(Dependencies.LibGDX.gdx)
+    implementation(Dependencies.Dagger.dagger)
+
+    implementation(Dependencies.jetbrainsAnnotations)
+    implementation(Dependencies.Kotlin.stdlib)
+    implementation(Dependencies.Kotlin.Serialization.json)
+    implementation(Dependencies.Kotlin.Serialization.protobuf)
+
+    ksp(Dependencies.Dagger.compiler)
+}
\ No newline at end of file
diff --git a/desktop/assets b/desktop/assets
deleted file mode 120000 (symlink)
index ec2e4be..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../assets
\ No newline at end of file
diff --git a/desktop/build.gradle b/desktop/build.gradle
deleted file mode 100644 (file)
index f909ef1..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-plugins {
-    id 'java-library'
-    id 'kotlin'
-    id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinVersion"
-}
-
-java.targetCompatibility = JavaVersion.VERSION_17
-java.sourceCompatibility = JavaVersion.VERSION_1_8
-
-sourceSets.main.java.srcDirs = ["src/"]
-sourceSets.main.resources.srcDirs = ["assets/"]
-
-project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
-project.ext.assetsDir = new File("assets/")
-
-task run(dependsOn: build, type: JavaExec) {
-    main = project.mainClassName
-    classpath = sourceSets.main.runtimeClasspath
-    standardInput = System.in
-    workingDir = project.assetsDir
-    ignoreExitValue = true as JavaExecSpec
-    args "--debug"
-}
-
-task runTouch(dependsOn: build, type: JavaExec) {
-    main = project.mainClassName
-    classpath = sourceSets.main.runtimeClasspath
-    standardInput = System.in
-    workingDir = project.assetsDir
-    ignoreExitValue = true as JavaExecSpec
-    args "--touch", "--debug"
-}
-
-task dist(dependsOn: build, type: Jar) {
-    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
-    manifest {
-        attributes 'Main-Class': project.mainClassName
-    }
-    from {
-        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
-    }
-    with jar
-}
-
-dependencies {
-    implementation project(":core")
-    implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion"
-    api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
-    api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
-}
diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts
new file mode 100644 (file)
index 0000000..5e2203e
--- /dev/null
@@ -0,0 +1,41 @@
+plugins {
+    id("kotlin")
+}
+
+java.sourceCompatibility = ApplicationInfo.sourceCompatibility
+java.targetCompatibility = ApplicationInfo.sourceCompatibility
+
+private val desktopLauncherClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
+
+tasks.register<JavaExec>("run") {
+    dependsOn("build")
+    mainClass = desktopLauncherClassName
+    classpath = sourceSets["main"].runtimeClasspath
+    workingDir = sourceSets["main"].resources.sourceDirectories.first()
+    args("--debug")
+}
+
+tasks.register<JavaExec>("runTouch") {
+    dependsOn("build")
+    mainClass = desktopLauncherClassName
+    classpath = sourceSets["main"].runtimeClasspath
+    workingDir = sourceSets["main"].resources.sourceDirectories.first()
+    args("--touch", "--debug")
+}
+
+tasks.register<Jar>("dist") {
+    dependsOn("build")
+    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+    manifest {
+        attributes["Main-Class"] = desktopLauncherClassName
+    }
+    from(configurations.runtimeClasspath.get().resolve().map { it.takeIf(File::isDirectory) ?: zipTree(it) })
+}
+
+dependencies {
+    implementation(project(":core"))
+
+    implementation(Dependencies.LibGDX.gdx)
+    implementation(Dependencies.LibGDX.Desktop.backend)
+    implementation(Dependencies.LibGDX.Desktop.natives)
+}
diff --git a/desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt b/desktop/src/main/kotlin/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.kt
new file mode 100644 (file)
index 0000000..b4b3db4
--- /dev/null
@@ -0,0 +1,54 @@
+package ru.deadsoftware.cavedroid.desktop
+
+import com.badlogic.gdx.Files
+import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application
+import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
+import ru.deadsoftware.cavedroid.CaveGame
+
+internal object DesktopLauncher {
+
+    @JvmStatic
+    fun main(arg: Array<String>) {
+        val config = Lwjgl3ApplicationConfiguration()
+
+        with(config) {
+            setWindowIcon(
+                /* fileType = */ Files.FileType.Internal,
+                /* ...filePaths = */ "icons/icon512.png", "icons/icon256.png", "icons/icon128.png"
+            )
+            setTitle("CaveDroid")
+            setWindowedMode(960, 540)
+            useVsync(true)
+        }
+
+        var touch = false
+        var debug = false
+        var assetsPath: String? = null
+
+        for (anArg in arg) {
+            if (anArg == "--touch") {
+                touch = true
+            }
+
+            if (anArg == "--debug") {
+                debug = true
+            }
+
+            if (anArg.startsWith("--assets")) {
+                val splitArg: Array<String> = anArg.split("=".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
+                if (splitArg.size >= 2) {
+                    assetsPath = splitArg[1]
+                }
+            }
+        }
+
+        val caveGame = CaveGame(
+            gameDataDirectoryPath = System.getProperty("user.home") + "/.cavedroid",
+            isTouchScreen = touch,
+            isDebug = debug,
+            preferencesStore = DesktopPreferencesStore(),
+        )
+
+        Lwjgl3Application(caveGame, config)
+    }
+}
\ No newline at end of file
diff --git a/desktop/src/main/resources b/desktop/src/main/resources
new file mode 120000 (symlink)
index 0000000..2978ef3
--- /dev/null
@@ -0,0 +1 @@
+../../../assets
\ No newline at end of file
diff --git a/desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java b/desktop/src/ru/deadsoftware/cavedroid/desktop/DesktopLauncher.java
deleted file mode 100644 (file)
index 7137497..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-package ru.deadsoftware.cavedroid.desktop;
-
-import com.badlogic.gdx.Files;
-import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
-import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
-import ru.deadsoftware.cavedroid.CaveGame;
-
-class DesktopLauncher {
-    public static void main(String[] arg) {
-        Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
-        config.setWindowIcon(Files.FileType.Internal,
-                "icons/icon512.png", "icons/icon256.png", "icons/icon128.png");
-        config.setTitle("CaveDroid");
-        config.setWindowedMode(960, 540);
-        config.useVsync(true);
-
-        boolean touch = false;
-        boolean debug = false;
-        String assetsPath = null;
-
-        for (String anArg : arg) {
-            if (anArg.equals("--touch")) {
-                touch = true;
-            }
-
-            if (anArg.equals("--debug")) {
-                debug = true;
-            }
-
-            if (anArg.startsWith("--assets")) {
-                String[] splitArg = anArg.split("=");
-                if (splitArg.length >= 2) {
-                    assetsPath = splitArg[1];
-                }
-            }
-        }
-
-        CaveGame caveGame = new CaveGame(
-                System.getProperty("user.home") + "/.cavedroid",
-                touch,
-                debug,
-                new DesktopPreferencesStore()
-        );
-
-        new Lwjgl3Application(caveGame, config);
-    }
-}
diff --git a/settings.gradle b/settings.gradle
deleted file mode 100644 (file)
index 99367df..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include 'desktop', 'android', 'core'
-
diff --git a/settings.gradle.kts b/settings.gradle.kts
new file mode 100644 (file)
index 0000000..8b9f274
--- /dev/null
@@ -0,0 +1,3 @@
+include("android")
+include("desktop")
+include("core")