diff --git a/app/config/platforms.php b/app/config/platforms.php index 7ecd048683..219b00a70a 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -108,6 +108,38 @@ return [ 'gitRepoName' => 'sdk-for-apple', 'gitUserName' => 'appwrite', ], + [ + 'key' => 'watchos', + 'name' => 'watchOS', + 'url' => 'https://github.com/appwrite/sdk-for-apple', + 'package' => 'https://github.com/appwrite/sdk-for-apple', + 'enabled' => true, + 'beta' => false, + 'dev' => true, + 'hidden' => false, + 'family' => APP_PLATFORM_CLIENT, + 'prism' => 'swift', + 'source' => \realpath(__DIR__ . '/../sdks/client-apple'), + 'gitUrl' => 'git@github.com:appwrite/sdk-for-apple.git', + 'gitRepoName' => 'sdk-for-apple', + 'gitUserName' => 'appwrite', + ], + [ + 'key' => 'tvos', + 'name' => 'tvOS', + 'url' => 'https://github.com/appwrite/sdk-for-apple', + 'package' => 'https://github.com/appwrite/sdk-for-apple', + 'enabled' => true, + 'beta' => false, + 'dev' => true, + 'hidden' => false, + 'family' => APP_PLATFORM_CLIENT, + 'prism' => 'swift', + 'source' => \realpath(__DIR__ . '/../sdks/client-apple'), + 'gitUrl' => 'git@github.com:appwrite/sdk-for-apple.git', + 'gitRepoName' => 'sdk-for-apple', + 'gitUserName' => 'appwrite', + ], [ 'key' => 'objective-c', 'name' => 'Objective C', diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index ff71999ce4..996c999674 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1314,7 +1314,7 @@ App::post('/v1/projects/:projectId/platforms') ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) ->label('sdk.response.model', Response::MODEL_PLATFORM) ->param('projectId', null, new UID(), 'Project unique ID.') - ->param('type', null, new WhiteList(['web', 'flutter-ios', 'flutter-android', 'flutter-linux', 'flutter-macos', 'flutter-windows', 'ios', 'macos', 'android', 'unity'], true), 'Platform type.') + ->param('type', null, new WhiteList(['web', 'flutter-ios', 'flutter-android', 'flutter-linux', 'flutter-macos', 'flutter-windows', 'ios', 'macos', 'watchos', 'tvos', 'android', 'unity'], true), 'Platform type.') ->param('name', null, new Text(128), 'Platform name. Max length: 128 chars.') ->param('key', '', new Text(256), 'Package name for Android or bundle ID for iOS or macOS. Max length: 256 chars.', true) ->param('store', '', new Text(256), 'App store or Google Play store ID. Max length: 256 chars.', true) diff --git a/app/views/console/home/index.phtml b/app/views/console/home/index.phtml index bbb36e2bc7..494510cc3f 100644 --- a/app/views/console/home/index.phtml +++ b/app/views/console/home/index.phtml @@ -248,6 +248,12 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
  • +
  • + +
  • +
  • + +
  • @@ -439,6 +445,78 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); + + + +