From 516cd96934aa4f4d2ae90bc5967a6bc7bac52770 Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Sun, 15 Sep 2024 15:57:47 +0200 Subject: [PATCH] Update SETUP.md Signed-off-by: sowjanyakch --- SETUP.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/SETUP.md b/SETUP.md index 96cf791a4..540fca71a 100644 --- a/SETUP.md +++ b/SETUP.md @@ -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