From 8bcb989d0ff237b14a5b1cd3e4996af90975b9fe Mon Sep 17 00:00:00 2001 From: itanasi <44038014+itanasi@users.noreply.github.com> Date: Thu, 19 May 2022 08:03:15 -0700 Subject: [PATCH] Add more comments on Editor Settings (#6869) --- docs/Developers/Building-Locally.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/Developers/Building-Locally.md b/docs/Developers/Building-Locally.md index f55ecaa7b1..40c5cede04 100644 --- a/docs/Developers/Building-Locally.md +++ b/docs/Developers/Building-Locally.md @@ -27,11 +27,16 @@ So first things first - the initial "No assumptions" setup to have Unciv run fro - Set the module classpath (the box to the right of the Java selection) to `Unciv.desktop.main` (`Unciv.desktop` for Bumblebee or below), main class to `com.unciv.app.desktop.DesktopLauncher` and `\android\assets\` as the Working directory, OK to close the window - If you get a `../../docs/uniques.md (No such file or directory)` error that means you forgot to set the working directory! - Select the Desktop configuration (or however you chose to name it) and click the green arrow button to run! Or you can use the next button -the green critter with six legs and two feelers - to start debugging. -- I also recommend going to Settings > Version Control > Commit and turning off 'Before commit - perform code analysis' +- A few Android Studio settings that are recommended: + - Going to Settings > Version Control > Commit and turning off 'Before commit - perform code analysis' + - Settings > Editor > Code Style > Kotlin > Tabs and Indents > Continuation Indent: 4 + ![image](https://user-images.githubusercontent.com/44038014/169315352-9ba0c4cf-307c-44d1-b3bc-2a58752c6854.png) + - Settings > Editor > General > On Save > Uncheck Remove trailing spaces on: [...] to prevent it from removing necessary trailing whitespace in template.properties for translation files + ![image](https://user-images.githubusercontent.com/44038014/169316243-07e36b8e-4c9e-44c4-941c-47e634c68b4c.png) Unciv uses Gradle to specify dependencies and how to run. In the background, the Gradle gnomes will be off fetching the packages (a one-time effort) and, once that's done, will build the project! -Unciv uses Gradle 7.2 and the Android Gradle Plugin 7.1.0 +Unciv uses Gradle 7.2 and the Android Gradle Plugin 7.1.3. Can check in File > Project Structure > Project Note advanced build commands as described in the next paragraph, specifically the `gradlew desktop:dist` one to build a jar, run just fine in Android Studio's terminal (Alt+F12), with most dependencies already taken care of.