Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: minor bugs #54

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

```groovy
implementation("io.appwrite:sdk-for-android:5.1.0")
implementation("io.appwrite:sdk-for-android:5.1.1")
```

### Maven
Expand All @@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
<dependency>
<groupId>io.appwrite</groupId>
<artifactId>sdk-for-android</artifactId>
<version>5.1.0</version>
<version>5.1.1</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/io/appwrite/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Client @JvmOverloads constructor(
"x-sdk-name" to "Android",
"x-sdk-platform" to "client",
"x-sdk-language" to "android",
"x-sdk-version" to "5.1.0",
"x-sdk-version" to "5.1.1",
"x-appwrite-response-format" to "1.5.0"
)
config = mutableMapOf()
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/io/appwrite/enums/CreditCard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ enum class CreditCard(val value: String) {
ARGENCARD("argencard"),
@SerializedName("cabal")
CABAL("cabal"),
@SerializedName("censosud")
CONSOSUD("censosud"),
@SerializedName("cencosud")
CENCOSUD("cencosud"),
@SerializedName("diners")
DINERS_CLUB("diners"),
@SerializedName("discover")
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/java/io/appwrite/enums/Flag.kt
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ enum class Flag(val value: String) {
PAPUA_NEW_GUINEA("pg"),
@SerializedName("pl")
POLAND("pl"),
@SerializedName("pf")
FRENCH_POLYNESIA("pf"),
@SerializedName("kp")
NORTH_KOREA("kp"),
@SerializedName("pt")
Expand Down
6 changes: 3 additions & 3 deletions library/src/main/java/io/appwrite/services/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class Account(client: Client) : Service(client) {
/**
* Add Authenticator
*
* 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.
* 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.
*
* @param type Type of authenticator. Must be `totp`
* @return [io.appwrite.models.MfaType]
Expand Down Expand Up @@ -406,7 +406,7 @@ class Account(client: Client) : Service(client) {
/**
* Verify Authenticator
*
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
*
* @param type Type of authenticator.
* @param otp Valid verification token.
Expand Down Expand Up @@ -443,7 +443,7 @@ class Account(client: Client) : Service(client) {
/**
* Verify Authenticator
*
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
*
* @param type Type of authenticator.
* @param otp Valid verification token.
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/io/appwrite/services/Avatars.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Avatars(client: Client) : Service(client) {
*
* 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.
*
* @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.
* @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.
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
* @param height Image height. Pass an integer between 0 to 2000. Defaults to 100.
* @param quality Image quality. Pass an integer between 0 to 100. Defaults to 100.
Expand Down
2 changes: 2 additions & 0 deletions library/src/main/java/io/appwrite/services/Realtime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Realtime(client: Client) : Service(client), CoroutineScope {

private fun createSocket() {
if (activeChannels.isEmpty()) {
reconnect = false
closeSocket()
return
}

Expand Down