[Gradle] Format java source code

This commit is contained in:
Akash Yadav
2022-04-04 10:40:33 +05:30
parent 0f7a9b67b6
commit 31fc8a77c8
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ If you face `AAPT2` issue while building AndroidIDE in the IDE itself, specify t
## Source code format
The source code must have `4-space` indentation (soft tab).
Java source code is formatted using `google-java-format` with `AOSP` style formatting.
You can execute `./gradlew format` in terminal to format all Java source files using Google Java Format.
You can execute `./gradlew formatJavaSources` in terminal to format all Java source files using Google Java Format.
**This will commit the changes as well**.
## Issues & Pull requests
@@ -36,20 +36,20 @@ import org.json.JSONObject;
*
* <p>Examples: {@code # Empty: []
*
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Single row: [[ESC, TAB, CTRL, ALT, {key: '-',
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Single row: [[ESC, TAB, CTRL, ALT, {key: '-',
* popup: '|'}, DOWN, UP]]
*
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># 2 row: [['ESC','/',{key: '-', popup:
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># 2 row: [['ESC','/',{key: '-', popup:
* '|'},'HOME','UP','END','PGUP'], ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]
*
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Advance: [[ {key: ESC, popup: {macro: "CTRL f d",
* display: "tmux exit"}}, {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, {key: ALT,
* popup: {macro: "CTRL f TAB", display: "tmux →"}}, {key: TAB, popup: {macro: "ALT a", display:
* A-a}}, {key: LEFT, popup: HOME}, {key: DOWN, popup: PGDN}, {key: UP, popup: PGUP}, {key: RIGHT,
* popup: END}, {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, {key:
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Advance: [[ {key: ESC, popup: {macro: "CTRL f
* d", display: "tmux exit"}}, {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, {key:
* ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, {key: TAB, popup: {macro: "ALT a",
* display: A-a}}, {key: LEFT, popup: HOME}, {key: DOWN, popup: PGDN}, {key: UP, popup: PGUP}, {key:
* RIGHT, popup: END}, {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, {key:
* KEYBOARD, popup: {macro: "CTRL d", display: exit}} ]]
*
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p>}
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p>}
*
* <p>Aliases are also allowed for the keys that you can pass as {@code extraKeyAliasMap}. Check
* {@link VirtualKeysConstants#CONTROL_CHARS_ALIASES}.