### Add Appwrite KMP Client Dependency (Gradle) Source: https://github.com/jamshedalamqaderi/appwrite-kmp/blob/main/README.md This snippet shows how to include the Appwrite KMP client library in your project's build.gradle.kts file for common setup in Kotlin Multiplatform projects. ```kotlin implementation("com.jamshedalamqaderi.kmp:appwrite:") ``` -------------------------------- ### Initialize Appwrite KMP Client Source: https://github.com/jamshedalamqaderi/appwrite-kmp/blob/main/README.md This Kotlin code snippet demonstrates how to initialize the Appwrite KMP client. You need to provide your Appwrite project's API endpoint and project ID. The `setSelfSigned(true)` option should be removed in production if not using self-signed certificates. ```kotlin val client = Client() .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Replace with your API Endpoint .setProject("5df5acd0d48c2") // Replace with your Appwrite project ID .setSelfSigned(true) // Remove this in production if using self-signed certificates ``` -------------------------------- ### iOS Info.plist Configuration for Appwrite Callback Source: https://github.com/jamshedalamqaderi/appwrite-kmp/blob/main/README.md This XML snippet shows the necessary configuration for your iOS app's info.plist file to handle Appwrite callbacks. It defines URL schemes for Appwrite, requiring your project ID. ```xml CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName io.appwrite CFBundleURLSchemes appwrite-callback-[project-id] ``` -------------------------------- ### Android Manifest Configuration for Appwrite Callback Source: https://github.com/jamshedalamqaderi/appwrite-kmp/blob/main/README.md This XML snippet demonstrates how to configure the AndroidManifest.xml file to handle Appwrite OAuth2 callbacks. It requires specifying the correct Appwrite project ID in the data scheme. ```xml ``` -------------------------------- ### Register Appwrite Activity Lifecycle Callbacks (Android) Source: https://github.com/jamshedalamqaderi/appwrite-kmp/blob/main/README.md This Kotlin code registers the AppwriteActivityLifecycleCallbacks in your MainActivity.kt file. This is necessary for handling Appwrite-related lifecycle events on Android. ```kotlin registerActivityLifecycleCallbacks(AppwriteActivityLifecycleCallbacks) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.