Skip to content
Open
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
21d70cc
Initial twig translation of KMP SDK
camka14 Jan 14, 2025
8ade1e3
Add Test Generation,
camka14 Jan 17, 2025
eb33d83
Fix Test and Release compiling
camka14 Jan 29, 2025
9c5993f
Pass all tests
camka14 Feb 18, 2025
fd9cb4b
Merge branch 'master' of https://github.com/appwrite/sdk-generator in…
camka14 Feb 18, 2025
ec73e97
Remove Document twig file, remove Document type form RealtimModels
camka14 Feb 18, 2025
876e363
Update x-appwrite-response-format to 1.6.0
camka14 Feb 19, 2025
e9e3b6f
Fix OAuth2 login handling
elesey Feb 22, 2025
af0861d
Merge branch 'master' of https://github.com/appwrite/sdk-generator in…
camka14 Feb 23, 2025
a98cca2
Switch WebAuthComponent to activity instead of context
elesey Feb 23, 2025
94f4042
Add OAuth2 handling
elesey Feb 27, 2025
193d171
Merge branch 'master' of https://github.com/appwrite/sdk-generator in…
camka14 Feb 27, 2025
eebc424
Fix iOS and JVM OAuth2Extensions class names
camka14 Feb 28, 2025
c75c8c1
Fix update and create document methods
camka14 Mar 13, 2025
6b9a5b3
Fix old cookies being used when domain is preceded by "."
camka14 Mar 18, 2025
085f227
Fix socket creation in Realtime.kt
camka14 Apr 5, 2025
3c5dc82
Fix encoding prefs error
camka14 May 13, 2025
cf1aeb8
Merge branch 'master' of https://github.com/appwrite/sdk-generator in…
camka14 May 22, 2025
9e4a3ca
PR Changes per comments
camka14 May 22, 2025
763ec35
Revert uninteded changes
camka14 May 22, 2025
072ad1a
Revert Uninteded File Change
camka14 May 22, 2025
40bc4d0
Replace io.appwrite with proper value
camka14 May 22, 2025
4b215e0
Update KMP tests, replace spec.namespace with sdk.namespace where nee…
camka14 May 27, 2025
930fac1
Refactor iOS OAuth2 authentication
elesey May 30, 2025
19aa2d5
Remove println in iosCookieStorage
elesey May 30, 2025
90ba7b7
Incorrect new line
camka14 Jun 1, 2025
d7ae324
Added variables for ios client headers
camka14 Jun 1, 2025
9d5868b
AppwriteException incorrect Case
camka14 Jun 1, 2025
ec01168
Replace value with variable
camka14 Jun 1, 2025
107321d
Fix error thrown outside of scope in iOS OAuth Cancellation
camka14 Jun 6, 2025
c606846
Fix iOS cookie storage not recreating cookies properly
camka14 Jun 6, 2025
4f175bb
Merge branch 'feat-kmp-sdk' of https://github.com/camka14/sdk-generat…
camka14 Aug 21, 2025
e22df28
Merge branch 'master' of https://github.com/appwrite/sdk-generator in…
camka14 Aug 21, 2025
37d8d18
Update dependencies and improve ID generation logic
camka14 Aug 21, 2025
d3e5689
Enhance Realtime service with heartbeat mechanism and nullable data h…
camka14 Aug 21, 2025
2e5807c
Merge commit '1a7a3b89147aa8c1bde5247f8eeb7e4832c6016d'
camka14 Nov 10, 2025
22a2dcf
Refactor OAuth2 authentication flow and remove unused JVM components
camka14 Nov 11, 2025
240ccf7
Refactor KMP SDK templates and improve AndroidManifest.xml configuration
camka14 Nov 11, 2025
8bfffce
Merge branch 'master' into feat-kmp-sdk
camka14 Nov 11, 2025
327cb68
Refactor Client and WebAuthComponent to improve context handling and …
camka14 Nov 12, 2025
2aa84da
Refactor KMP SDK templates and improve cookie handling in WebAuthComp…
camka14 Nov 12, 2025
9f11a2b
Enhance Query class with additional filtering methods and streamline …
camka14 Nov 13, 2025
132f8c8
Add default CoroutineScope creation in WebAuthComponent for improved …
camka14 Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 28 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
include_once 'vendor/autoload.php';

use Appwrite\SDK\Language\GraphQL;
use Appwrite\SDK\Language\KMP;
use Appwrite\Spec\Swagger2;
use Appwrite\SDK\SDK;
use Appwrite\SDK\Language\Web;
Expand Down Expand Up @@ -250,6 +251,15 @@ function configureSDK($sdk, $overrides = []) {
$sdk->generate(__DIR__ . '/examples/android');
}

// KMP
if (!$requestedSdk || $requestedSdk === 'kmp') {
$sdk = new SDK(new KMP(), new Swagger2($spec));
configureSDK($sdk, [
'namespace' => 'io.appwrite',
]);
$sdk->generate(__DIR__ . '/examples/kmp');
}

// Kotlin
if (!$requestedSdk || $requestedSdk === 'kotlin') {
$sdk = new SDK(new Kotlin(), new Swagger2($spec));
Expand Down
4 changes: 2 additions & 2 deletions src/SDK/Language/Android.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ public function getFiles(): array
];
}

protected function getReturnType(array $method, array $spec, string $namespace, string $generic = 'T'): string
protected function getReturnType(array $method, array $spec, string $namespace, string $generic = 'T', bool $withGeneric = true): string
{
if ($method['type'] === 'webAuth') {
return 'Bool';
}
return parent::getReturnType($method, $spec, $namespace, $generic);
return parent::getReturnType($method, $spec, $namespace, $generic, $withGeneric);
}
}
Loading