You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the Kotlin and Android SDKs and their Java examples usable from Java #2096
templates/android/library/src/main/java/io/package/services/Service.kt.twig and templates/kotlin/src/main/kotlin/io/appwrite/services/ServiceTemplate.kt.twig: every Android service method declares @Throws(AppwriteException::class) (matching Kotlin), and all-required upload methods get @JvmOverloads so Java can skip onProgress.
ID, Permission, Role, Query, Operator, models/InputFile templates (both SDKs) and Android Channel.kt.twig: @JvmStatic plus @JvmOverloads where a parameter has a default, so Java can write ID.unique().
templates/{kotlin,android}/docs/java/example.md.twig and src/SDK/Language/Kotlin.php: Java examples get try/catch, List/Map imports, a terminated Client, correctly typed numeric list literals, array-enum values and the Android OAuth activity argument.
Tests: tests/e2e/languages/kotlin/java-examples.php turns every generated docs/examples/java/**.md into a Java class and compiles it; tests/e2e/languages/kotlin/JavaInterop.java runs against the mock server; wired into KotlinJava17Test, Android16Java17Test, Android5Java17Test and tests/e2e/Base.php.
Remaining steps: The linked PR is the full change. Note for release notes: Java users of the Android SDK now need a try/catch (or throws) around calls that previously compiled without one.
Activity