diff --git a/README.md b/README.md
index b06e453..548f312 100644
--- a/README.md
+++ b/README.md
@@ -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:
io.appwrite
sdk-for-android
- 6.0.0-rc.1
+ 6.0.0-rc.2
```
diff --git a/library/src/main/java/io/appwrite/Client.kt b/library/src/main/java/io/appwrite/Client.kt
index 1e2f464..2c2593b 100644
--- a/library/src/main/java/io/appwrite/Client.kt
+++ b/library/src/main/java/io/appwrite/Client.kt
@@ -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()
diff --git a/library/src/main/java/io/appwrite/services/Functions.kt b/library/src/main/java/io/appwrite/services/Functions.kt
index a8fa0d3..c0c0bc0 100644
--- a/library/src/main/java/io/appwrite/services/Functions.kt
+++ b/library/src/main/java/io/appwrite/services/Functions.kt
@@ -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)
}
- 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,
)
}