Skip to content

Commit 946cbe7

Browse files
committed
chore: bug fixes and improvements
1 parent d42be7a commit 946cbe7

File tree

243 files changed

+883
-3041
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+883
-3041
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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)
99

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

1212
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)
1313

@@ -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.0.0-rc.1")
41+
implementation("io.appwrite:sdk-for-android:4.0.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.0.0-rc.1</version>
52+
<version>4.0.1</version>
5353
</dependency>
5454
</dependencies>
5555
```

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@ apply plugin: 'io.github.gradle-nexus.publish-plugin'
22

33
// Top-level build file where you can add configuration options common to all sub-projects/modules.
44
buildscript {
5-
ext.kotlin_version = "1.9.10"
6-
5+
ext.kotlin_version = "1.8.0"
76
version System.getenv("SDK_VERSION")
8-
97
repositories {
108
maven { url "https://plugins.gradle.org/m2/" }
119
google()
1210
mavenCentral()
1311
}
1412
dependencies {
15-
classpath "com.android.tools.build:gradle:8.2.2"
13+
classpath "com.android.tools.build:gradle:4.2.2"
1614
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17-
classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
15+
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
16+
17+
// NOTE: Do not place your application dependencies here; they belong
18+
// in the individual module build.gradle files
1819
}
1920
}
2021

docs/examples/java/account/add-authenticator.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/examples/java/account/create-anonymous-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Client client = new Client(context)
99
Account account = new Account(client);
1010

1111
account.createAnonymousSession(new CoroutineCallback<>((result, error) -> {
12-
if (error != null) {
12+
if (error != null)
1313
error.printStackTrace();
1414
return;
1515
}

docs/examples/java/account/create-challenge.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/examples/java/account/create-email-password-session.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/examples/java/account/create-email-token.md renamed to docs/examples/java/account/create-email-session.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Client client = new Client(context)
88

99
Account account = new Account(client);
1010

11-
account.createEmailToken(
12-
"[USER_ID]",
11+
account.createEmailSession(
1312
13+
"password"
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -19,4 +19,4 @@ account.createEmailToken(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);

docs/examples/java/account/create-j-w-t.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Client client = new Client(context)
99
Account account = new Account(client);
1010

1111
account.createJWT(new CoroutineCallback<>((result, error) -> {
12-
if (error != null) {
12+
if (error != null)
1313
error.printStackTrace();
1414
return;
1515
}

docs/examples/java/account/create-magic-u-r-l-token.md renamed to docs/examples/java/account/create-magic-u-r-l-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Client client = new Client(context)
88

99
Account account = new Account(client);
1010

11-
account.createMagicURLToken(
11+
account.createMagicURLSession(
1212
"[USER_ID]",
1313
1414
new CoroutineCallback<>((result, error) -> {
@@ -19,4 +19,4 @@ account.createMagicURLToken(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
4-
import io.appwrite.enums.OAuthProvider;
54

65
Client client = new Client(context)
76
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,7 +9,7 @@ Client client = new Client(context)
109
Account account = new Account(client);
1110

1211
account.createOAuth2Session(
13-
OAuthProvider.AMAZON,
12+
"amazon",
1413
new CoroutineCallback<>((result, error) -> {
1514
if (error != null) {
1615
error.printStackTrace();
@@ -19,4 +18,4 @@ account.createOAuth2Session(
1918

2019
Log.d("Appwrite", result.toString());
2120
})
22-
);
21+
);

0 commit comments

Comments
 (0)