Skip to content
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

![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.7.4-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.8.0-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)

**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-android/releases).**
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-android/releases).**

Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Android SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)

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:8.2.2")
implementation("io.appwrite:sdk-for-android:9.0.0")
```

### 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>8.2.2</version>
<version>9.0.0</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/create-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.createMfaAuthenticator(
account.createMFAAuthenticator(
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/create-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.createMfaChallenge(
account.createMFAChallenge(
AuthenticationFactor.EMAIL, // factor
new CoroutineCallback<>((result, error) -> {
if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/create-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.createMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> {
account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/delete-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.deleteMfaAuthenticator(
account.deleteMFAAuthenticator(
AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/get-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.getMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> {
account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/list-mfa-factors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.listMfaFactors(new CoroutineCallback<>((result, error) -> {
account.listMFAFactors(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/update-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.updateMfaAuthenticator(
account.updateMFAAuthenticator(
AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/update-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.updateMfaChallenge(
account.updateMFAChallenge(
"<CHALLENGE_ID>", // challengeId
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/java/account/update-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Client client = new Client(context)

Account account = new Account(client);

account.updateMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> {
account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
Expand Down
26 changes: 26 additions & 0 deletions docs/examples/java/tablesdb/create-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.createRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
mapOf( "a" to "b" ), // data
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

27 changes: 27 additions & 0 deletions docs/examples/java/tablesdb/decrement-row-column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.decrementRowColumn(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
"", // column
0, // value (optional)
0, // min (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

24 changes: 24 additions & 0 deletions docs/examples/java/tablesdb/delete-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.deleteRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

25 changes: 25 additions & 0 deletions docs/examples/java/tablesdb/get-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.getRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

27 changes: 27 additions & 0 deletions docs/examples/java/tablesdb/increment-row-column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.incrementRowColumn(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
"", // column
0, // value (optional)
0, // max (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

24 changes: 24 additions & 0 deletions docs/examples/java/tablesdb/list-rows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.listRows(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

26 changes: 26 additions & 0 deletions docs/examples/java/tablesdb/update-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.updateRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
mapOf( "a" to "b" ), // data (optional)
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

26 changes: 26 additions & 0 deletions docs/examples/java/tablesdb/upsert-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;

Client client = new Client(context)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>"); // Your project ID

TablesDB tablesDB = new TablesDB(client);

tablesDB.upsertRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
mapOf( "a" to "b" ), // data (optional)
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}

Log.d("Appwrite", result.toString());
})
);

2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/create-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ val client = Client(context)

val account = Account(client)

val result = account.createMfaAuthenticator(
val result = account.createMFAAuthenticator(
type = AuthenticatorType.TOTP,
)
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/create-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ val client = Client(context)

val account = Account(client)

val result = account.createMfaChallenge(
val result = account.createMFAChallenge(
factor = AuthenticationFactor.EMAIL,
)
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/create-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ val client = Client(context)

val account = Account(client)

val result = account.createMfaRecoveryCodes()
val result = account.createMFARecoveryCodes()
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/delete-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ val client = Client(context)

val account = Account(client)

val result = account.deleteMfaAuthenticator(
val result = account.deleteMFAAuthenticator(
type = AuthenticatorType.TOTP,
)
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/get-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ val client = Client(context)

val account = Account(client)

val result = account.getMfaRecoveryCodes()
val result = account.getMFARecoveryCodes()
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/list-mfa-factors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ val client = Client(context)

val account = Account(client)

val result = account.listMfaFactors()
val result = account.listMFAFactors()
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/update-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ val client = Client(context)

val account = Account(client)

val result = account.updateMfaAuthenticator(
val result = account.updateMFAAuthenticator(
type = AuthenticatorType.TOTP,
otp = "<OTP>",
)
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/update-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ val client = Client(context)

val account = Account(client)

val result = account.updateMfaChallenge(
val result = account.updateMFAChallenge(
challengeId = "<CHALLENGE_ID>",
otp = "<OTP>",
)
2 changes: 1 addition & 1 deletion docs/examples/kotlin/account/update-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ val client = Client(context)

val account = Account(client)

val result = account.updateMfaRecoveryCodes()
val result = account.updateMFARecoveryCodes()
Loading