From f975156a283862f52114aae225a8e0beee80f698 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 14 Oct 2021 01:22:42 +1300 Subject: [PATCH] Prefix apple platforms --- app/config/platforms.php | 54 ++---------------- app/controllers/api/projects.php | 2 +- app/views/console/home/index.phtml | 32 +++++++---- .../images/clients/{ios.png => apple-ios.png} | Bin .../clients/{macos.png => apple-macos.png} | Bin .../clients/{tvos.png => apple-tvos.png} | Bin .../{watchos.png => apple-watchos.png} | Bin 7 files changed, 25 insertions(+), 63 deletions(-) rename public/images/clients/{ios.png => apple-ios.png} (100%) rename public/images/clients/{macos.png => apple-macos.png} (100%) rename public/images/clients/{tvos.png => apple-tvos.png} (100%) rename public/images/clients/{watchos.png => apple-watchos.png} (100%) diff --git a/app/config/platforms.php b/app/config/platforms.php index 219b00a70..1ae2c7c2d 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -77,56 +77,9 @@ return [ 'gitUserName' => 'appwrite', ], [ - 'key' => 'ios', - 'name' => 'iOS', - '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' => 'macos', - 'name' => 'macOS', - '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' => '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', + 'key' => 'apple', + 'name' => 'Apple', + 'version' => '0.0.1', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -422,6 +375,7 @@ return [ [ 'key' => 'swift', 'name' => 'Swift', + 'version' => '0.0.1', 'url' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift', 'enabled' => true, diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 996c99967..ba2108103 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', 'watchos', 'tvos', 'android', 'unity'], true), 'Platform type.') + ->param('type', null, new WhiteList(['web', 'flutter-ios', 'flutter-android', 'flutter-linux', 'flutter-macos', 'flutter-windows', 'apple-ios', 'apple-macos', 'apple-watchos', 'apple-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 d9e047293..aa2cfc987 100644 --- a/app/views/console/home/index.phtml +++ b/app/views/console/home/index.phtml @@ -243,16 +243,16 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
  • - +
  • - +
  • - +
  • - +
  • @@ -395,7 +395,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); data-failure-param-alert-classname="error"> - + @@ -431,7 +431,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); data-failure-param-alert-classname="error"> - + @@ -467,7 +467,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); data-failure-param-alert-classname="error"> - + @@ -503,7 +503,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); data-failure-param-alert-classname="error"> - + @@ -745,7 +745,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); - + @@ -787,7 +787,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true); - - \ No newline at end of file + + + + + diff --git a/public/images/clients/ios.png b/public/images/clients/apple-ios.png similarity index 100% rename from public/images/clients/ios.png rename to public/images/clients/apple-ios.png diff --git a/public/images/clients/macos.png b/public/images/clients/apple-macos.png similarity index 100% rename from public/images/clients/macos.png rename to public/images/clients/apple-macos.png diff --git a/public/images/clients/tvos.png b/public/images/clients/apple-tvos.png similarity index 100% rename from public/images/clients/tvos.png rename to public/images/clients/apple-tvos.png diff --git a/public/images/clients/watchos.png b/public/images/clients/apple-watchos.png similarity index 100% rename from public/images/clients/watchos.png rename to public/images/clients/apple-watchos.png