Development environment setup

Install basic tools

Setup Java JDK

Java JDK comes embedded in Android studio and is often more compatible, so we don't need to manually download and install JDK. However, Android studio uses systems JDK by default, so the project structure needs to be changed in order to use the embedded one.

However, if you are going to use terminal for running some gradle tasks (and eventually you are going to) you may run in some problems if you are going to use Java version higher than 8. So I'd suggest downloading Java 8 and setting it to default in you terminal.

Import code style

To make working with the rest of the team easier, we all use the same code style settings. This ensures that there are no unnecessary changes caused by code style differences. It also makes it easier to conform to the established ckeckstyle rules. The code style includes Java, Kotlin, and XML styles.

To import Infinum's code style, follow these steps:

  1. Download code style file
  2. Open Preferences -> Editor -> Code Style
  3. Click on Manage next to Scheme picker
  4. Import the downloaded file

Some options in our code style are optional:

Other useful macOS tools