Update SETUP.md

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-09-15 15:57:47 +02:00
parent ee6ca8f1ae
commit 516cd96934
No known key found for this signature in database
GPG Key ID: F7AA2A8B65B50220

View File

@ -12,7 +12,6 @@
1. [Working with Android Studio](#working-with-android-studio)
1. [Working in a terminal with gradle](#working-in-a-terminal-with-gradle)
1. [App flavours](#app-flavours)
1. [Update Android Studio ktlint formatter](#update-android-studio-ktlint-formatter)
1. [Troubleshooting](#troubleshooting)
1. [Compilation fails with "java.lang.OutOfMemoryError: Java heap space" error](#compilation-fails-with-javalangoutofmemoryerror-java-heap-space-error)
@ -43,13 +42,13 @@ We recommend to use the last version available in the stable channel of Android
The Android SDK is necessary to build the app. Install it via Android Studio itself:
```Settings``` → ```Appearance & Behavior``` → ```System Settings``` → ```Android SDK```
```Settings``` → ```Languages & Frameworks```→ ```Android SDK```
After installing it, add the full path to the directories 'tools/' and 'platform-tools/' from your Android SDK installation into the PATH variable of your environment.
Open the Android SDK Manager under Android Studio's settings
```Settings``` → ```Appearance & Behavior``` → ```System Settings``` → ```Android SDK```
```Settings``` → ```Languages & Frameworks```→ ```Android SDK```
To build the Nextcloud for Android app you will need to install at least the next SDK packages:
@ -114,13 +113,6 @@ The app is currently equipped to be built with three flavours:
* **Gplay** - with Google stuff (push notification), used for Google Play store
* **Qa** - build per pr for testing
### Update Android Studio ktlint formatter
To update the formatter rules for kotlin files:
1. Download [latest release][9] to project's root folder
2. Run the following command: ```java -jar ktlint --android applyToIDEAProject -y```
3. Diff the changed files and incorporate the updates/changes only. This needs to be done by hand since the Android Studio files contain formatting rules for java and xml as well which are overridden (as in removed) by the ktlint generator.
## Troubleshooting
### Compilation fails with "java.lang.OutOfMemoryError: Java heap space" error