diff --git a/app/sdks/client-android/.github/workflows/publish.yml b/app/sdks/client-android/.github/workflows/publish.yml
deleted file mode 100644
index b777478bfb..0000000000
--- a/app/sdks/client-android/.github/workflows/publish.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-name: Publish to Maven Central
-
-# Run this workflow when a release is created
-on:
- release:
- types: [released]
-
-jobs:
- publish:
- name: Release build and publish
- runs-on: ubuntu-latest
- steps:
- - name: Check out code
- uses: actions/checkout@v2
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
- # Base64 decodes and pipes the GPG key content into the secret file
- - name: Prepare environment
- env:
- GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
- SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
- run: |
- git fetch --unshallow
- sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
- chmod +x ./gradlew
-
- # Builds the release artifacts of the library
- - name: Build Release Artifacts
- run: ./gradlew --info library:assembleRelease
-
- # Generates other artifacts (javadocJar is optional)
- - name: Generate Source jar
- run: ./gradlew javadocJar
-
- # Runs upload, and then closes & releases the repository
- - name: Publish Release Version to MavenCentral
- run: |
- if ${{ endswith(github.event.release.tag_name, '-SNAPSHOT') }}; then
- echo "Publising Snapshot Version ${{ github.event.release.tag_name}} to Snapshot repository"
- ./gradlew publishReleasePublicationToSonatypeRepository
- else
- echo "Publising Release Version ${{ github.event.release.tag_name}} to Staging repository"
- ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
- fi
- env:
- OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
- SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
- SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
- SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
- SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
\ No newline at end of file
diff --git a/app/sdks/client-android/.gitignore b/app/sdks/client-android/.gitignore
deleted file mode 100644
index 36fb932326..0000000000
--- a/app/sdks/client-android/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/*
-.DS_Store
-/build
-/captures
-.externalNativeBuild
-.cxx
-.local.properties
-.env
-*/build
\ No newline at end of file
diff --git a/app/sdks/client-android/CHANGELOG.md b/app/sdks/client-android/CHANGELOG.md
deleted file mode 100644
index fa4d35e687..0000000000
--- a/app/sdks/client-android/CHANGELOG.md
+++ /dev/null
@@ -1 +0,0 @@
-# Change Log
\ No newline at end of file
diff --git a/app/sdks/client-android/LICENSE.md b/app/sdks/client-android/LICENSE.md
deleted file mode 100644
index d73a6e9829..0000000000
--- a/app/sdks/client-android/LICENSE.md
+++ /dev/null
@@ -1,12 +0,0 @@
-Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
- 3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/app/sdks/client-android/README.md b/app/sdks/client-android/README.md
deleted file mode 100644
index 87260ade47..0000000000
--- a/app/sdks/client-android/README.md
+++ /dev/null
@@ -1,157 +0,0 @@
-# Appwrite Android SDK
-
-![License](https://img.shields.io/github/license/appwrite/sdk-for-android.svg?style=flat-square)
-![Version](https://img.shields.io/badge/api%20version-0.8.0-blue.svg?style=flat-square)
-[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
-[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
-
-**This SDK is compatible with Appwrite server version 0.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)
-
-![Appwrite](https://appwrite.io/images/github.png)
-
-## Installation
-
-### Gradle
-
-Appwrite's Android SDK is hosted on Maven Central. In order to fetch the Appwrite SDK, add this to your root level `build.gradle(.kts)` file:
-
-```groovy
-repositories {
- mavenCentral()
-}
-```
-
-If you would like to fetch our SNAPSHOT releases, you need to add the SNAPSHOT maven repository to your `build.gradle(.kts)`:
-
-```groovy
-repositories {
- maven {
- url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
- }
-}
-```
-
-Next, add the dependency to your project's `build.gradle(.kts)` file:
-
-```groovy
-implementation("io.appwrite:sdk-for-android:0.0.0-SNAPSHOT")
-```
-
-### Maven
-Add this to your project's `pom.xml` file:
-
-```xml
-
-
- io.appwrite
- sdk-for-android
- 0.0.0-SNAPSHOT
-
-
-```
-
-
-## Getting Started
-
-### Add your Android Platform
-To initialize your SDK and start interacting with Appwrite services, you need to add a new Android platform to your project. To add a new platform, go to your Appwrite console, select your project (create one if you haven't already), and click the 'Add Platform' button on the project Dashboard.
-
-From the options, choose to add a new **Android** platform and add your app credentials.
-
-Add your app name and package name. Your package name is generally the applicationId in your app-level `build.gradle` file. By registering a new platform, you are allowing your app to communicate with the Appwrite API.
-
-### Registering additional activities
-In order to capture the Appwrite OAuth callback url, the following activity needs to be added to your [AndroidManifest.xml](https://github.com/appwrite/playground-for-android/blob/master/app/src/main/AndroidManifest.xml). Be sure to replace the **[PROJECT_ID]** string with your actual Appwrite project ID. You can find your Appwrite project ID in your project settings screen in the console.
-
-```xml
-
-
-
-
-
-
-
-
-
-
-
-
-```
-
-### Init your SDK
-
-
Initialize your SDK with your Appwrite server API endpoint and project ID, which can be found in your project settings page.
-
-```kotlin
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
- .setSelfSigned(true) // Remove in production
-```
-
-Before starting to send any API calls to your new Appwrite instance, make sure your Android emulators has network access to the Appwrite server hostname or IP address.
-
-When trying to connect to Appwrite from an emulator or a mobile device, localhost is the hostname of the device or emulator and not your local Appwrite instance. You should replace localhost with your private IP. You can also use a service like [ngrok](https://ngrok.com/) to proxy the Appwrite API.
-
-### Make Your First Request
-
-
Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
-
-```kotlin
-// Register User
-val account = Account(client)
-val response = account.create(
- "email@example.com",
- "password"
-)
-```
-
-### Full Example
-
-```kotlin
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
- .setSelfSigned(true) // Remove in production
-
-val account = Account(client)
-val response = account.create(
- "email@example.com",
- "password"
-)
-```
-
-### Error Handling
-The Appwrite Android SDK raises an `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
-
-```kotlin
-try {
- var response = account.create("email@example.com", "password")
- Log.d("Appwrite response", response.body?.string())
-} catch(e : AppwriteException) {
- Log.e("AppwriteException",e.message.toString())
-}
-```
-
-### Learn more
-You can use following resources to learn more and get help
-- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-android)
-- 📜 [Appwrite Docs](https://appwrite.io/docs)
-- 💬 [Discord Community](https://appwrite.io/discord)
-- 🚂 [Appwrite Android Playground](https://github.com/appwrite/playground-for-android)
-
-## Contribution
-
-This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request.
-
-## License
-
-Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information.
\ No newline at end of file
diff --git a/app/sdks/client-android/build.gradle b/app/sdks/client-android/build.gradle
deleted file mode 100644
index 6503509470..0000000000
--- a/app/sdks/client-android/build.gradle
+++ /dev/null
@@ -1,36 +0,0 @@
-apply plugin: 'io.github.gradle-nexus.publish-plugin'
-
-// Top-level build file where you can add configuration options common to all sub-projects/modules.
-buildscript {
- ext.kotlin_version = "1.4.31"
- version '0.0.0-SNAPSHOT'
- repositories {
- maven { url "https://plugins.gradle.org/m2/" }
- google()
- mavenCentral()
- }
- dependencies {
- classpath "com.android.tools.build:gradle:4.2.0"
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
-
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
-}
-
-allprojects {
- repositories {
- maven { url "https://jitpack.io" }
- google()
- mavenCentral()
- }
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
-
-
-apply from: "${rootDir}/scripts/publish-config.gradle"
-
diff --git a/app/sdks/client-android/docs/examples/account/create-anonymous-session.md b/app/sdks/client-android/docs/examples/account/create-anonymous-session.md
deleted file mode 100644
index 9aa6d9002a..0000000000
--- a/app/sdks/client-android/docs/examples/account/create-anonymous-session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createAnonymousSession()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/create-j-w-t.md b/app/sdks/client-android/docs/examples/account/create-j-w-t.md
deleted file mode 100644
index 50965da19a..0000000000
--- a/app/sdks/client-android/docs/examples/account/create-j-w-t.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createJWT()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/create-o-auth2session.md b/app/sdks/client-android/docs/examples/account/create-o-auth2session.md
deleted file mode 100644
index 8eaa4aff76..0000000000
--- a/app/sdks/client-android/docs/examples/account/create-o-auth2session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createOAuth2Session("amazon")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/create-recovery.md b/app/sdks/client-android/docs/examples/account/create-recovery.md
deleted file mode 100644
index c43a0e3f74..0000000000
--- a/app/sdks/client-android/docs/examples/account/create-recovery.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createRecovery("email@example.com", "https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/create-session.md b/app/sdks/client-android/docs/examples/account/create-session.md
deleted file mode 100644
index 9940d99e41..0000000000
--- a/app/sdks/client-android/docs/examples/account/create-session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createSession("email@example.com", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/create-verification.md b/app/sdks/client-android/docs/examples/account/create-verification.md
deleted file mode 100644
index cf568233ea..0000000000
--- a/app/sdks/client-android/docs/examples/account/create-verification.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createVerification("https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/create.md b/app/sdks/client-android/docs/examples/account/create.md
deleted file mode 100644
index 0036d538b2..0000000000
--- a/app/sdks/client-android/docs/examples/account/create.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.create("email@example.com", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/delete-session.md b/app/sdks/client-android/docs/examples/account/delete-session.md
deleted file mode 100644
index 5bb6aec0ff..0000000000
--- a/app/sdks/client-android/docs/examples/account/delete-session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.deleteSession("[SESSION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/delete-sessions.md b/app/sdks/client-android/docs/examples/account/delete-sessions.md
deleted file mode 100644
index 4f700bd921..0000000000
--- a/app/sdks/client-android/docs/examples/account/delete-sessions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.deleteSessions()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/delete.md b/app/sdks/client-android/docs/examples/account/delete.md
deleted file mode 100644
index c8e7790112..0000000000
--- a/app/sdks/client-android/docs/examples/account/delete.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.delete()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/get-logs.md b/app/sdks/client-android/docs/examples/account/get-logs.md
deleted file mode 100644
index 65a7fdf44b..0000000000
--- a/app/sdks/client-android/docs/examples/account/get-logs.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.getLogs()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/get-prefs.md b/app/sdks/client-android/docs/examples/account/get-prefs.md
deleted file mode 100644
index 355f89812c..0000000000
--- a/app/sdks/client-android/docs/examples/account/get-prefs.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.getPrefs()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/get-sessions.md b/app/sdks/client-android/docs/examples/account/get-sessions.md
deleted file mode 100644
index 4da469aff2..0000000000
--- a/app/sdks/client-android/docs/examples/account/get-sessions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.getSessions()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/get.md b/app/sdks/client-android/docs/examples/account/get.md
deleted file mode 100644
index f5533f5ae8..0000000000
--- a/app/sdks/client-android/docs/examples/account/get.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.get()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/update-email.md b/app/sdks/client-android/docs/examples/account/update-email.md
deleted file mode 100644
index d9d10afc29..0000000000
--- a/app/sdks/client-android/docs/examples/account/update-email.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateEmail("email@example.com", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/update-name.md b/app/sdks/client-android/docs/examples/account/update-name.md
deleted file mode 100644
index 5854161254..0000000000
--- a/app/sdks/client-android/docs/examples/account/update-name.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateName("[NAME]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/update-password.md b/app/sdks/client-android/docs/examples/account/update-password.md
deleted file mode 100644
index 4f4fe7bd14..0000000000
--- a/app/sdks/client-android/docs/examples/account/update-password.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updatePassword("password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/update-prefs.md b/app/sdks/client-android/docs/examples/account/update-prefs.md
deleted file mode 100644
index dcbf4b6142..0000000000
--- a/app/sdks/client-android/docs/examples/account/update-prefs.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updatePrefs({})
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/update-recovery.md b/app/sdks/client-android/docs/examples/account/update-recovery.md
deleted file mode 100644
index 05d04f5e8f..0000000000
--- a/app/sdks/client-android/docs/examples/account/update-recovery.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateRecovery("[USER_ID]", "[SECRET]", "password", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/account/update-verification.md b/app/sdks/client-android/docs/examples/account/update-verification.md
deleted file mode 100644
index f924c3d7a5..0000000000
--- a/app/sdks/client-android/docs/examples/account/update-verification.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateVerification("[USER_ID]", "[SECRET]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-browser.md b/app/sdks/client-android/docs/examples/avatars/get-browser.md
deleted file mode 100644
index 642ae8c164..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-browser.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getBrowser("aa")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-credit-card.md b/app/sdks/client-android/docs/examples/avatars/get-credit-card.md
deleted file mode 100644
index 4fba61f1f2..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-credit-card.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getCreditCard("amex")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-favicon.md b/app/sdks/client-android/docs/examples/avatars/get-favicon.md
deleted file mode 100644
index bef7fd481f..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-favicon.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getFavicon("https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-flag.md b/app/sdks/client-android/docs/examples/avatars/get-flag.md
deleted file mode 100644
index 0c4ec2ddda..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-flag.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getFlag("af")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-image.md b/app/sdks/client-android/docs/examples/avatars/get-image.md
deleted file mode 100644
index 8cec3e79af..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-image.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getImage("https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-initials.md b/app/sdks/client-android/docs/examples/avatars/get-initials.md
deleted file mode 100644
index 4ddc263327..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-initials.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getInitials()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/avatars/get-q-r.md b/app/sdks/client-android/docs/examples/avatars/get-q-r.md
deleted file mode 100644
index 57eb765733..0000000000
--- a/app/sdks/client-android/docs/examples/avatars/get-q-r.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getQR("[TEXT]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/database/create-document.md b/app/sdks/client-android/docs/examples/database/create-document.md
deleted file mode 100644
index 95959f5676..0000000000
--- a/app/sdks/client-android/docs/examples/database/create-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.createDocument("[COLLECTION_ID]", {})
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/database/delete-document.md b/app/sdks/client-android/docs/examples/database/delete-document.md
deleted file mode 100644
index 6bcaab03d9..0000000000
--- a/app/sdks/client-android/docs/examples/database/delete-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.deleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/database/get-document.md b/app/sdks/client-android/docs/examples/database/get-document.md
deleted file mode 100644
index a71e71c57f..0000000000
--- a/app/sdks/client-android/docs/examples/database/get-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.getDocument("[COLLECTION_ID]", "[DOCUMENT_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/database/list-documents.md b/app/sdks/client-android/docs/examples/database/list-documents.md
deleted file mode 100644
index 0c720e2a5a..0000000000
--- a/app/sdks/client-android/docs/examples/database/list-documents.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.listDocuments("[COLLECTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/database/update-document.md b/app/sdks/client-android/docs/examples/database/update-document.md
deleted file mode 100644
index cb0f8c9f68..0000000000
--- a/app/sdks/client-android/docs/examples/database/update-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.updateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {})
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/functions/create-execution.md b/app/sdks/client-android/docs/examples/functions/create-execution.md
deleted file mode 100644
index 665c3ceb84..0000000000
--- a/app/sdks/client-android/docs/examples/functions/create-execution.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Functions
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val functionsService = Functions(client)
-val response = functionsService.createExecution("[FUNCTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/functions/get-execution.md b/app/sdks/client-android/docs/examples/functions/get-execution.md
deleted file mode 100644
index 79c365112b..0000000000
--- a/app/sdks/client-android/docs/examples/functions/get-execution.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Functions
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val functionsService = Functions(client)
-val response = functionsService.getExecution("[FUNCTION_ID]", "[EXECUTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/functions/list-executions.md b/app/sdks/client-android/docs/examples/functions/list-executions.md
deleted file mode 100644
index cfb4beddd9..0000000000
--- a/app/sdks/client-android/docs/examples/functions/list-executions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Functions
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val functionsService = Functions(client)
-val response = functionsService.listExecutions("[FUNCTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get-continents.md b/app/sdks/client-android/docs/examples/locale/get-continents.md
deleted file mode 100644
index 39db743450..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get-continents.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getContinents()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get-countries-e-u.md b/app/sdks/client-android/docs/examples/locale/get-countries-e-u.md
deleted file mode 100644
index 32222b45ca..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get-countries-e-u.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCountriesEU()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get-countries-phones.md b/app/sdks/client-android/docs/examples/locale/get-countries-phones.md
deleted file mode 100644
index 3dcdac19e9..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get-countries-phones.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCountriesPhones()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get-countries.md b/app/sdks/client-android/docs/examples/locale/get-countries.md
deleted file mode 100644
index 437afe1bb1..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get-countries.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCountries()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get-currencies.md b/app/sdks/client-android/docs/examples/locale/get-currencies.md
deleted file mode 100644
index 38879dab4b..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get-currencies.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCurrencies()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get-languages.md b/app/sdks/client-android/docs/examples/locale/get-languages.md
deleted file mode 100644
index 78c3bcaef6..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get-languages.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getLanguages()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/locale/get.md b/app/sdks/client-android/docs/examples/locale/get.md
deleted file mode 100644
index 6552b21de5..0000000000
--- a/app/sdks/client-android/docs/examples/locale/get.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.get()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/create-file.md b/app/sdks/client-android/docs/examples/storage/create-file.md
deleted file mode 100644
index 9e2d8c53b3..0000000000
--- a/app/sdks/client-android/docs/examples/storage/create-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.createFile(new File("./path-to-files/image.jpg"))
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/delete-file.md b/app/sdks/client-android/docs/examples/storage/delete-file.md
deleted file mode 100644
index 87479bd086..0000000000
--- a/app/sdks/client-android/docs/examples/storage/delete-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.deleteFile("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/get-file-download.md b/app/sdks/client-android/docs/examples/storage/get-file-download.md
deleted file mode 100644
index 25681e1b0f..0000000000
--- a/app/sdks/client-android/docs/examples/storage/get-file-download.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFileDownload("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/get-file-preview.md b/app/sdks/client-android/docs/examples/storage/get-file-preview.md
deleted file mode 100644
index a3c317c316..0000000000
--- a/app/sdks/client-android/docs/examples/storage/get-file-preview.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFilePreview("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/get-file-view.md b/app/sdks/client-android/docs/examples/storage/get-file-view.md
deleted file mode 100644
index d2d0f45348..0000000000
--- a/app/sdks/client-android/docs/examples/storage/get-file-view.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFileView("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/get-file.md b/app/sdks/client-android/docs/examples/storage/get-file.md
deleted file mode 100644
index 2d0f0d1394..0000000000
--- a/app/sdks/client-android/docs/examples/storage/get-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFile("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/list-files.md b/app/sdks/client-android/docs/examples/storage/list-files.md
deleted file mode 100644
index 09327879ff..0000000000
--- a/app/sdks/client-android/docs/examples/storage/list-files.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.listFiles()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/storage/update-file.md b/app/sdks/client-android/docs/examples/storage/update-file.md
deleted file mode 100644
index a9d61aabc3..0000000000
--- a/app/sdks/client-android/docs/examples/storage/update-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.updateFile("[FILE_ID]", List(), List())
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/create-membership.md b/app/sdks/client-android/docs/examples/teams/create-membership.md
deleted file mode 100644
index c1325b85b9..0000000000
--- a/app/sdks/client-android/docs/examples/teams/create-membership.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.createMembership("[TEAM_ID]", "email@example.com", List(), "https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/create.md b/app/sdks/client-android/docs/examples/teams/create.md
deleted file mode 100644
index bd72a0584a..0000000000
--- a/app/sdks/client-android/docs/examples/teams/create.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.create("[NAME]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/delete-membership.md b/app/sdks/client-android/docs/examples/teams/delete-membership.md
deleted file mode 100644
index 58e29e5986..0000000000
--- a/app/sdks/client-android/docs/examples/teams/delete-membership.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.deleteMembership("[TEAM_ID]", "[MEMBERSHIP_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/delete.md b/app/sdks/client-android/docs/examples/teams/delete.md
deleted file mode 100644
index 11db6a81b1..0000000000
--- a/app/sdks/client-android/docs/examples/teams/delete.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.delete("[TEAM_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/get-memberships.md b/app/sdks/client-android/docs/examples/teams/get-memberships.md
deleted file mode 100644
index 32db0b8809..0000000000
--- a/app/sdks/client-android/docs/examples/teams/get-memberships.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.getMemberships("[TEAM_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/get.md b/app/sdks/client-android/docs/examples/teams/get.md
deleted file mode 100644
index eb2451f66c..0000000000
--- a/app/sdks/client-android/docs/examples/teams/get.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.get("[TEAM_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/list.md b/app/sdks/client-android/docs/examples/teams/list.md
deleted file mode 100644
index 5da9925e48..0000000000
--- a/app/sdks/client-android/docs/examples/teams/list.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.list()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/update-membership-roles.md b/app/sdks/client-android/docs/examples/teams/update-membership-roles.md
deleted file mode 100644
index 17904fa125..0000000000
--- a/app/sdks/client-android/docs/examples/teams/update-membership-roles.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.updateMembershipRoles("[TEAM_ID]", "[MEMBERSHIP_ID]", List())
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/update-membership-status.md b/app/sdks/client-android/docs/examples/teams/update-membership-status.md
deleted file mode 100644
index dca6a1ba14..0000000000
--- a/app/sdks/client-android/docs/examples/teams/update-membership-status.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.updateMembershipStatus("[TEAM_ID]", "[MEMBERSHIP_ID]", "[USER_ID]", "[SECRET]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/docs/examples/teams/update.md b/app/sdks/client-android/docs/examples/teams/update.md
deleted file mode 100644
index ab4cfcc39a..0000000000
--- a/app/sdks/client-android/docs/examples/teams/update.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.update("[TEAM_ID]", "[NAME]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/app/sdks/client-android/example/.gitignore b/app/sdks/client-android/example/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/app/sdks/client-android/example/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/app/sdks/client-android/example/build.gradle b/app/sdks/client-android/example/build.gradle
deleted file mode 100644
index 6057427c47..0000000000
--- a/app/sdks/client-android/example/build.gradle
+++ /dev/null
@@ -1,59 +0,0 @@
-plugins {
- id 'com.android.application'
- id 'kotlin-android'
-}
-
-android {
- compileSdkVersion 30
- buildToolsVersion "30.0.3"
-
- defaultConfig {
- applicationId "io.appwrite.android"
- minSdkVersion 21
- targetSdkVersion 30
- versionCode 1
- versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildFeatures {
- dataBinding true
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
-}
-
-dependencies {
-
- implementation project(path: ':library')
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.5.0'
- implementation 'androidx.appcompat:appcompat:1.3.0'
- implementation 'com.google.android.material:material:1.3.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
- implementation "androidx.fragment:fragment-ktx:1.3.2"
- implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
- implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
- implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
- implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3"
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/AndroidManifest.xml b/app/sdks/client-android/example/src/main/AndroidManifest.xml
deleted file mode 100644
index 4b65549deb..0000000000
--- a/app/sdks/client-android/example/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/java/io/appwrite/android/MainActivity.kt b/app/sdks/client-android/example/src/main/java/io/appwrite/android/MainActivity.kt
deleted file mode 100644
index 2fe5ae9ce9..0000000000
--- a/app/sdks/client-android/example/src/main/java/io/appwrite/android/MainActivity.kt
+++ /dev/null
@@ -1,23 +0,0 @@
-package io.appwrite.android
-
-import androidx.appcompat.app.AppCompatActivity
-import android.os.Bundle
-import androidx.fragment.app.add
-import androidx.fragment.app.commit
-import io.appwrite.android.ui.accounts.AccountsFragment
-import io.appwrite.android.utils.Client
-
-class MainActivity : AppCompatActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.activity_main)
- Client.create(applicationContext)
-
- if (savedInstanceState == null) {
- supportFragmentManager.commit {
- setReorderingAllowed(true)
- add(R.id.fragment_container_view)
- }
- }
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/java/io/appwrite/android/ui/accounts/AccountsFragment.kt b/app/sdks/client-android/example/src/main/java/io/appwrite/android/ui/accounts/AccountsFragment.kt
deleted file mode 100644
index 746cb7e8f5..0000000000
--- a/app/sdks/client-android/example/src/main/java/io/appwrite/android/ui/accounts/AccountsFragment.kt
+++ /dev/null
@@ -1,69 +0,0 @@
-package io.appwrite.android.ui.accounts
-
-import android.os.Bundle
-import android.view.LayoutInflater
-import android.view.View
-import android.view.ViewGroup
-import android.widget.Toast
-import androidx.activity.ComponentActivity
-import androidx.databinding.DataBindingUtil
-import androidx.fragment.app.Fragment
-import androidx.lifecycle.Observer
-import androidx.lifecycle.ViewModelProvider
-import io.appwrite.android.R
-import io.appwrite.android.databinding.FragmentAccountBinding
-
-
-class AccountsFragment : Fragment() {
-
- private lateinit var binding: FragmentAccountBinding
- private lateinit var viewModel: AccountsViewModel
-
- override fun onCreateView(
- inflater: LayoutInflater ,
- container: ViewGroup? ,
- savedInstanceState: Bundle?
- ): View? {
- viewModel = ViewModelProvider(this).get(AccountsViewModel::class.java)
- binding = DataBindingUtil.inflate(
- inflater,
- R.layout.fragment_account,
- container,
- false
- )
- binding.lifecycleOwner = viewLifecycleOwner
- binding.login.setOnClickListener{
- viewModel.onLogin(binding.email.text, binding.password.text)
- }
-
- binding.signup.setOnClickListener{
- viewModel.onSignup(binding.email.text, binding.password.text, binding.name.text)
- }
-
- binding.getUser.setOnClickListener{
- viewModel.getUser()
- }
-
- binding.oAuth.setOnClickListener{
- viewModel.oAuthLogin(activity as ComponentActivity)
- }
-
- binding.logout.setOnClickListener{
- viewModel.logout()
- }
-
- viewModel.error.observe(viewLifecycleOwner, Observer { event ->
- event?.getContentIfNotHandled()?.let { // Only proceed if the event has never been handled
- Toast.makeText(requireContext(), it.message , Toast.LENGTH_SHORT).show()
- }
- })
-
- viewModel.response.observe(viewLifecycleOwner, Observer { event ->
- event?.getContentIfNotHandled()?.let {
- binding.responseTV.setText(it)
- }
- })
-
- return binding.root
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/java/io/appwrite/android/ui/accounts/AccountsViewModel.kt b/app/sdks/client-android/example/src/main/java/io/appwrite/android/ui/accounts/AccountsViewModel.kt
deleted file mode 100644
index 2d812e8c02..0000000000
--- a/app/sdks/client-android/example/src/main/java/io/appwrite/android/ui/accounts/AccountsViewModel.kt
+++ /dev/null
@@ -1,96 +0,0 @@
-package io.appwrite.android.ui.accounts
-
-import android.text.Editable
-import androidx.activity.ComponentActivity
-import androidx.lifecycle.*
-import io.appwrite.android.utils.Client.client
-import io.appwrite.android.utils.Event
-import io.appwrite.exceptions.AppwriteException
-import io.appwrite.services.Account
-import kotlinx.coroutines.launch
-import org.json.JSONObject
-
-
-class AccountsViewModel : ViewModel() {
-
- private val _error = MutableLiveData>().apply {
- value = null
- }
- val error: LiveData> = _error
-
- private val _response = MutableLiveData>().apply {
- value = null
- }
- val response: LiveData> = _response
-
- private val accountService by lazy {
- Account(client)
- }
-
- fun onLogin(email: Editable , password : Editable) {
- viewModelScope.launch {
- try {
- var response = accountService.createSession(email.toString(), password.toString())
- var json = response.body?.string() ?: ""
- json = JSONObject(json).toString(8)
- _response.postValue(Event(json))
- } catch (e: AppwriteException) {
- _error.postValue(Event(e))
- }
- }
-
- }
-
- fun onSignup(email: Editable , password : Editable, name: Editable) {
- viewModelScope.launch {
- try {
- var response = accountService.create(email.toString(), password.toString(), name.toString())
- var json = response.body?.string() ?: ""
- json = JSONObject(json).toString(2)
- _response.postValue(Event(json))
- } catch (e: AppwriteException) {
- _error.postValue(Event(e))
- }
- }
-
- }
-
- fun oAuthLogin(activity: ComponentActivity) {
- viewModelScope.launch {
- try {
- accountService.createOAuth2Session(activity, "facebook", "appwrite-callback-6070749e6acd4://demo.appwrite.io/auth/oauth2/success", "appwrite-callback-6070749e6acd4://demo.appwrite.io/auth/oauth2/failure")
- } catch (e: Exception) {
- _error.postValue(Event(e))
- } catch (e: AppwriteException) {
- _error.postValue(Event(e))
- }
- }
- }
-
- fun getUser() {
- viewModelScope.launch {
- try {
- var response = accountService.get()
- var json = response.body?.string() ?: ""
- json = JSONObject(json).toString(2)
- _response.postValue(Event(json))
- } catch (e: AppwriteException) {
- _error.postValue(Event(e))
- }
- }
- }
-
- fun logout() {
- viewModelScope.launch {
- try {
- var response = accountService.deleteSession("current")
- var json = response.body?.string()?.ifEmpty { "{}" }
- json = JSONObject(json).toString(4)
- _response.postValue(Event(json))
- } catch (e: AppwriteException) {
- _error.postValue(Event(e))
- }
- }
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/java/io/appwrite/android/utils/Client.kt b/app/sdks/client-android/example/src/main/java/io/appwrite/android/utils/Client.kt
deleted file mode 100644
index 66ce68191e..0000000000
--- a/app/sdks/client-android/example/src/main/java/io/appwrite/android/utils/Client.kt
+++ /dev/null
@@ -1,20 +0,0 @@
-package io.appwrite.android.utils
-
-import android.content.Context
-import io.appwrite.Client
-
-object Client {
- lateinit var client : Client
-
- fun create(context: Context) {
- client = Client(context)
- .setEndpoint("https://demo.appwrite.io/v1")
- .setProject("6070749e6acd4")
-
- /* Useful when testing locally */
-// client = Client(context)
-// .setEndpoint("https://192.168.1.35/v1")
-// .setProject("60bdbc911784e")
-// .setSelfSigned(true)
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/java/io/appwrite/android/utils/Event.kt b/app/sdks/client-android/example/src/main/java/io/appwrite/android/utils/Event.kt
deleted file mode 100644
index a5224794eb..0000000000
--- a/app/sdks/client-android/example/src/main/java/io/appwrite/android/utils/Event.kt
+++ /dev/null
@@ -1,27 +0,0 @@
-package io.appwrite.android.utils
-
-/**
- * Used as a wrapper for data that is exposed via a LiveData that represents an event.
- */
-open class Event(private val content: T) {
-
- var hasBeenHandled = false
- private set // Allow external read but not write
-
- /**
- * Returns the content and prevents its use again.
- */
- fun getContentIfNotHandled(): T? {
- return if (hasBeenHandled) {
- null
- } else {
- hasBeenHandled = true
- content
- }
- }
-
- /**
- * Returns the content, even if it's already been handled.
- */
- fun peekContent(): T = content
-}
diff --git a/app/sdks/client-android/example/src/main/res/drawable/ic_launcher_background.xml b/app/sdks/client-android/example/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index 07d5da9cbf..0000000000
--- a/app/sdks/client-android/example/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/sdks/client-android/example/src/main/res/drawable/ic_launcher_foreground.xml b/app/sdks/client-android/example/src/main/res/drawable/ic_launcher_foreground.xml
deleted file mode 100644
index 2b068d1146..0000000000
--- a/app/sdks/client-android/example/src/main/res/drawable/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/res/layout/activity_main.xml b/app/sdks/client-android/example/src/main/res/layout/activity_main.xml
deleted file mode 100644
index 7aa7dd7f48..0000000000
--- a/app/sdks/client-android/example/src/main/res/layout/activity_main.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/res/layout/fragment_account.xml b/app/sdks/client-android/example/src/main/res/layout/fragment_account.xml
deleted file mode 100644
index 2fb34c9578..0000000000
--- a/app/sdks/client-android/example/src/main/res/layout/fragment_account.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/sdks/client-android/example/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/sdks/client-android/example/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
deleted file mode 100644
index eca70cfe52..0000000000
--- a/app/sdks/client-android/example/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/sdks/client-android/example/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
deleted file mode 100644
index eca70cfe52..0000000000
--- a/app/sdks/client-android/example/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/res/values/colors.xml b/app/sdks/client-android/example/src/main/res/values/colors.xml
deleted file mode 100644
index f8c6127d32..0000000000
--- a/app/sdks/client-android/example/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- #FFBB86FC
- #FF6200EE
- #FF3700B3
- #FF03DAC5
- #FF018786
- #FF000000
- #FFFFFFFF
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/res/values/strings.xml b/app/sdks/client-android/example/src/main/res/values/strings.xml
deleted file mode 100644
index b03c29017b..0000000000
--- a/app/sdks/client-android/example/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Appwrite Android SDK
-
\ No newline at end of file
diff --git a/app/sdks/client-android/example/src/main/res/values/themes.xml b/app/sdks/client-android/example/src/main/res/values/themes.xml
deleted file mode 100644
index dde245d7a3..0000000000
--- a/app/sdks/client-android/example/src/main/res/values/themes.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/gradle.properties b/app/sdks/client-android/gradle.properties
deleted file mode 100644
index 252175276f..0000000000
--- a/app/sdks/client-android/gradle.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-# Project-wide Gradle settings.
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
-org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true
-# AndroidX package structure to make it clearer which packages are bundled with the
-# Android operating system, and which are packaged with your app"s APK
-# https://developer.android.com/topic/libraries/support-library/androidx-rn
-android.useAndroidX=true
-# Kotlin code style for this project: "official" or "obsolete":
-kotlin.code.style=official
\ No newline at end of file
diff --git a/app/sdks/client-android/gradle/wrapper/gradle-wrapper.jar b/app/sdks/client-android/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index f6b961fd5a..0000000000
Binary files a/app/sdks/client-android/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/app/sdks/client-android/gradle/wrapper/gradle-wrapper.properties b/app/sdks/client-android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 2dadb9d6e4..0000000000
--- a/app/sdks/client-android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Tue Jun 01 15:55:54 IST 2021
-distributionBase=GRADLE_USER_HOME
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
-distributionPath=wrapper/dists
-zipStorePath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
diff --git a/app/sdks/client-android/gradlew b/app/sdks/client-android/gradlew
deleted file mode 100644
index cccdd3d517..0000000000
--- a/app/sdks/client-android/gradlew
+++ /dev/null
@@ -1,172 +0,0 @@
-#!/usr/bin/env sh
-
-##############################################################################
-##
-## Gradle start up script for UN*X
-##
-##############################################################################
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn () {
- echo "$*"
-}
-
-die () {
- echo
- echo "$*"
- echo
- exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
- NONSTOP* )
- nonstop=true
- ;;
-esac
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
- JAVACMD=`cygpath --unix "$JAVACMD"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=$((i+1))
- done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-# Escape application args
-save () {
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
- echo " "
-}
-APP_ARGS=$(save "$@")
-
-# Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
-
-# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
-if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
- cd "$(dirname "$0")"
-fi
-
-exec "$JAVACMD" "$@"
diff --git a/app/sdks/client-android/gradlew.bat b/app/sdks/client-android/gradlew.bat
deleted file mode 100644
index f9553162f1..0000000000
--- a/app/sdks/client-android/gradlew.bat
+++ /dev/null
@@ -1,84 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/app/sdks/client-android/library/.gitignore b/app/sdks/client-android/library/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/app/sdks/client-android/library/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/app/sdks/client-android/library/build.gradle b/app/sdks/client-android/library/build.gradle
deleted file mode 100644
index 49928b66b1..0000000000
--- a/app/sdks/client-android/library/build.gradle
+++ /dev/null
@@ -1,77 +0,0 @@
-import org.jetbrains.kotlin.config.KotlinCompilerVersion
-
-plugins {
- id("com.android.library")
- id("kotlin-android")
-}
-
-ext {
- PUBLISH_GROUP_ID = 'io.appwrite'
- PUBLISH_ARTIFACT_ID = 'sdk-for-android'
- PUBLISH_VERSION = '0.0.0-SNAPSHOT'
- POM_URL = ''
- POM_SCM_URL = 'https://github.com/appwrite/sdk-for-android'
- POM_ISSUE_URL = 'https://github.com/appwrite/sdk-for-android/issues'
- POM_DESCRIPTION = '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)'
- POM_LICENSE_URL = 'https://opensource.org/licenses/GPL-3.0'
- POM_LICENSE_NAME = "GPL-3.0"
- POM_DEVELOPER_ID = ''
- POM_DEVELOPER_NAME = 'appwrite'
- POM_DEVELOPER_EMAIL = ''
- GITHUB_SCM_CONNECTION = 'scm:git:git://github.com/appwrite/sdk-for-android.git'
-}
-
-android {
- compileSdkVersion(30)
-
- defaultConfig {
- minSdkVersion(21)
- targetSdkVersion(30)
- versionCode = 1
- versionName = "1.0"
-
- testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles("consumer-rules.pro")
- }
-
- buildTypes {
- named("release") {
- minifyEnabled false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro"
- )
- }
- }
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = "1.8"
- }
-}
-
-dependencies {
- implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${KotlinCompilerVersion.VERSION}")
- api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3")
- api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3")
-
- api(platform("com.squareup.okhttp3:okhttp-bom:4.9.0"))
- api("com.squareup.okhttp3:okhttp")
- implementation("com.squareup.okhttp3:okhttp-urlconnection")
- implementation("com.squareup.okhttp3:logging-interceptor")
- implementation("com.google.code.gson:gson:2.8.5")
-
- implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.3.1")
- implementation("androidx.lifecycle:lifecycle-common-java8:2.3.1")
- implementation("androidx.appcompat:appcompat:1.2.0")
- implementation("androidx.fragment:fragment-ktx:1.3.2")
- implementation("androidx.activity:activity-ktx:1.2.2")
- implementation("androidx.browser:browser:1.3.0")
- implementation("com.github.franmontiel:PersistentCookieJar:v1.0.1")
-
- testImplementation 'junit:junit:4.+'
-}
-
-apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"
\ No newline at end of file
diff --git a/app/sdks/client-android/library/example/README.md b/app/sdks/client-android/library/example/README.md
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/app/sdks/client-android/library/src/main/AndroidManifest.xml b/app/sdks/client-android/library/src/main/AndroidManifest.xml
deleted file mode 100644
index b0ab63ae48..0000000000
--- a/app/sdks/client-android/library/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/Client.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/Client.kt
deleted file mode 100644
index 64065bac62..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/Client.kt
+++ /dev/null
@@ -1,259 +0,0 @@
-package io.appwrite
-
-import android.content.Context
-import android.content.pm.PackageManager
-import com.franmontiel.persistentcookiejar.ClearableCookieJar
-import com.franmontiel.persistentcookiejar.PersistentCookieJar
-import com.franmontiel.persistentcookiejar.cache.SetCookieCache
-import com.franmontiel.persistentcookiejar.persistence.SharedPrefsCookiePersistor
-import com.google.gson.Gson
-import io.appwrite.exceptions.AppwriteException
-import io.appwrite.extensions.JsonExtensions.fromJson
-import io.appwrite.models.Error
-import kotlinx.coroutines.CoroutineScope
-import kotlinx.coroutines.Dispatchers
-import kotlinx.coroutines.Job
-import kotlinx.coroutines.suspendCancellableCoroutine
-import okhttp3.*
-import okhttp3.Headers.Companion.toHeaders
-import okhttp3.HttpUrl.Companion.toHttpUrl
-import okhttp3.MediaType.Companion.toMediaType
-import okhttp3.RequestBody.Companion.asRequestBody
-import okhttp3.RequestBody.Companion.toRequestBody
-import okhttp3.logging.HttpLoggingInterceptor
-import java.io.BufferedReader
-import java.io.File
-import java.io.IOException
-import java.security.SecureRandom
-import java.security.cert.X509Certificate
-import javax.net.ssl.HostnameVerifier
-import javax.net.ssl.SSLContext
-import javax.net.ssl.SSLSocketFactory
-import javax.net.ssl.TrustManager
-import javax.net.ssl.X509TrustManager
-import kotlin.coroutines.CoroutineContext
-import kotlin.coroutines.resume
-import kotlin.coroutines.resumeWithException
-
-class Client(
- context: Context,
- var endPoint: String = "https://appwrite.io/v1",
- private var selfSigned: Boolean = false
-) : CoroutineScope {
-
- override val coroutineContext: CoroutineContext
- get() = Dispatchers.Main + job
-
- private val job = Job()
-
- private lateinit var http: OkHttpClient
-
- private val headers: MutableMap
-
- val config: MutableMap
-
- val cookieJar: ClearableCookieJar = PersistentCookieJar(
- SetCookieCache(),
- SharedPrefsCookiePersistor(context)
- )
-
- val appVersion by lazy {
- try {
- val pInfo = context.packageManager.getPackageInfo(context.packageName, 0)
- return@lazy pInfo.versionName
- } catch (e: PackageManager.NameNotFoundException) {
- e.printStackTrace()
- return@lazy ""
- }
- }
-
- init {
- headers = mutableMapOf(
- "content-type" to "application/json",
- "origin" to "appwrite-android://${context.packageName}",
- "user-agent" to "${context.packageName}/${appVersion}, ${System.getProperty("http.agent")}",
- "x-sdk-version" to "appwrite:kotlin:0.0.0-SNAPSHOT",
- "x-appwrite-response-format" to "0.8.0"
- )
- config = mutableMapOf()
-
- setSelfSigned(selfSigned)
- }
-
- /// Your project ID
- fun setProject(value: String): Client {
- config["project"] = value
- addHeader("x-appwrite-project", value)
- return this
- }
-
- /// Your secret JSON Web Token
- fun setJWT(value: String): Client {
- config["jWT"] = value
- addHeader("x-appwrite-jwt", value)
- return this
- }
-
- fun setLocale(value: String): Client {
- config["locale"] = value
- addHeader("x-appwrite-locale", value)
- return this
- }
-
- fun setSelfSigned(status: Boolean): Client {
- selfSigned = status
-
- val builder = OkHttpClient()
- .newBuilder()
- .cookieJar(cookieJar)
- .addInterceptor(HttpLoggingInterceptor().apply { setLevel(HttpLoggingInterceptor.Level.BODY) })
-
- if (!selfSigned) {
- http = builder.build()
- return this
- }
-
- try {
- // Create a trust manager that does not validate certificate chains
- val trustAllCerts = arrayOf(
- object : X509TrustManager {
- override fun checkClientTrusted(chain: Array, authType: String) {
- }
- override fun checkServerTrusted(chain: Array, authType: String) {
- }
- override fun getAcceptedIssuers(): Array {
- return arrayOf()
- }
- }
- )
- // Install the all-trusting trust manager
- val sslContext = SSLContext.getInstance("SSL")
- sslContext.init(null, trustAllCerts, SecureRandom())
-
- // Create an ssl socket factory with our all-trusting manager
- val sslSocketFactory: SSLSocketFactory = sslContext.socketFactory
- builder.sslSocketFactory(sslSocketFactory, trustAllCerts[0] as X509TrustManager)
- builder.hostnameVerifier(HostnameVerifier { _, _ -> true })
-
- http = builder.build()
- } catch (e: Exception) {
- throw RuntimeException(e)
- }
-
- return this
- }
-
- fun setEndpoint(endPoint: String): Client {
- this.endPoint = endPoint
- return this
- }
-
- fun addHeader(key: String, value: String): Client {
- headers[key] = value
- return this
- }
-
- @Throws(AppwriteException::class)
- suspend fun call(
- method: String,
- path: String,
- headers: Map = mapOf(),
- params: Map = mapOf()
- ): Response {
- val requestHeaders = this.headers.toHeaders().newBuilder()
- .addAll(headers.toHeaders())
- .build()
-
- val httpBuilder = (endPoint + path).toHttpUrl().newBuilder()
-
- if ("GET" == method) {
- params.forEach {
- when (it.value) {
- null -> {
- return@forEach
- }
- is List<*> -> {
- httpBuilder.addQueryParameter(it.key + "[]", it.value.toString())
- }
- else -> {
- httpBuilder.addQueryParameter(it.key, it.value.toString())
- }
- }
- }
- val request = Request.Builder()
- .url(httpBuilder.build())
- .headers(requestHeaders)
- .get()
- .build()
-
- return awaitResponse(request)
- }
-
- val body = if (MultipartBody.FORM.toString() == headers["content-type"]) {
- val builder = MultipartBody.Builder().setType(MultipartBody.FORM)
-
- params.forEach {
- when {
- it.key == "file" -> {
- val file = it.value as File
- builder.addFormDataPart(it.key, file.name, file.asRequestBody())
- }
- it.value is List<*> -> {
- val list = it.value as List<*>
- for (index in list.indices) {
- builder.addFormDataPart(
- "${it.key}[]",
- list[index].toString()
- )
- }
- }
- else -> {
- builder.addFormDataPart(it.key, it.value.toString())
- }
- }
- }
- builder.build()
- } else {
- Gson().toJson(params)
- .toRequestBody("application/json".toMediaType())
- }
-
- val request = Request.Builder()
- .url(httpBuilder.build())
- .headers(requestHeaders)
- .method(method, body)
- .build()
-
- return awaitResponse(request)
- }
-
- @Throws(AppwriteException::class)
- private suspend fun awaitResponse(request: Request) = suspendCancellableCoroutine {
- http.newCall(request).enqueue(object : Callback {
- override fun onFailure(call: Call, e: IOException) {
- if (it.isCancelled) {
- return
- }
- it.cancel(e)
- }
-
- override fun onResponse(call: Call, response: Response) {
- if (response.code >= 400) {
- val bodyString = response.body
- ?.charStream()
- ?.buffered()
- ?.use(BufferedReader::readText)
-
- val error = bodyString?.fromJson(Error::class.java)
-
- it.cancel(AppwriteException(
- error?.message,
- error?.code,
- bodyString
- ))
- }
- it.resume(response)
- }
- })
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/KeepAliveService.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/KeepAliveService.kt
deleted file mode 100644
index a4c68ea2e3..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/KeepAliveService.kt
+++ /dev/null
@@ -1,14 +0,0 @@
-package io.appwrite.services
-
-import android.app.Service
-import android.content.Intent
-import android.os.Binder
-import android.os.IBinder
-
-class KeepAliveService: Service() {
- companion object {
- val binder = Binder()
- }
-
- override fun onBind(intent: Intent) = binder
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/WebAuthComponent.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/WebAuthComponent.kt
deleted file mode 100644
index 9db97f9719..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/WebAuthComponent.kt
+++ /dev/null
@@ -1,100 +0,0 @@
-package io.appwrite
-
-import android.content.Intent
-import android.net.Uri
-import androidx.activity.ComponentActivity
-import androidx.browser.customtabs.CustomTabsIntent
-import androidx.lifecycle.DefaultLifecycleObserver
-import androidx.lifecycle.LifecycleOwner
-import io.appwrite.services.KeepAliveService
-import kotlinx.coroutines.delay
-import kotlin.collections.component1
-import kotlin.collections.component2
-import kotlin.collections.forEach
-import kotlin.collections.mutableMapOf
-import kotlin.collections.set
-
-/**
- * Used to authenticate with external OAuth2 providers. Launches browser windows and handles
- * suspension until the user completes the process or otherwise returns to the app.
- */
-internal class WebAuthComponent {
-
- companion object : DefaultLifecycleObserver {
- private var suspended = false
- private val callbacks = mutableMapOf) -> Unit)?)>()
-
- override fun onResume(owner: LifecycleOwner) {
- suspended = false
- }
-
- /**
- * Authenticate Session with OAuth2
- *
- * Launches a chrome custom tab from the given activity and directs to the given url,
- * suspending until the user returns to the app, at which point the given [onComplete] callback
- * will run, passing the callback url from the intent used to launch the [CallbackActivity],
- * or an [IllegalStateException] in the case the user closed the window or returned to the
- * app without passing through the [CallbackActivity].
- *
- *
- * @param activity The activity to launch the browser from and observe the lifecycle of
- * @param url The url to launch
- * @param callbackUrlScheme The callback url scheme used to key the given callback
- * @param onComplete The callback to run when a result (success or failure) is received
- */
- suspend fun authenticate(
- activity: ComponentActivity,
- url: Uri,
- callbackUrlScheme: String,
- onComplete: ((Result) -> Unit)?
- ) {
- val intent = CustomTabsIntent.Builder().build()
- val keepAliveIntent = Intent(activity, KeepAliveService::class.java)
-
- callbacks[callbackUrlScheme] = onComplete
-
- intent.intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_NEW_TASK)
- intent.intent.putExtra("android.support.customtabs.extra.KEEP_ALIVE", keepAliveIntent)
- intent.launchUrl(activity, url)
-
- activity.runOnUiThread {
- activity.lifecycle.addObserver(this)
- }
-
- // Need to dirty poll block so execution doesn't continue at the callsite of this function
- suspended = true
- while (suspended) {
- delay(200)
- }
- cleanUp()
- }
-
- /**
- * Trigger a web auth callback
- *
- * Attempts to find a callback for the given [scheme] and if found, invokes it, passing the
- * given [url]. Calling this method stops auth suspension, so any calls to [authenticate]
- * will continue execution from their suspension points immediately after this method
- * is called.
- *
- * @param scheme The scheme to match to a callback's key
- * @param url The url received through intent data from the [CallbackActivity]
- */
- fun onCallback(scheme: String, url: Uri) {
- callbacks.remove(scheme)?.invoke(
- Result.success(url.toString())
- )
- suspended = false
- }
-
- private fun cleanUp() {
- callbacks.forEach { (_, danglingResultCallback) ->
- danglingResultCallback?.invoke(
- Result.failure(IllegalStateException("User cancelled login"))
- )
- }
- callbacks.clear()
- }
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/exceptions/AppwriteException.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/exceptions/AppwriteException.kt
deleted file mode 100644
index d7d4fbc3e3..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/exceptions/AppwriteException.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package io.appwrite.exceptions
-
-import java.lang.Exception
-
-class AppwriteException(
- message: String? = null,
- val code: Int? = null,
- val response: String? = null
-) : Exception(message)
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/extensions/JsonExtensions.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/extensions/JsonExtensions.kt
deleted file mode 100644
index 4cf0f4f481..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/extensions/JsonExtensions.kt
+++ /dev/null
@@ -1,12 +0,0 @@
-package io.appwrite.extensions
-
-import com.google.gson.Gson
-
-object JsonExtensions {
-
- fun Any.toJson(): String =
- Gson().toJson(this)
-
- fun String.fromJson(clazz: Class): T =
- Gson().fromJson(this, clazz)
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/models/Error.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/models/Error.kt
deleted file mode 100644
index f058eb574c..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/models/Error.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package io.appwrite.models
-
-data class Error(
- val message: String,
- val code: Int
-)
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Account.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Account.kt
deleted file mode 100644
index ab3c8dd0d2..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Account.kt
+++ /dev/null
@@ -1,626 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.WebAuthComponent
-import androidx.activity.ComponentActivity
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import okhttp3.HttpUrl
-import okhttp3.HttpUrl.Companion.toHttpUrl
-import java.io.File
-
-class Account(private val client: Client) : BaseService(client) {
-
- /**
- * Get Account
- *
- * Get currently logged in user data as JSON object.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun get(): Response {
- val path = "/account"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create Account
- *
- * Use this endpoint to allow a new user to register a new account in your
- * project. After the user registration completes successfully, you can use
- * the [/account/verfication](/docs/client/account#accountCreateVerification)
- * route to start verifying the user email address. To allow the new user to
- * login to their new account, you need to create a new [account
- * session](/docs/client/account#accountCreateSession).
- *
- * @param email
- * @param password
- * @param name
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun create(
- email: String,
- password: String,
- name: String? = null
- ): Response {
- val path = "/account"
- val params = mapOf(
- "email" to email,
- "password" to password,
- "name" to name
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Delete Account
- *
- * Delete a currently logged in user account. Behind the scene, the user
- * record is not deleted but permanently blocked from any access. This is done
- * to avoid deleted accounts being overtaken by new users with the same email
- * address. Any user-related resources like documents or storage files should
- * be deleted separately.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun delete(): Response {
- val path = "/account"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
- /**
- * Update Account Email
- *
- * Update currently logged in user account email address. After changing user
- * address, user confirmation status is being reset and a new confirmation
- * mail is sent. For security measures, user password is required to complete
- * this request.
- * This endpoint can also be used to convert an anonymous account to a normal
- * one, by passing an email address and a new password.
- *
- * @param email
- * @param password
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateEmail(
- email: String,
- password: String
- ): Response {
- val path = "/account/email"
- val params = mapOf(
- "email" to email,
- "password" to password
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
- /**
- * Create Account JWT
- *
- * Use this endpoint to create a JSON Web Token. You can use the resulting JWT
- * to authenticate on behalf of the current user when working with the
- * Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes
- * from its creation and will be invalid if the user will logout.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createJWT(): Response {
- val path = "/account/jwt"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Get Account Logs
- *
- * Get currently logged in user list of latest security activity logs. Each
- * log returns user IP address, location and date and time of log.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getLogs(): Response {
- val path = "/account/logs"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Update Account Name
- *
- * Update currently logged in user account name.
- *
- * @param name
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateName(
- name: String
- ): Response {
- val path = "/account/name"
- val params = mapOf(
- "name" to name
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
- /**
- * Update Account Password
- *
- * Update currently logged in user password. For validation, user is required
- * to pass in the new password, and the old password. For users created with
- * OAuth and Team Invites, oldPassword is optional.
- *
- * @param password
- * @param oldPassword
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updatePassword(
- password: String,
- oldPassword: String? = null
- ): Response {
- val path = "/account/password"
- val params = mapOf(
- "password" to password,
- "oldPassword" to oldPassword
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
- /**
- * Get Account Preferences
- *
- * Get currently logged in user preferences as a key-value object.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getPrefs(): Response {
- val path = "/account/prefs"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Update Account Preferences
- *
- * Update currently logged in user account preferences. You can pass only the
- * specific settings you wish to update.
- *
- * @param prefs
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updatePrefs(
- prefs: Any
- ): Response {
- val path = "/account/prefs"
- val params = mapOf(
- "prefs" to prefs
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
- /**
- * Create Password Recovery
- *
- * Sends the user an email with a temporary secret key for password reset.
- * When the user clicks the confirmation link he is redirected back to your
- * app password reset URL with the secret key and email address values
- * attached to the URL query string. Use the query string params to submit a
- * request to the [PUT
- * /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
- * complete the process. The verification link sent to the user's email
- * address is valid for 1 hour.
- *
- * @param email
- * @param url
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createRecovery(
- email: String,
- url: String
- ): Response {
- val path = "/account/recovery"
- val params = mapOf(
- "email" to email,
- "url" to url
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Complete Password Recovery
- *
- * Use this endpoint to complete the user account password reset. Both the
- * **userId** and **secret** arguments will be passed as query parameters to
- * the redirect URL you have provided when sending your request to the [POST
- * /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
- *
- * Please note that in order to avoid a [Redirect
- * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
- * the only valid redirect URLs are the ones from domains you have set when
- * adding your platforms in the console interface.
- *
- * @param userId
- * @param secret
- * @param password
- * @param passwordAgain
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateRecovery(
- userId: String,
- secret: String,
- password: String,
- passwordAgain: String
- ): Response {
- val path = "/account/recovery"
- val params = mapOf(
- "userId" to userId,
- "secret" to secret,
- "password" to password,
- "passwordAgain" to passwordAgain
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PUT", path, headers, params)
- }
-
- /**
- * Get Account Sessions
- *
- * Get currently logged in user list of active sessions across different
- * devices.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getSessions(): Response {
- val path = "/account/sessions"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create Account Session
- *
- * Allow the user to login into their account by providing a valid email and
- * password combination. This route will create a new session for the user.
- *
- * @param email
- * @param password
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createSession(
- email: String,
- password: String
- ): Response {
- val path = "/account/sessions"
- val params = mapOf(
- "email" to email,
- "password" to password
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Delete All Account Sessions
- *
- * Delete all sessions from the user account and remove any sessions cookies
- * from the end client.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun deleteSessions(): Response {
- val path = "/account/sessions"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
- /**
- * Create Anonymous Session
- *
- * Use this endpoint to allow a new user to register an anonymous account in
- * your project. This route will also create a new session for the user. To
- * allow the new user to convert an anonymous account to a normal account
- * account, you need to update its [email and
- * password](/docs/client/account#accountUpdateEmail).
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createAnonymousSession(): Response {
- val path = "/account/sessions/anonymous"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Create Account Session with OAuth2
- *
- * Allow the user to login to their account using the OAuth2 provider of their
- * choice. Each OAuth2 provider should be enabled from the Appwrite console
- * first. Use the success and failure arguments to provide a redirect URL's
- * back to your app when login is completed.
- *
- * @param provider
- * @param success
- * @param failure
- * @param scopes
- *
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createOAuth2Session(
- activity: ComponentActivity,
- provider: String,
- success: String? = null,
- failure: String? = null,
- scopes: List? = null
- ) {
- val path = "/account/sessions/oauth2/{provider}".replace("{provider}", provider)
- val params = mapOf(
- "success" to success,
- "failure" to failure,
- "scopes" to scopes,
- "project" to client.config["project"]
- )
-
- val query = mutableListOf()
- params.forEach {
- when (it.value) {
- null -> {
- return@forEach
- }
- is List<*> -> {
- query.add("${it.key}[]=${it.value.toString()}")
- }
- else -> {
- query.add("${it.key}=${it.value.toString()}")
- }
- }
- }
-
- val url = Uri.parse("${client.endPoint}${path}?${query.joinToString("&")}")
- val callbackUrlScheme = "appwrite-callback-${client.config["project"]}"
-
- WebAuthComponent.authenticate(activity, url, callbackUrlScheme) {
- if (it.isFailure) {
- throw it.exceptionOrNull()!!
- }
-
- val resultUrl = it.getOrNull()!!
- val uri = Uri.parse(resultUrl)
- val key = uri.getQueryParameter("key")
- val secret = uri.getQueryParameter("secret")
- if (key == null || secret == null) {
- throw AppwriteException("Authentication cookie missing!")
- }
- val cookie = Cookie.Builder()
- .name(key)
- .value(secret)
- .domain(Uri.parse(client.endPoint).host!!)
- .httpOnly()
- .build()
-
- client.cookieJar.saveFromResponse(
- client.endPoint.toHttpUrl(),
- listOf(cookie)
- )
- }
-
- }
-
- /**
- * Delete Account Session
- *
- * Use this endpoint to log out the currently logged in user from all their
- * account sessions across all of their different devices. When using the
- * option id argument, only the session unique ID provider will be deleted.
- *
- * @param sessionId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun deleteSession(
- sessionId: String
- ): Response {
- val path = "/account/sessions/{sessionId}".replace("{sessionId}", sessionId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
- /**
- * Create Email Verification
- *
- * Use this endpoint to send a verification message to your user email address
- * to confirm they are the valid owners of that address. Both the **userId**
- * and **secret** arguments will be passed as query parameters to the URL you
- * have provided to be attached to the verification email. The provided URL
- * should redirect the user back to your app and allow you to complete the
- * verification process by verifying both the **userId** and **secret**
- * parameters. Learn more about how to [complete the verification
- * process](/docs/client/account#accountUpdateVerification). The verification
- * link sent to the user's email address is valid for 7 days.
- *
- * Please note that in order to avoid a [Redirect
- * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
- * the only valid redirect URLs are the ones from domains you have set when
- * adding your platforms in the console interface.
- *
- *
- * @param url
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createVerification(
- url: String
- ): Response {
- val path = "/account/verification"
- val params = mapOf(
- "url" to url
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Complete Email Verification
- *
- * Use this endpoint to complete the user email verification process. Use both
- * the **userId** and **secret** parameters that were attached to your app URL
- * to verify the user email ownership. If confirmed this route will return a
- * 200 status code.
- *
- * @param userId
- * @param secret
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateVerification(
- userId: String,
- secret: String
- ): Response {
- val path = "/account/verification"
- val params = mapOf(
- "userId" to userId,
- "secret" to secret
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PUT", path, headers, params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Avatars.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Avatars.kt
deleted file mode 100644
index b828eb0fbd..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Avatars.kt
+++ /dev/null
@@ -1,241 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import okhttp3.HttpUrl
-import okhttp3.HttpUrl.Companion.toHttpUrl
-import java.io.File
-
-class Avatars(private val client: Client) : BaseService(client) {
-
- /**
- * Get Browser Icon
- *
- * You can use this endpoint to show different browser icons to your users.
- * The code argument receives the browser code as it appears in your user
- * /account/sessions endpoint. Use width, height and quality arguments to
- * change the output settings.
- *
- * @param code
- * @param width
- * @param height
- * @param quality
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getBrowser(
- code: String,
- width: Int? = null,
- height: Int? = null,
- quality: Int? = null
- ): Response {
- val path = "/avatars/browsers/{code}".replace("{code}", code)
- val params = mapOf(
- "width" to width,
- "height" to height,
- "quality" to quality,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get Credit Card Icon
- *
- * 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.
- *
- * @param code
- * @param width
- * @param height
- * @param quality
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getCreditCard(
- code: String,
- width: Int? = null,
- height: Int? = null,
- quality: Int? = null
- ): Response {
- val path = "/avatars/credit-cards/{code}".replace("{code}", code)
- val params = mapOf(
- "width" to width,
- "height" to height,
- "quality" to quality,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get Favicon
- *
- * Use this endpoint to fetch the favorite icon (AKA favicon) of any remote
- * website URL.
- *
- *
- * @param url
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getFavicon(
- url: String
- ): Response {
- val path = "/avatars/favicon"
- val params = mapOf(
- "url" to url,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get Country Flag
- *
- * You can use this endpoint to show different country flags icons to your
- * users. The code argument receives the 2 letter country code. Use width,
- * height and quality arguments to change the output settings.
- *
- * @param code
- * @param width
- * @param height
- * @param quality
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getFlag(
- code: String,
- width: Int? = null,
- height: Int? = null,
- quality: Int? = null
- ): Response {
- val path = "/avatars/flags/{code}".replace("{code}", code)
- val params = mapOf(
- "width" to width,
- "height" to height,
- "quality" to quality,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get Image from URL
- *
- * Use this endpoint to fetch a remote image URL and crop it to any image size
- * you want. This endpoint is very useful if you need to crop and display
- * remote images in your app or in case you want to make sure a 3rd party
- * image is properly served using a TLS protocol.
- *
- * @param url
- * @param width
- * @param height
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getImage(
- url: String,
- width: Int? = null,
- height: Int? = null
- ): Response {
- val path = "/avatars/image"
- val params = mapOf(
- "url" to url,
- "width" to width,
- "height" to height,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get User Initials
- *
- * Use this endpoint to show your user initials avatar icon on your website or
- * app. By default, this route will try to print your logged-in user name or
- * email initials. You can also overwrite the user name if you pass the 'name'
- * parameter. If no name is given and no user is logged, an empty avatar will
- * be returned.
- *
- * You can use the color and background params to change the avatar colors. By
- * default, a random theme will be selected. The random theme will persist for
- * the user's initials when reloading the same theme will always return for
- * the same initials.
- *
- * @param name
- * @param width
- * @param height
- * @param color
- * @param background
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getInitials(
- name: String? = null,
- width: Int? = null,
- height: Int? = null,
- color: String? = null,
- background: String? = null
- ): Response {
- val path = "/avatars/initials"
- val params = mapOf(
- "name" to name,
- "width" to width,
- "height" to height,
- "color" to color,
- "background" to background,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get QR Code
- *
- * Converts a given plain text to a QR code image. You can use the query
- * parameters to change the size and style of the resulting image.
- *
- * @param text
- * @param size
- * @param margin
- * @param download
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getQR(
- text: String,
- size: Int? = null,
- margin: Int? = null,
- download: Boolean? = null
- ): Response {
- val path = "/avatars/qr"
- val params = mapOf(
- "text" to text,
- "size" to size,
- "margin" to margin,
- "download" to download,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/BaseService.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/BaseService.kt
deleted file mode 100644
index 1d6df9741a..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/BaseService.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-package io.appwrite.services
-
-import io.appwrite.Client
-
-abstract class BaseService(private val client: Client)
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Database.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Database.kt
deleted file mode 100644
index 81bf0c6363..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Database.kt
+++ /dev/null
@@ -1,196 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import java.io.File
-
-class Database(private val client: Client) : BaseService(client) {
-
- /**
- * List Documents
- *
- * Get a list of all the user documents. You can use the query params to
- * filter your results. On admin mode, this endpoint will return a list of all
- * of the project's documents. [Learn more about different API
- * modes](/docs/admin).
- *
- * @param collectionId
- * @param filters
- * @param limit
- * @param offset
- * @param orderField
- * @param orderType
- * @param orderCast
- * @param search
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun listDocuments(
- collectionId: String,
- filters: List? = null,
- limit: Int? = null,
- offset: Int? = null,
- orderField: String? = null,
- orderType: String? = null,
- orderCast: String? = null,
- search: String? = null
- ): Response {
- val path = "/database/collections/{collectionId}/documents".replace("{collectionId}", collectionId)
- val params = mapOf(
- "filters" to filters,
- "limit" to limit,
- "offset" to offset,
- "orderField" to orderField,
- "orderType" to orderType,
- "orderCast" to orderCast,
- "search" to search
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create Document
- *
- * Create a new Document. Before using this route, you should create a new
- * collection resource using either a [server
- * integration](/docs/server/database#databaseCreateCollection) API or
- * directly from your database console.
- *
- * @param collectionId
- * @param data
- * @param read
- * @param write
- * @param parentDocument
- * @param parentProperty
- * @param parentPropertyType
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createDocument(
- collectionId: String,
- data: Any,
- read: List? = null,
- write: List? = null,
- parentDocument: String? = null,
- parentProperty: String? = null,
- parentPropertyType: String? = null
- ): Response {
- val path = "/database/collections/{collectionId}/documents".replace("{collectionId}", collectionId)
- val params = mapOf(
- "data" to data,
- "read" to read,
- "write" to write,
- "parentDocument" to parentDocument,
- "parentProperty" to parentProperty,
- "parentPropertyType" to parentPropertyType
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Get Document
- *
- * Get a document by its unique ID. This endpoint response returns a JSON
- * object with the document data.
- *
- * @param collectionId
- * @param documentId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getDocument(
- collectionId: String,
- documentId: String
- ): Response {
- val path = "/database/collections/{collectionId}/documents/{documentId}".replace("{collectionId}", collectionId).replace("{documentId}", documentId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Update Document
- *
- * Update a document by its unique ID. Using the patch method you can pass
- * only specific fields that will get updated.
- *
- * @param collectionId
- * @param documentId
- * @param data
- * @param read
- * @param write
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateDocument(
- collectionId: String,
- documentId: String,
- data: Any,
- read: List? = null,
- write: List? = null
- ): Response {
- val path = "/database/collections/{collectionId}/documents/{documentId}".replace("{collectionId}", collectionId).replace("{documentId}", documentId)
- val params = mapOf(
- "data" to data,
- "read" to read,
- "write" to write
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
- /**
- * Delete Document
- *
- * Delete a document by its unique ID. This endpoint deletes only the parent
- * documents, its attributes and relations to other documents. Child documents
- * **will not** be deleted.
- *
- * @param collectionId
- * @param documentId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun deleteDocument(
- collectionId: String,
- documentId: String
- ): Response {
- val path = "/database/collections/{collectionId}/documents/{documentId}".replace("{collectionId}", collectionId).replace("{documentId}", documentId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Functions.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Functions.kt
deleted file mode 100644
index 95c203c4bf..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Functions.kt
+++ /dev/null
@@ -1,107 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import java.io.File
-
-class Functions(private val client: Client) : BaseService(client) {
-
- /**
- * List Executions
- *
- * Get a list of all the current user function execution logs. You can use the
- * query params to filter your results. On admin mode, this endpoint will
- * return a list of all of the project's executions. [Learn more about
- * different API modes](/docs/admin).
- *
- * @param functionId
- * @param search
- * @param limit
- * @param offset
- * @param orderType
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun listExecutions(
- functionId: String,
- search: String? = null,
- limit: Int? = null,
- offset: Int? = null,
- orderType: String? = null
- ): Response {
- val path = "/functions/{functionId}/executions".replace("{functionId}", functionId)
- val params = mapOf(
- "search" to search,
- "limit" to limit,
- "offset" to offset,
- "orderType" to orderType
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create Execution
- *
- * Trigger a function execution. The returned object will return you the
- * current execution status. You can ping the `Get Execution` endpoint to get
- * updates on the current execution status. Once this endpoint is called, your
- * function execution process will start asynchronously.
- *
- * @param functionId
- * @param data
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createExecution(
- functionId: String,
- data: String? = null
- ): Response {
- val path = "/functions/{functionId}/executions".replace("{functionId}", functionId)
- val params = mapOf(
- "data" to data
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Get Execution
- *
- * Get a function execution log by its unique ID.
- *
- * @param functionId
- * @param executionId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getExecution(
- functionId: String,
- executionId: String
- ): Response {
- val path = "/functions/{functionId}/executions/{executionId}".replace("{functionId}", functionId).replace("{executionId}", executionId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Locale.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Locale.kt
deleted file mode 100644
index 36a3fce0f0..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Locale.kt
+++ /dev/null
@@ -1,171 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import java.io.File
-
-class Locale(private val client: Client) : BaseService(client) {
-
- /**
- * Get User Locale
- *
- * Get the current user location based on IP. Returns an object with user
- * country code, country name, continent name, continent code, ip address and
- * suggested currency. You can use the locale header to get the data in a
- * supported language.
- *
- * ([IP Geolocation by DB-IP](https://db-ip.com))
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun get(): Response {
- val path = "/locale"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * List Continents
- *
- * List of all continents. You can use the locale header to get the data in a
- * supported language.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getContinents(): Response {
- val path = "/locale/continents"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * List Countries
- *
- * List of all countries. You can use the locale header to get the data in a
- * supported language.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getCountries(): Response {
- val path = "/locale/countries"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * List EU Countries
- *
- * List of all countries that are currently members of the EU. You can use the
- * locale header to get the data in a supported language.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getCountriesEU(): Response {
- val path = "/locale/countries/eu"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * List Countries Phone Codes
- *
- * List of all countries phone codes. You can use the locale header to get the
- * data in a supported language.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getCountriesPhones(): Response {
- val path = "/locale/countries/phones"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * List Currencies
- *
- * List of all currencies, including currency symbol, name, plural, and
- * decimal digits for all major and minor currencies. You can use the locale
- * header to get the data in a supported language.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getCurrencies(): Response {
- val path = "/locale/currencies"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * List Languages
- *
- * List of all languages classified by ISO 639-1 including 2-letter code, name
- * in English, and name in the respective language.
- *
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getLanguages(): Response {
- val path = "/locale/languages"
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Storage.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Storage.kt
deleted file mode 100644
index 7437f90754..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Storage.kt
+++ /dev/null
@@ -1,264 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import okhttp3.HttpUrl
-import okhttp3.HttpUrl.Companion.toHttpUrl
-import java.io.File
-
-class Storage(private val client: Client) : BaseService(client) {
-
- /**
- * List Files
- *
- * Get a list of all the user files. You can use the query params to filter
- * your results. On admin mode, this endpoint will return a list of all of the
- * project's files. [Learn more about different API modes](/docs/admin).
- *
- * @param search
- * @param limit
- * @param offset
- * @param orderType
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun listFiles(
- search: String? = null,
- limit: Int? = null,
- offset: Int? = null,
- orderType: String? = null
- ): Response {
- val path = "/storage/files"
- val params = mapOf(
- "search" to search,
- "limit" to limit,
- "offset" to offset,
- "orderType" to orderType
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create File
- *
- * Create a new file. The user who creates the file will automatically be
- * assigned to read and write access unless he has passed custom values for
- * read and write arguments.
- *
- * @param file
- * @param read
- * @param write
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createFile(
- file: File,
- read: List? = null,
- write: List? = null
- ): Response {
- val path = "/storage/files"
- val params = mapOf(
- "file" to file,
- "read" to read,
- "write" to write
- )
-
- val headers = mapOf(
- "content-type" to "multipart/form-data"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Get File
- *
- * Get a file by its unique ID. This endpoint response returns a JSON object
- * with the file metadata.
- *
- * @param fileId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getFile(
- fileId: String
- ): Response {
- val path = "/storage/files/{fileId}".replace("{fileId}", fileId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Update File
- *
- * Update a file by its unique ID. Only users with write permissions have
- * access to update this resource.
- *
- * @param fileId
- * @param read
- * @param write
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateFile(
- fileId: String,
- read: List,
- write: List
- ): Response {
- val path = "/storage/files/{fileId}".replace("{fileId}", fileId)
- val params = mapOf(
- "read" to read,
- "write" to write
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PUT", path, headers, params)
- }
-
- /**
- * Delete File
- *
- * Delete a file by its unique ID. Only users with write permissions have
- * access to delete this resource.
- *
- * @param fileId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun deleteFile(
- fileId: String
- ): Response {
- val path = "/storage/files/{fileId}".replace("{fileId}", fileId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
- /**
- * Get File for Download
- *
- * Get a file content by its unique ID. The endpoint response return with a
- * 'Content-Disposition: attachment' header that tells the browser to start
- * downloading the file to user downloads directory.
- *
- * @param fileId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getFileDownload(
- fileId: String
- ): Response {
- val path = "/storage/files/{fileId}/download".replace("{fileId}", fileId)
- val params = mapOf(
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get File Preview
- *
- * Get a file preview image. Currently, this method supports preview for image
- * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
- * and spreadsheets, will return the file icon image. You can also pass query
- * string arguments for cutting and resizing your preview image.
- *
- * @param fileId
- * @param width
- * @param height
- * @param quality
- * @param borderWidth
- * @param borderColor
- * @param borderRadius
- * @param opacity
- * @param rotation
- * @param background
- * @param output
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getFilePreview(
- fileId: String,
- width: Int? = null,
- height: Int? = null,
- quality: Int? = null,
- borderWidth: Int? = null,
- borderColor: String? = null,
- borderRadius: Int? = null,
- opacity: Double? = null,
- rotation: Int? = null,
- background: String? = null,
- output: String? = null
- ): Response {
- val path = "/storage/files/{fileId}/preview".replace("{fileId}", fileId)
- val params = mapOf(
- "width" to width,
- "height" to height,
- "quality" to quality,
- "borderWidth" to borderWidth,
- "borderColor" to borderColor,
- "borderRadius" to borderRadius,
- "opacity" to opacity,
- "rotation" to rotation,
- "background" to background,
- "output" to output,
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
- /**
- * Get File for View
- *
- * Get a file content by its unique ID. This endpoint is similar to the
- * download method but returns with no 'Content-Disposition: attachment'
- * header.
- *
- * @param fileId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getFileView(
- fileId: String
- ): Response {
- val path = "/storage/files/{fileId}/view".replace("{fileId}", fileId)
- val params = mapOf(
- "project" to client.config["project"]
- )
-
- return client.call("GET", path, params = params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Teams.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/services/Teams.kt
deleted file mode 100644
index 8e14663920..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/services/Teams.kt
+++ /dev/null
@@ -1,332 +0,0 @@
-package io.appwrite.services
-
-import android.net.Uri
-import io.appwrite.Client
-import io.appwrite.exceptions.AppwriteException
-import okhttp3.Cookie
-import okhttp3.Response
-import java.io.File
-
-class Teams(private val client: Client) : BaseService(client) {
-
- /**
- * List Teams
- *
- * Get a list of all the current user teams. You can use the query params to
- * filter your results. On admin mode, this endpoint will return a list of all
- * of the project's teams. [Learn more about different API
- * modes](/docs/admin).
- *
- * @param search
- * @param limit
- * @param offset
- * @param orderType
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun list(
- search: String? = null,
- limit: Int? = null,
- offset: Int? = null,
- orderType: String? = null
- ): Response {
- val path = "/teams"
- val params = mapOf(
- "search" to search,
- "limit" to limit,
- "offset" to offset,
- "orderType" to orderType
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create Team
- *
- * Create a new team. The user who creates the team will automatically be
- * assigned as the owner of the team. The team owner can invite new members,
- * who will be able add new owners and update or delete the team from your
- * project.
- *
- * @param name
- * @param roles
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun create(
- name: String,
- roles: List? = null
- ): Response {
- val path = "/teams"
- val params = mapOf(
- "name" to name,
- "roles" to roles
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Get Team
- *
- * Get a team by its unique ID. All team members have read access for this
- * resource.
- *
- * @param teamId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun get(
- teamId: String
- ): Response {
- val path = "/teams/{teamId}".replace("{teamId}", teamId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Update Team
- *
- * Update a team by its unique ID. Only team owners have write access for this
- * resource.
- *
- * @param teamId
- * @param name
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun update(
- teamId: String,
- name: String
- ): Response {
- val path = "/teams/{teamId}".replace("{teamId}", teamId)
- val params = mapOf(
- "name" to name
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PUT", path, headers, params)
- }
-
- /**
- * Delete Team
- *
- * Delete a team by its unique ID. Only team owners have write access for this
- * resource.
- *
- * @param teamId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun delete(
- teamId: String
- ): Response {
- val path = "/teams/{teamId}".replace("{teamId}", teamId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
- /**
- * Get Team Memberships
- *
- * Get a team members by the team unique ID. All team members have read access
- * for this list of resources.
- *
- * @param teamId
- * @param search
- * @param limit
- * @param offset
- * @param orderType
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun getMemberships(
- teamId: String,
- search: String? = null,
- limit: Int? = null,
- offset: Int? = null,
- orderType: String? = null
- ): Response {
- val path = "/teams/{teamId}/memberships".replace("{teamId}", teamId)
- val params = mapOf(
- "search" to search,
- "limit" to limit,
- "offset" to offset,
- "orderType" to orderType
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("GET", path, headers, params)
- }
-
- /**
- * Create Team Membership
- *
- * Use this endpoint to invite a new member to join your team. An email with a
- * link to join the team will be sent to the new member email address if the
- * member doesn't exist in the project it will be created automatically.
- *
- * Use the 'URL' parameter to redirect the user from the invitation email back
- * to your app. When the user is redirected, use the [Update Team Membership
- * Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow
- * the user to accept the invitation to the team.
- *
- * Please note that in order to avoid a [Redirect
- * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
- * the only valid redirect URL's are the once from domains you have set when
- * added your platforms in the console interface.
- *
- * @param teamId
- * @param email
- * @param roles
- * @param url
- * @param name
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun createMembership(
- teamId: String,
- email: String,
- roles: List,
- url: String,
- name: String? = null
- ): Response {
- val path = "/teams/{teamId}/memberships".replace("{teamId}", teamId)
- val params = mapOf(
- "email" to email,
- "name" to name,
- "roles" to roles,
- "url" to url
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("POST", path, headers, params)
- }
-
- /**
- * Update Membership Roles
- *
- * @param teamId
- * @param membershipId
- * @param roles
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateMembershipRoles(
- teamId: String,
- membershipId: String,
- roles: List
- ): Response {
- val path = "/teams/{teamId}/memberships/{membershipId}".replace("{teamId}", teamId).replace("{membershipId}", membershipId)
- val params = mapOf(
- "roles" to roles
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
- /**
- * Delete Team Membership
- *
- * This endpoint allows a user to leave a team or for a team owner to delete
- * the membership of any other team member. You can also use this endpoint to
- * delete a user membership even if it is not accepted.
- *
- * @param teamId
- * @param membershipId
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun deleteMembership(
- teamId: String,
- membershipId: String
- ): Response {
- val path = "/teams/{teamId}/memberships/{membershipId}".replace("{teamId}", teamId).replace("{membershipId}", membershipId)
- val params = mapOf(
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("DELETE", path, headers, params)
- }
-
- /**
- * Update Team Membership Status
- *
- * Use this endpoint to allow a user to accept an invitation to join a team
- * after being redirected back to your app from the invitation email recieved
- * by the user.
- *
- * @param teamId
- * @param membershipId
- * @param userId
- * @param secret
- * @return [Response]
- */
- @JvmOverloads
- @Throws(AppwriteException::class)
- suspend fun updateMembershipStatus(
- teamId: String,
- membershipId: String,
- userId: String,
- secret: String
- ): Response {
- val path = "/teams/{teamId}/memberships/{membershipId}/status".replace("{teamId}", teamId).replace("{membershipId}", membershipId)
- val params = mapOf(
- "userId" to userId,
- "secret" to secret
- )
-
- val headers = mapOf(
- "content-type" to "application/json"
- )
-
- return client.call("PATCH", path, headers, params)
- }
-
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/library/src/main/java/io/appwrite/views/CallbackActivity.kt b/app/sdks/client-android/library/src/main/java/io/appwrite/views/CallbackActivity.kt
deleted file mode 100644
index 49baf68e1b..0000000000
--- a/app/sdks/client-android/library/src/main/java/io/appwrite/views/CallbackActivity.kt
+++ /dev/null
@@ -1,20 +0,0 @@
-package io.appwrite.views
-
-import android.app.Activity
-import android.os.Bundle
-import io.appwrite.WebAuthComponent
-
-class CallbackActivity: Activity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- val url = intent?.data
- val scheme = url?.scheme
- if (scheme != null) {
- // Found a scheme, try to callback to web auth component.
- // Will only suceed if the scheme matches one launched by this sdk.
- WebAuthComponent.onCallback(scheme, url)
- }
- finish()
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/scripts/publish-config.gradle b/app/sdks/client-android/scripts/publish-config.gradle
deleted file mode 100644
index 299c6c4a43..0000000000
--- a/app/sdks/client-android/scripts/publish-config.gradle
+++ /dev/null
@@ -1,37 +0,0 @@
-// Create variables with empty default values
-ext["signing.keyId"] = ''
-ext["signing.password"] = ''
-ext["signing.secretKeyRingFile"] = ''
-ext["ossrhUsername"] = ''
-ext["ossrhPassword"] = ''
-ext["sonatypeStagingProfileId"] = ''
-
-File secretPropsFile = project.rootProject.file('local.properties')
-if (secretPropsFile.exists()) {
- // Read local.properties file first if it exists
- Properties p = new Properties()
- new FileInputStream(secretPropsFile).withCloseable { is -> p.load(is) }
- p.each { name, value -> ext[name] = value }
-}
-
-// Use system environment variables
-ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME') ?: ext["ossrhUsername"]
-ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD') ?: ext["ossrhPassword"]
-ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID') ?: ext["sonatypeStagingProfileId"]
-ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ?: ext["signing.keyId"]
-ext["signing.password"] = System.getenv('SIGNING_PASSWORD') ?: ext["signing.password"]
-ext["signing.secretKeyRingFile"] = System.getenv('SIGNING_SECRET_KEY_RING_FILE') ?: ext["signing.secretKeyRingFile"]
-
-
-// Set up Sonatype repository
-nexusPublishing {
- repositories {
- sonatype {
- stagingProfileId = sonatypeStagingProfileId
- username = ossrhUsername
- password = ossrhPassword
- nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
- snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
- }
- }
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/scripts/publish-module.gradle b/app/sdks/client-android/scripts/publish-module.gradle
deleted file mode 100644
index e32ff846e9..0000000000
--- a/app/sdks/client-android/scripts/publish-module.gradle
+++ /dev/null
@@ -1,84 +0,0 @@
-apply(plugin: "maven-publish")
-apply(plugin: "signing")
-
-tasks.register("sourcesJar", Jar) {
- archiveClassifier.set("sources")
- from(android.sourceSets.getByName("main").java.srcDirs)
-}
-
-tasks.register("javadoc", Javadoc) {
- source = android.sourceSets.getByName("main").java.srcDirs
- classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- setDestinationDir(file("../javadoc/"))
- failOnError false
-}
-
-tasks.register("javadocJar", Jar) {
- dependsOn(javadoc)
- archiveClassifier.set("javadoc")
- from(javadoc)
-}
-
-publishing {
- publications {
- release(MavenPublication) {
- groupId PUBLISH_GROUP_ID
- artifactId PUBLISH_ARTIFACT_ID
- version PUBLISH_VERSION
-
- artifacts {
- artifact(sourcesJar)
- artifact(javadocJar)
- artifact("$buildDir/outputs/aar/${project.name}-release.aar")
- }
-
- pom {
- name = PUBLISH_ARTIFACT_ID
- description = POM_DESCRIPTION
- url = POM_URL
-
- licenses {
- license {
- name = POM_LICENSE_NAME
- url = POM_LICENSE_URL
- }
- }
-
- developers {
- developer {
- id = POM_DEVELOPER_ID
- name = POM_DEVELOPER_NAME
- email = POM_DEVELOPER_EMAIL
- }
- }
-
- scm {
- connection = GITHUB_SCM_CONNECTION
- url = POM_SCM_URL
- }
-
- withXml {
- def dependencies = asNode().appendNode("dependencies")
-
- configurations
- .getByName("releaseCompileClasspath")
- .resolvedConfiguration
- .firstLevelModuleDependencies.forEach {
- def dependency = dependencies.appendNode("dependency")
- dependency.appendNode("groupId", it.moduleGroup)
- dependency.appendNode("artifactId", it.moduleName)
- dependency.appendNode("version", it.moduleVersion)
- }
- }
- }
- }
- }
-}
-
-ext["signing.keyId"] = rootProject.ext["signing.keyId"]
-ext["signing.password"] = rootProject.ext["signing.password"]
-ext["signing.secretKeyRingFile"] = rootProject.ext["signing.secretKeyRingFile"]
-
-signing {
- sign publishing.publications
-}
\ No newline at end of file
diff --git a/app/sdks/client-android/settings.gradle b/app/sdks/client-android/settings.gradle
deleted file mode 100644
index c9196b3f88..0000000000
--- a/app/sdks/client-android/settings.gradle
+++ /dev/null
@@ -1,3 +0,0 @@
-rootProject.name = "Appwrite Android SDK"
-include ':example'
-include ':library'
diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php
index 279f413344..96f8742296 100644
--- a/app/tasks/sdks.php
+++ b/app/tasks/sdks.php
@@ -221,8 +221,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
\exec('mkdir -p '.$resultExamples.' && cp -r '.$result.'/docs/examples '.$resultExamples);
Console::success("Copied code examples for {$language['name']} SDK to: {$resultExamples}");
- // \exec('rm -rf '.$result);
- // Console::success("Removed source code directory '{$result}' for {$language['name']} SDK");
+ \exec('rm -rf '.$result);
+ Console::success("Removed source code directory '{$result}' for {$language['name']} SDK");
}
}
diff --git a/docs/examples/0.8.x/client-android/examples/account/create-anonymous-session.md b/docs/examples/0.8.x/client-android/examples/account/create-anonymous-session.md
deleted file mode 100644
index 9aa6d9002a..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create-anonymous-session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createAnonymousSession()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/create-j-w-t.md b/docs/examples/0.8.x/client-android/examples/account/create-j-w-t.md
deleted file mode 100644
index 50965da19a..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create-j-w-t.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createJWT()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/create-o-auth2session.md b/docs/examples/0.8.x/client-android/examples/account/create-o-auth2session.md
deleted file mode 100644
index 8eaa4aff76..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create-o-auth2session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createOAuth2Session("amazon")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/create-recovery.md b/docs/examples/0.8.x/client-android/examples/account/create-recovery.md
deleted file mode 100644
index c43a0e3f74..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create-recovery.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createRecovery("email@example.com", "https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/create-session.md b/docs/examples/0.8.x/client-android/examples/account/create-session.md
deleted file mode 100644
index 9940d99e41..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create-session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createSession("email@example.com", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/create-verification.md b/docs/examples/0.8.x/client-android/examples/account/create-verification.md
deleted file mode 100644
index cf568233ea..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create-verification.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.createVerification("https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/create.md b/docs/examples/0.8.x/client-android/examples/account/create.md
deleted file mode 100644
index 0036d538b2..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/create.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.create("email@example.com", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/delete-session.md b/docs/examples/0.8.x/client-android/examples/account/delete-session.md
deleted file mode 100644
index 5bb6aec0ff..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/delete-session.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.deleteSession("[SESSION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/delete-sessions.md b/docs/examples/0.8.x/client-android/examples/account/delete-sessions.md
deleted file mode 100644
index 4f700bd921..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/delete-sessions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.deleteSessions()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/delete.md b/docs/examples/0.8.x/client-android/examples/account/delete.md
deleted file mode 100644
index c8e7790112..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/delete.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.delete()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/get-logs.md b/docs/examples/0.8.x/client-android/examples/account/get-logs.md
deleted file mode 100644
index 65a7fdf44b..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/get-logs.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.getLogs()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/get-prefs.md b/docs/examples/0.8.x/client-android/examples/account/get-prefs.md
deleted file mode 100644
index 355f89812c..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/get-prefs.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.getPrefs()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/get-sessions.md b/docs/examples/0.8.x/client-android/examples/account/get-sessions.md
deleted file mode 100644
index 4da469aff2..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/get-sessions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.getSessions()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/get.md b/docs/examples/0.8.x/client-android/examples/account/get.md
deleted file mode 100644
index f5533f5ae8..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/get.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.get()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/update-email.md b/docs/examples/0.8.x/client-android/examples/account/update-email.md
deleted file mode 100644
index d9d10afc29..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/update-email.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateEmail("email@example.com", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/update-name.md b/docs/examples/0.8.x/client-android/examples/account/update-name.md
deleted file mode 100644
index 5854161254..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/update-name.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateName("[NAME]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/update-password.md b/docs/examples/0.8.x/client-android/examples/account/update-password.md
deleted file mode 100644
index 4f4fe7bd14..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/update-password.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updatePassword("password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/update-prefs.md b/docs/examples/0.8.x/client-android/examples/account/update-prefs.md
deleted file mode 100644
index dcbf4b6142..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/update-prefs.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updatePrefs({})
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/update-recovery.md b/docs/examples/0.8.x/client-android/examples/account/update-recovery.md
deleted file mode 100644
index 05d04f5e8f..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/update-recovery.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateRecovery("[USER_ID]", "[SECRET]", "password", "password")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/account/update-verification.md b/docs/examples/0.8.x/client-android/examples/account/update-verification.md
deleted file mode 100644
index f924c3d7a5..0000000000
--- a/docs/examples/0.8.x/client-android/examples/account/update-verification.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Account
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val accountService = Account(client)
-val response = accountService.updateVerification("[USER_ID]", "[SECRET]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-browser.md b/docs/examples/0.8.x/client-android/examples/avatars/get-browser.md
deleted file mode 100644
index 642ae8c164..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-browser.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getBrowser("aa")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-credit-card.md b/docs/examples/0.8.x/client-android/examples/avatars/get-credit-card.md
deleted file mode 100644
index 4fba61f1f2..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-credit-card.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getCreditCard("amex")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-favicon.md b/docs/examples/0.8.x/client-android/examples/avatars/get-favicon.md
deleted file mode 100644
index bef7fd481f..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-favicon.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getFavicon("https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-flag.md b/docs/examples/0.8.x/client-android/examples/avatars/get-flag.md
deleted file mode 100644
index 0c4ec2ddda..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-flag.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getFlag("af")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-image.md b/docs/examples/0.8.x/client-android/examples/avatars/get-image.md
deleted file mode 100644
index 8cec3e79af..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-image.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getImage("https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-initials.md b/docs/examples/0.8.x/client-android/examples/avatars/get-initials.md
deleted file mode 100644
index 4ddc263327..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-initials.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getInitials()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/avatars/get-q-r.md b/docs/examples/0.8.x/client-android/examples/avatars/get-q-r.md
deleted file mode 100644
index 57eb765733..0000000000
--- a/docs/examples/0.8.x/client-android/examples/avatars/get-q-r.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Avatars
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val avatarsService = Avatars(client)
-val response = avatarsService.getQR("[TEXT]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/database/create-document.md b/docs/examples/0.8.x/client-android/examples/database/create-document.md
deleted file mode 100644
index 95959f5676..0000000000
--- a/docs/examples/0.8.x/client-android/examples/database/create-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.createDocument("[COLLECTION_ID]", {})
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/database/delete-document.md b/docs/examples/0.8.x/client-android/examples/database/delete-document.md
deleted file mode 100644
index 6bcaab03d9..0000000000
--- a/docs/examples/0.8.x/client-android/examples/database/delete-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.deleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/database/get-document.md b/docs/examples/0.8.x/client-android/examples/database/get-document.md
deleted file mode 100644
index a71e71c57f..0000000000
--- a/docs/examples/0.8.x/client-android/examples/database/get-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.getDocument("[COLLECTION_ID]", "[DOCUMENT_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/database/list-documents.md b/docs/examples/0.8.x/client-android/examples/database/list-documents.md
deleted file mode 100644
index 0c720e2a5a..0000000000
--- a/docs/examples/0.8.x/client-android/examples/database/list-documents.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.listDocuments("[COLLECTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/database/update-document.md b/docs/examples/0.8.x/client-android/examples/database/update-document.md
deleted file mode 100644
index cb0f8c9f68..0000000000
--- a/docs/examples/0.8.x/client-android/examples/database/update-document.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Database
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val databaseService = Database(client)
-val response = databaseService.updateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {})
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/functions/create-execution.md b/docs/examples/0.8.x/client-android/examples/functions/create-execution.md
deleted file mode 100644
index 665c3ceb84..0000000000
--- a/docs/examples/0.8.x/client-android/examples/functions/create-execution.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Functions
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val functionsService = Functions(client)
-val response = functionsService.createExecution("[FUNCTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/functions/get-execution.md b/docs/examples/0.8.x/client-android/examples/functions/get-execution.md
deleted file mode 100644
index 79c365112b..0000000000
--- a/docs/examples/0.8.x/client-android/examples/functions/get-execution.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Functions
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val functionsService = Functions(client)
-val response = functionsService.getExecution("[FUNCTION_ID]", "[EXECUTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/functions/list-executions.md b/docs/examples/0.8.x/client-android/examples/functions/list-executions.md
deleted file mode 100644
index cfb4beddd9..0000000000
--- a/docs/examples/0.8.x/client-android/examples/functions/list-executions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Functions
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val functionsService = Functions(client)
-val response = functionsService.listExecutions("[FUNCTION_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get-continents.md b/docs/examples/0.8.x/client-android/examples/locale/get-continents.md
deleted file mode 100644
index 39db743450..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get-continents.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getContinents()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get-countries-e-u.md b/docs/examples/0.8.x/client-android/examples/locale/get-countries-e-u.md
deleted file mode 100644
index 32222b45ca..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get-countries-e-u.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCountriesEU()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get-countries-phones.md b/docs/examples/0.8.x/client-android/examples/locale/get-countries-phones.md
deleted file mode 100644
index 3dcdac19e9..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get-countries-phones.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCountriesPhones()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get-countries.md b/docs/examples/0.8.x/client-android/examples/locale/get-countries.md
deleted file mode 100644
index 437afe1bb1..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get-countries.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCountries()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get-currencies.md b/docs/examples/0.8.x/client-android/examples/locale/get-currencies.md
deleted file mode 100644
index 38879dab4b..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get-currencies.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getCurrencies()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get-languages.md b/docs/examples/0.8.x/client-android/examples/locale/get-languages.md
deleted file mode 100644
index 78c3bcaef6..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get-languages.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.getLanguages()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/locale/get.md b/docs/examples/0.8.x/client-android/examples/locale/get.md
deleted file mode 100644
index 6552b21de5..0000000000
--- a/docs/examples/0.8.x/client-android/examples/locale/get.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Locale
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val localeService = Locale(client)
-val response = localeService.get()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/create-file.md b/docs/examples/0.8.x/client-android/examples/storage/create-file.md
deleted file mode 100644
index 9e2d8c53b3..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/create-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.createFile(new File("./path-to-files/image.jpg"))
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/delete-file.md b/docs/examples/0.8.x/client-android/examples/storage/delete-file.md
deleted file mode 100644
index 87479bd086..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/delete-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.deleteFile("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/get-file-download.md b/docs/examples/0.8.x/client-android/examples/storage/get-file-download.md
deleted file mode 100644
index 25681e1b0f..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/get-file-download.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFileDownload("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/get-file-preview.md b/docs/examples/0.8.x/client-android/examples/storage/get-file-preview.md
deleted file mode 100644
index a3c317c316..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/get-file-preview.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFilePreview("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/get-file-view.md b/docs/examples/0.8.x/client-android/examples/storage/get-file-view.md
deleted file mode 100644
index d2d0f45348..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/get-file-view.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFileView("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/get-file.md b/docs/examples/0.8.x/client-android/examples/storage/get-file.md
deleted file mode 100644
index 2d0f0d1394..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/get-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.getFile("[FILE_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/list-files.md b/docs/examples/0.8.x/client-android/examples/storage/list-files.md
deleted file mode 100644
index 09327879ff..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/list-files.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.listFiles()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/storage/update-file.md b/docs/examples/0.8.x/client-android/examples/storage/update-file.md
deleted file mode 100644
index a9d61aabc3..0000000000
--- a/docs/examples/0.8.x/client-android/examples/storage/update-file.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Storage
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val storageService = Storage(client)
-val response = storageService.updateFile("[FILE_ID]", List(), List())
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/create-membership.md b/docs/examples/0.8.x/client-android/examples/teams/create-membership.md
deleted file mode 100644
index c1325b85b9..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/create-membership.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.createMembership("[TEAM_ID]", "email@example.com", List(), "https://example.com")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/create.md b/docs/examples/0.8.x/client-android/examples/teams/create.md
deleted file mode 100644
index bd72a0584a..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/create.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.create("[NAME]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/delete-membership.md b/docs/examples/0.8.x/client-android/examples/teams/delete-membership.md
deleted file mode 100644
index 58e29e5986..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/delete-membership.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.deleteMembership("[TEAM_ID]", "[MEMBERSHIP_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/delete.md b/docs/examples/0.8.x/client-android/examples/teams/delete.md
deleted file mode 100644
index 11db6a81b1..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/delete.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.delete("[TEAM_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/get-memberships.md b/docs/examples/0.8.x/client-android/examples/teams/get-memberships.md
deleted file mode 100644
index 32db0b8809..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/get-memberships.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.getMemberships("[TEAM_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/get.md b/docs/examples/0.8.x/client-android/examples/teams/get.md
deleted file mode 100644
index eb2451f66c..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/get.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.get("[TEAM_ID]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/list.md b/docs/examples/0.8.x/client-android/examples/teams/list.md
deleted file mode 100644
index 5da9925e48..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/list.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.list()
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/update-membership-roles.md b/docs/examples/0.8.x/client-android/examples/teams/update-membership-roles.md
deleted file mode 100644
index 17904fa125..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/update-membership-roles.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.updateMembershipRoles("[TEAM_ID]", "[MEMBERSHIP_ID]", List())
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/update-membership-status.md b/docs/examples/0.8.x/client-android/examples/teams/update-membership-status.md
deleted file mode 100644
index dca6a1ba14..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/update-membership-status.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.updateMembershipStatus("[TEAM_ID]", "[MEMBERSHIP_ID]", "[USER_ID]", "[SECRET]")
-val json = response.body?.string()
\ No newline at end of file
diff --git a/docs/examples/0.8.x/client-android/examples/teams/update.md b/docs/examples/0.8.x/client-android/examples/teams/update.md
deleted file mode 100644
index ab4cfcc39a..0000000000
--- a/docs/examples/0.8.x/client-android/examples/teams/update.md
+++ /dev/null
@@ -1,10 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.services.Teams
-
-val client = Client(context)
- .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
-
-val teamsService = Teams(client)
-val response = teamsService.update("[TEAM_ID]", "[NAME]")
-val json = response.body?.string()
\ No newline at end of file