Skip to content

Commit

Permalink
Merge pull request #4216 from nextcloud/modify_setup.md
Browse files Browse the repository at this point in the history
Update SETUP.md
  • Loading branch information
mahibi authored Sep 16, 2024
2 parents 911c52c + 516cd96 commit 9be076e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9be076e

Please sign in to comment.