chore: update SDKs to new RC version

This commit is contained in:
root
2024-08-20 11:02:09 +00:00
parent 4af79e2966
commit ec8cd71039
3 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ repositories {
Next, add the dependency to your project's `build.gradle(.kts)` file:
```groovy
implementation("io.appwrite:sdk-for-android:6.0.0-rc.1")
implementation("io.appwrite:sdk-for-android:6.0.0-rc.2")
```
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
<dependency>
<groupId>io.appwrite</groupId>
<artifactId>sdk-for-android</artifactId>
<version>6.0.0-rc.1</version>
<version>6.0.0-rc.2</version>
</dependency>
</dependencies>
```
+1 -1
View File
@@ -86,7 +86,7 @@ class Client @JvmOverloads constructor(
"x-sdk-name" to "Android",
"x-sdk-platform" to "client",
"x-sdk-language" to "android",
"x-sdk-version" to "6.0.0-rc.1",
"x-sdk-version" to "6.0.0-rc.2",
"x-appwrite-response-format" to "1.6.0"
)
config = mutableMapOf()
@@ -188,7 +188,6 @@ class Functions(client: Client) : Service(client) {
method: io.appwrite.enums.ExecutionMethod? = null,
headers: Any? = null,
scheduledAt: String? = null,
onProgress: ((UploadProgress) -> Unit)? = null
): io.appwrite.models.Execution {
val apiPath = "/functions/{functionId}/executions"
.replace("{functionId}", functionId)
@@ -202,22 +201,19 @@ class Functions(client: Client) : Service(client) {
"scheduledAt" to scheduledAt,
)
val apiHeaders = mutableMapOf(
"content-type" to "multipart/form-data",
"content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Execution = {
@Suppress("UNCHECKED_CAST")
io.appwrite.models.Execution.from(map = it as Map<String, Any>)
}
val idParamName: String? = null
return client.chunkedUpload(
return client.call(
"POST",
apiPath,
apiHeaders,
apiParams,
responseType = io.appwrite.models.Execution::class.java,
converter,
paramName,
idParamName,
onProgress,
)
}