mirror of
https://github.com/appwrite/sdk-for-android.git
synced 2026-06-06 19:28:02 +00:00
chore: update SDKs to new RC version
This commit is contained in:
@@ -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>
|
||||
```
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user