Skip to content

Commit de27345

Browse files
authoredMay 17, 2024
Merge pull request #54 from appwrite/dev
fix: minor bugs
2 parents 20a109f + a1e71b4 commit de27345

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
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.5.4-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.5.6-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:5.1.0")
41+
implementation("io.appwrite:sdk-for-android:5.1.1")
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>5.1.0</version>
52+
<version>5.1.1</version>
5353
</dependency>
5454
</dependencies>
5555
```

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Client @JvmOverloads constructor(
8383
"x-sdk-name" to "Android",
8484
"x-sdk-platform" to "client",
8585
"x-sdk-language" to "android",
86-
"x-sdk-version" to "5.1.0",
86+
"x-sdk-version" to "5.1.1",
8787
"x-appwrite-response-format" to "1.5.0"
8888
)
8989
config = mutableMapOf()

‎library/src/main/java/io/appwrite/enums/CreditCard.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ enum class CreditCard(val value: String) {
99
ARGENCARD("argencard"),
1010
@SerializedName("cabal")
1111
CABAL("cabal"),
12-
@SerializedName("censosud")
13-
CONSOSUD("censosud"),
12+
@SerializedName("cencosud")
13+
CENCOSUD("cencosud"),
1414
@SerializedName("diners")
1515
DINERS_CLUB("diners"),
1616
@SerializedName("discover")

‎library/src/main/java/io/appwrite/enums/Flag.kt

+2
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ enum class Flag(val value: String) {
285285
PAPUA_NEW_GUINEA("pg"),
286286
@SerializedName("pl")
287287
POLAND("pl"),
288+
@SerializedName("pf")
289+
FRENCH_POLYNESIA("pf"),
288290
@SerializedName("kp")
289291
NORTH_KOREA("kp"),
290292
@SerializedName("pt")

‎library/src/main/java/io/appwrite/services/Account.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class Account(client: Client) : Service(client) {
372372
/**
373373
* Add Authenticator
374374
*
375-
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator) method.
375+
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
376376
*
377377
* @param type Type of authenticator. Must be `totp`
378378
* @return [io.appwrite.models.MfaType]
@@ -406,7 +406,7 @@ class Account(client: Client) : Service(client) {
406406
/**
407407
* Verify Authenticator
408408
*
409-
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
409+
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
410410
*
411411
* @param type Type of authenticator.
412412
* @param otp Valid verification token.
@@ -443,7 +443,7 @@ class Account(client: Client) : Service(client) {
443443
/**
444444
* Verify Authenticator
445445
*
446-
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
446+
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
447447
*
448448
* @param type Type of authenticator.
449449
* @param otp Valid verification token.

‎library/src/main/java/io/appwrite/services/Avatars.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Avatars(client: Client) : Service(client) {
5858
*
5959
* The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
6060
*
61-
* @param code Credit Card Code. Possible values: amex, argencard, cabal, censosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.
61+
* @param code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.
6262
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
6363
* @param height Image height. Pass an integer between 0 to 2000. Defaults to 100.
6464
* @param quality Image quality. Pass an integer between 0 to 100. Defaults to 100.

‎library/src/main/java/io/appwrite/services/Realtime.kt

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class Realtime(client: Client) : Service(client), CoroutineScope {
4444

4545
private fun createSocket() {
4646
if (activeChannels.isEmpty()) {
47+
reconnect = false
48+
closeSocket()
4749
return
4850
}
4951

0 commit comments

Comments
 (0)