Skip to content

Commit

Permalink
[java] Update codestyle
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Shkrob <andrew.shkrob.social@yandex.by>
  • Loading branch information
AndrewShkrob authored and rtsisyk committed Dec 29, 2024
1 parent ec072a1 commit 5da5e95
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 689 deletions.
229 changes: 0 additions & 229 deletions android/code_style_scheme.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value />
</option>
<option name="USE_FQ_CLASS_NAMES" value="true" />
<option name="USE_FQ_CLASS_NAMES" value="false" />
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="" withSubpackages="true" static="true" />
Expand Down
4 changes: 2 additions & 2 deletions docs/JAVA_STYLE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Java Style Guide

The Android app follows the style defined in `android/code_style_scheme.xml`. Code not respecting this style will not be accepted and you will be asked by reviewers to edit your PR.
The Android app follows the style defined in `android/config/AndroidStudioCodestyle.xml`. Code not respecting this style will not be accepted and you will be asked by reviewers to edit your PR.

## Importing the style in Android Studio

You can import this configuration file in Android Studio to allow automatically formatting Java files. When Android Studio is open, go to `File -> Settings` then open the section `Editor -> Code Style -> Java`. Here click on the gear icon next to the dropdown at the top of the page and select `Import Scheme...`. Select `android/code_style_scheme.xml` and press `OK` in the next dialog.
You can import this configuration file in Android Studio to allow automatically formatting Java files. When Android Studio is open, go to `File -> Settings` then open the section `Editor -> Code Style -> Java`. Here click on the gear icon next to the dropdown at the top of the page and select `Import Scheme...`. Select `android/config/AndroidStudioCodestyle.xml` and press `OK` in the next dialog.

## Formatting a file

Expand Down
Loading

0 comments on commit 5da5e95

Please sign in to comment.