From 7ffa11c75d570e6689fc1247e09d1639589bd4aa Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 30 Jul 2025 13:22:22 +0530 Subject: [PATCH 1/3] chore: remove console sdk from platforms --- app/config/platforms.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index ae09c39cac..f02a2c7035 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -196,24 +196,6 @@ return [ 'enabled' => false, 'beta' => false, 'sdks' => [ - [ - 'key' => 'web', - 'name' => 'Console', - 'version' => '1.9.0', - 'url' => 'https://github.com/appwrite/sdk-for-console', - 'package' => '', - 'enabled' => true, - 'beta' => false, - 'dev' => false, - 'hidden' => true, - 'family' => APP_PLATFORM_CONSOLE, - 'prism' => 'javascript', - 'source' => \realpath(__DIR__ . '/../sdks/console-web'), - 'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git', - 'gitBranch' => 'dev', - 'gitRepoName' => 'sdk-for-console', - 'gitUserName' => 'appwrite', - ], [ 'key' => 'cli', 'name' => 'Command Line', From 5977e62e9af3f93e8091599453c1762ed9519859 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 30 Jul 2025 13:32:56 +0530 Subject: [PATCH 2/3] chore: move changelog path to platforms config --- app/config/platforms.php | 20 ++++++++++++++++++++ src/Appwrite/Platform/Tasks/SDKs.php | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index f02a2c7035..557342486b 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -25,6 +25,7 @@ return [ 'gitRepoName' => 'sdk-for-web', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/web/CHANGELOG.md'), 'demos' => [ [ 'icon' => 'react.svg', @@ -73,6 +74,7 @@ return [ 'gitRepoName' => 'sdk-for-flutter', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/flutter/CHANGELOG.md'), ], [ 'key' => 'apple', @@ -91,6 +93,7 @@ return [ 'gitRepoName' => 'sdk-for-apple', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/apple/CHANGELOG.md'), ], [ 'key' => 'objective-c', @@ -108,6 +111,7 @@ return [ 'gitRepoName' => 'sdk-for-objective-c', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/objective-c/CHANGELOG.md'), ], [ 'key' => 'android', @@ -130,6 +134,7 @@ return [ 'Kotlin' => 'kotlin', 'Java' => 'java', ], + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/android/CHANGELOG.md'), ], [ 'key' => 'react-native', @@ -148,6 +153,7 @@ return [ 'gitRepoName' => 'sdk-for-react-native', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/react-native/CHANGELOG.md'), ], [ 'key' => 'graphql', @@ -167,6 +173,7 @@ return [ 'gitUserName' => '', 'gitBranch' => '', 'isSDK' => false, + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/graphql/CHANGELOG.md'), ], [ 'key' => 'rest', @@ -186,6 +193,7 @@ return [ 'gitUserName' => '', 'gitBranch' => '', 'isSDK' => false, + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/rest/CHANGELOG.md'), ], ], ], @@ -247,6 +255,7 @@ return [ 'gitRepoName' => 'sdk-for-node', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/nodejs/CHANGELOG.md'), ], [ 'key' => 'deno', @@ -265,6 +274,7 @@ return [ 'gitRepoName' => 'sdk-for-deno', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/deno/CHANGELOG.md'), ], [ 'key' => 'php', @@ -283,6 +293,7 @@ return [ 'gitRepoName' => 'sdk-for-php', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/php/CHANGELOG.md'), ], [ 'key' => 'python', @@ -301,6 +312,7 @@ return [ 'gitRepoName' => 'sdk-for-python', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/python/CHANGELOG.md'), ], [ 'key' => 'ruby', @@ -319,6 +331,7 @@ return [ 'gitRepoName' => 'sdk-for-ruby', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/ruby/CHANGELOG.md'), ], [ 'key' => 'go', @@ -337,6 +350,7 @@ return [ 'gitRepoName' => 'sdk-for-go', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/go/CHANGELOG.md'), ], [ 'key' => 'dotnet', @@ -355,6 +369,7 @@ return [ 'gitRepoName' => 'sdk-for-dotnet', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/dotnet/CHANGELOG.md'), ], [ 'key' => 'dart', @@ -373,6 +388,7 @@ return [ 'gitRepoName' => 'sdk-for-dart', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/dart/CHANGELOG.md'), ], [ 'key' => 'kotlin', @@ -395,6 +411,7 @@ return [ 'Kotlin' => 'kotlin', 'Java' => 'java', ], + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/kotlin/CHANGELOG.md'), ], [ 'key' => 'swift', @@ -413,6 +430,7 @@ return [ 'gitRepoName' => 'sdk-for-swift', 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/swift/CHANGELOG.md'), ], [ 'key' => 'graphql', @@ -432,6 +450,7 @@ return [ 'gitUserName' => '', 'gitBranch' => '', 'isSDK' => false, + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/graphql/CHANGELOG.md'), ], [ 'key' => 'rest', @@ -451,6 +470,7 @@ return [ 'gitUserName' => '', 'gitBranch' => '', 'isSDK' => false, + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/rest/CHANGELOG.md'), ], ], ], diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 98a1ae6a10..c6f4e92186 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -98,7 +98,7 @@ class SDKs extends Action $gettingStarted = ($gettingStarted) ? \file_get_contents($gettingStarted) : ''; $examples = \realpath(__DIR__ . '/../../../../docs/sdks/' . $language['key'] . '/EXAMPLES.md'); $examples = ($examples) ? \file_get_contents($examples) : ''; - $changelog = \realpath(__DIR__ . '/../../../../docs/sdks/' . $language['key'] . '/CHANGELOG.md'); + $changelog = $language['changelog'] ?? ''; $changelog = ($changelog) ? \file_get_contents($changelog) : '# Change Log'; $warning = '**This SDK is compatible with Appwrite server version ' . $version . '. For older versions, please check [previous releases](' . $language['url'] . '/releases).**'; $license = 'BSD-3-Clause'; From d2dcddaf13d50ba4401f020cdcdeb30b33bb95da Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 30 Jul 2025 13:52:37 +0530 Subject: [PATCH 3/3] chore: add console back --- app/config/platforms.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/config/platforms.php b/app/config/platforms.php index 557342486b..814c07a30c 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -204,6 +204,25 @@ return [ 'enabled' => false, 'beta' => false, 'sdks' => [ + [ + 'key' => 'web', + 'name' => 'Console', + 'version' => '', + 'url' => '', + 'package' => '', + 'enabled' => true, + 'beta' => false, + 'dev' => false, + 'hidden' => true, + 'family' => APP_PLATFORM_CONSOLE, + 'prism' => 'javascript', + 'source' => \realpath(__DIR__ . '/../sdks/console-web'), + 'gitUrl' => '', + 'gitBranch' => 'dev', + 'gitRepoName' => '', + 'gitUserName' => '', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/console/CHANGELOG.md'), + ], [ 'key' => 'cli', 'name' => 'Command Line', @@ -222,6 +241,7 @@ return [ 'gitUserName' => 'appwrite', 'gitBranch' => 'dev', 'repoBranch' => 'master', + 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/cli/CHANGELOG.md'), 'exclude' => [ 'services' => [ ['name' => 'assistant'],