Skip to content

Commit af76289

Browse files
Merge pull request #39 from appwrite/dev
Dev
2 parents a8bf4d5 + bfefd97 commit af76289

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Maven Central](https://img.shields.io/maven-central/v/io.appwrite/sdk-for-android.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-android.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.4.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.4.2-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
@@ -38,7 +38,7 @@ repositories {
3838
Next, add the dependency to your project's `build.gradle(.kts)` file:
3939

4040
```groovy
41-
implementation("io.appwrite:sdk-for-android:3.0.1")
41+
implementation("io.appwrite:sdk-for-android:4.0.0")
4242
```
4343

4444
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
4949
<dependency>
5050
<groupId>io.appwrite</groupId>
5151
<artifactId>sdk-for-android</artifactId>
52-
<version>3.0.1</version>
52+
<version>4.0.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

docs/examples/java/teams/create-membership.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Teams teams = new Teams(client);
1111
teams.createMembership(
1212
"[TEAM_ID]",
1313
listOf(),
14-
"https://example.com",
1514
new CoroutineCallback<>((result, error) -> {
1615
if (error != null) {
1716
error.printStackTrace();

docs/examples/kotlin/teams/create-membership.md

-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ val teams = Teams(client)
1010
val response = teams.createMembership(
1111
teamId = "[TEAM_ID]",
1212
roles = listOf(),
13-
url = "https://example.com",
1413
)

library/src/main/java/io/appwrite/Client.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Client @JvmOverloads constructor(
8888
"x-sdk-name" to "Android",
8989
"x-sdk-platform" to "client",
9090
"x-sdk-language" to "android",
91-
"x-sdk-version" to "3.0.1",
91+
"x-sdk-version" to "4.0.0",
9292
"x-appwrite-response-format" to "1.4.0"
9393
)
9494
config = mutableMapOf()

library/src/main/java/io/appwrite/services/Teams.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,21 +315,21 @@ class Teams : Service {
315315
*
316316
* @param teamId Team ID.
317317
* @param roles Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
318-
* @param url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
319318
* @param email Email of the new team member.
320319
* @param userId ID of the user to be added to a team.
321320
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
321+
* @param url URL to redirect the user back to your app from the invitation email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
322322
* @param name Name of the new team member. Max length: 128 chars.
323323
* @return [io.appwrite.models.Membership]
324324
*/
325325
@JvmOverloads
326326
suspend fun createMembership(
327327
teamId: String,
328328
roles: List<String>,
329-
url: String,
330329
email: String? = null,
331330
userId: String? = null,
332331
phone: String? = null,
332+
url: String? = null,
333333
name: String? = null,
334334
): io.appwrite.models.Membership {
335335
val apiPath = "/teams/{teamId}/memberships"

0 commit comments

Comments
 (0)