From db5244ba91ae9e9785de02a9640bb472c04847ff Mon Sep 17 00:00:00 2001 From: Dimitard Date: Mon, 4 Dec 2023 12:30:16 +0200 Subject: [PATCH] chore(project): Add support for shared folders - Start returning shared folders from `ApiClient.listFolder(String)` and `ApiClient.loadFolder()` methods --- CHANGELOG.md | 6 ++++++ README.md | 14 +++++++------- build.gradle | 4 ++++ .../com/pcloud/sdk/internal/RealApiClient.java | 5 +---- publishing.gradle | 4 ++-- 5 files changed, 20 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89b8deb..48cba3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ Changelog ========= +Version 1.9.1 (04.12.2023) +-------------------------- + +- Start returning shared folders from `ApiClient.listFolder(String)` and `ApiClient.loadFolder()` methods + + Version 1.9.0 (06.12.2022) -------------------------- diff --git a/README.md b/README.md index 8caa388..9d6384e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The official pCloud SDK for Java & Android for integrating with [ pCloud's API][docs]. -[![Maven Central](https://img.shields.io/maven-central/v/com.pcloud.sdk/java-core/1.9.0?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.pcloud.sdk%22) +[![Maven Central](https://img.shields.io/maven-central/v/com.pcloud.sdk/java-core/1.9.1?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.pcloud.sdk%22) ## Requirements @@ -53,15 +53,15 @@ Grab via Maven: com.pcloud.sdk java-core - 1.9.0 + 1.9.1 pom ``` or Gradle: ```groovy -implementation 'com.pcloud.sdk:java-core:1.9.0' +implementation 'com.pcloud.sdk:java-core:1.9.1' ``` - [![Maven Central](https://img.shields.io/maven-central/v/com.pcloud.sdk/java-core/1.9.0?label=Maven%20Central)](https://search.maven.org/artifact/com.pcloud.sdk/java-core/1.7.0/jar) + [![Maven Central](https://img.shields.io/maven-central/v/com.pcloud.sdk/java-core/1.9.1?label=Maven%20Central)](https://search.maven.org/artifact/com.pcloud.sdk/java-core/1.7.0/jar) #### Android @@ -76,15 +76,15 @@ Grab via Maven: com.pcloud.sdk android - 1.9.0 + 1.9.1 pom ``` or Gradle: ```groovy -implementation 'com.pcloud.sdk:android:1.9.0' +implementation 'com.pcloud.sdk:android:1.9.1' ``` -[![Maven Central](https://img.shields.io/maven-central/v/com.pcloud.sdk/java-core/1.9.0?label=Maven%20Central)](https://search.maven.org/artifact/com.pcloud.sdk/android/1.7.0/jar) +[![Maven Central](https://img.shields.io/maven-central/v/com.pcloud.sdk/java-core/1.9.1?label=Maven%20Central)](https://search.maven.org/artifact/com.pcloud.sdk/android/1.7.0/jar) ## Basics diff --git a/build.gradle b/build.gradle index 82298ac..79ec243 100644 --- a/build.gradle +++ b/build.gradle @@ -40,6 +40,10 @@ allprojects { } } } + + tasks.withType(Javadoc).configureEach { + options.addStringOption('Xdoclint:none', '-quiet') + } } subprojects { diff --git a/java-core/src/main/java/com/pcloud/sdk/internal/RealApiClient.java b/java-core/src/main/java/com/pcloud/sdk/internal/RealApiClient.java index 4029849..25b1919 100644 --- a/java-core/src/main/java/com/pcloud/sdk/internal/RealApiClient.java +++ b/java-core/src/main/java/com/pcloud/sdk/internal/RealApiClient.java @@ -181,8 +181,7 @@ public Call listFolder(String path, boolean recursively) { requireValidPath(path); HttpUrl.Builder urlBuilder = apiHost.newBuilder() .addPathSegment("listfolder") - .addEncodedQueryParameter("path", path) - .addQueryParameter("noshares", String.valueOf(1)); + .addEncodedQueryParameter("path", path); if (recursively) { urlBuilder.addEncodedQueryParameter("recursive", String.valueOf(1)); } @@ -721,7 +720,6 @@ public Call loadFolder(long folderId) { HttpUrl.Builder urlBuilder = apiHost.newBuilder() .addPathSegment("listfolder") .addQueryParameter("folderid", String.valueOf(folderId)) - .addQueryParameter("noshares", String.valueOf(1)) .addQueryParameter("nofiles", String.valueOf(1)); @@ -739,7 +737,6 @@ public Call loadFolder(String path) { HttpUrl.Builder urlBuilder = apiHost.newBuilder() .addPathSegment("listfolder") .addQueryParameter("path", path) - .addQueryParameter("noshares", String.valueOf(1)) .addQueryParameter("nofiles", String.valueOf(1)); Request request = newRequest() diff --git a/publishing.gradle b/publishing.gradle index 56f001a..2d8400d 100644 --- a/publishing.gradle +++ b/publishing.gradle @@ -1,8 +1,8 @@ ext { isCi = "true" == System.getenv('CI') - versionName = "1.9.0" - versionCode = 12 + versionName = "1.9.1" + versionCode = 13 groupId = "com.pcloud.sdk" }