30
loading...
This website collects cookies to deliver better user experience
Appwrite is an open-source, self-hosted Backend-as-a-Service that aims to make app development easier with SDKs available in a variety of programming languages. Come hang out with us on Discord.
repositories {
mavenCentral()
}
dependencies {
implementation("io.appwrite:sdk-for-android:0.0.1")
}
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import io.appwrite.Client
import io.appwrite.services.Account
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val client = Client(applicationContext)
.setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
val account = Account(client)
GlobalScope.launch {
val response = account.create(
email = "[email protected]",
password = "password",
)
}
}
}
<dependencies>
<dependency>
<groupId>io.appwrite</groupId>
<artifactId>sdk-for-kotlin</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
dependencies {
implementation("io.appwrite:sdk-for-kotlin:0.0.1")
}
import io.appwrite.Client
import io.appwrite.services.Users
suspend fun main() {
val client = Client(context)
.setEndpoint("https://[HOSTNAME_OR_IP]/v1")
.setProject("5df5acd0d48c2")
.setKey("919c2d18fb5d4...a2ae413da83346ad2")
val users = Users(client)
val response = users.create(
email = "[email protected]",
password = "password",
)
val json = response.body?.string()
}
env
has been renamed to runtime
in the POST v1/functions
endpoint. If you're using named parameters in your server SDKs, you will need to update them.
deleteUser
has been replaced in favour of the delete
method in all our Server SDKs.
Our Image Preview 📸 endpoint now let's you specify a gravity giving you much more control when cropping your images!
One of our community members @Meldiron, helped speed up our Cloud Function executions by upto a whopping 4s 🤯 in some cases.
We revamped our User Sessions UI in the Dashboard to give you more fine grained information about a user's session.
We've added some additional metadata in our File Preview Dialog to make it easier to view your file types, file size and the creation date.
Internally, we've optimized our database connection pools for overall improved server performance 🤩
Gone are the days of running multiple migration scripts to upgrade to the latest version of Appwrite! From Appwrite 0.9, it's just a single script!
Based on popular demand, we've added a new endpoint to get a session by ID and another endpoint to force update the user verification status from Server Side SDKs.
Last but not the least, we've overhauled our Email Templates in an attempt to offer lot more customization in the future!
Let's not forget, you also helped us reach a major milestone of 10k Github stars ⭐️ making us one of the top 2000 projects in Github history! We also crossed a landmark 2.2M Docker pulls and over 40k reads on our blog posts! Thank you so much for all your support!