mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-03 13:30:51 +07:00
Add more comments on Editor Settings (#6869)
This commit is contained in:
parent
0ced4d96e7
commit
8bcb989d0f
@ -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 `<repo_folder>\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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user