Skip to content

CodeForFunGunForHire/FPTN-Client

Repository files navigation

Setup

Formatting

  • Install ktlint plugin
  • For automated formatting, Install Ktlint plugin to IDEA then you can go to Settings -> Tools -> KtLint -> Distract free.
  • For manual formatting you can use Command+Option+Enter.

Wildcard imports

For disabling wildcards go to Settings -> Editor -> Code style -> Kotlin -> Imports Choose Use single name import for all cases and uncheck all checkboxes below.

Submodules

git submodule update --init --recursive

Install conan

(For Windows, refer to these instructions to install all required dependencies.)

pip install conan numpy
sudo apt install clang

Create profile, get your conan home path

conan config home
conan profile detect -f

Go to the following path and open the profiles folder. For example, on my system, the path is: ~/.conan2/profiles

Then, create a file named android-studio with the following content:

include(default)

[settings]
os=Android
os.api_level=28
compiler=clang
compiler.version=20
compiler.libcxx=c++_static
compiler.cppstd=17

[tool_requires]
*: android-ndk/r27c

Ktlint formatting

Check: ./gradlew ktlintCheck

Format: ./gradlew ktlintFormat

Detekt check

Check: ./gradlew detektCheck

Dependency soring check

Sort: ./gradlew sortDependencies

Check: ./gradlew checkSortDependencies