Browse Source

feat(platforms): Add native as platform (#14807)

Jan Michael Auer 5 years ago
parent
commit
28794ac348

+ 4 - 3
src/sentry/static/sentry/app/data/platformCategories.jsx

@@ -33,6 +33,8 @@ const frontend = [
 const mobile = ['cocoa-objc', 'cocoa-swift', 'java-android', 'cordova', 'react-native'];
 
 const backend = [
+  'csharp',
+  'elixir',
   'go',
   'go-http',
   'java-appengine',
@@ -41,11 +43,11 @@ const backend = [
   'java-log4j2',
   'java-logback',
   'java-logging',
+  'native',
   'node',
   'node-express',
   'node-koa',
   'node-connect',
-  'csharp',
   'php',
   'php-laravel',
   'php-monolog',
@@ -65,10 +67,9 @@ const backend = [
   'ruby-rails',
   'ruby-rack',
   'rust',
-  'elixir',
 ];
 
-const desktop = ['cocoa', 'csharp', 'java', 'electron', 'minidump'];
+const desktop = ['cocoa', 'csharp', 'java', 'electron', 'minidump', 'native'];
 
 const categoryList = [
   {id: 'popular', name: t('Popular'), platforms: popular},

+ 12 - 0
tests/fixtures/integration-docs/_platforms.json

@@ -192,6 +192,18 @@
       "id": "minidump",
       "name": "Minidump"
     },
+    {
+      "integrations": [
+        {
+          "link": "https://docs.sentry.io/error-reporting/quickstart/?platform=native",
+          "type": "language",
+          "id": "native",
+          "name": "Native (C/C++)"
+        }
+      ],
+      "id": "native",
+      "name": "Native (C/C++)"
+    },
     {
       "integrations": [
         {

File diff suppressed because it is too large
+ 0 - 0
tests/fixtures/integration-docs/minidump.json


File diff suppressed because it is too large
+ 5 - 0
tests/fixtures/integration-docs/native.json


Some files were not shown because too many files changed in this diff