Extend device plugin metadata to include supported devices

Summary: Plugin metadata format extended to include type of each plugin (client / device) and list of supported devices (android/ios/..., emulator/physical, etc). This will allow to detect plugins supported by device even if they are not installed and only available on Marketplace.

Reviewed By: mweststrate

Differential Revision: D26073531

fbshipit-source-id: e331f1be1af1046cd4220a286a1d52378c26cc53
This commit is contained in:
Anton Nikolaev
2021-01-27 17:23:51 -08:00
committed by Facebook GitHub Bot
parent 1ce619af7e
commit d7cfcb5d8e
22 changed files with 203 additions and 5 deletions

View File

@@ -2,6 +2,10 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-device-cpu",
"id": "DeviceCPU",
"pluginType": "device",
"supportedDevices": [
{"os": "Android", "type": "physical"}
],
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",

View File

@@ -2,6 +2,11 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-crash-reporter",
"id": "CrashReporter",
"pluginType": "device",
"supportedDevices": [
{"os": "Android"},
{"os": "iOS", "type": "emulator"}
],
"version": "0.0.0",
"description": "A plugin which will display a crash",
"main": "dist/bundle.js",

View File

@@ -2,6 +2,10 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-hermesdebuggerrn",
"id": "Hermesdebuggerrn",
"pluginType": "device",
"supportedDevices": [
{"os": "Metro", "archived": false}
],
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",

View File

@@ -3,6 +3,10 @@
"name": "flipper-plugin-kaios-big-allocations",
"id": "kaios-big-allocations",
"version": "0.0.0",
"pluginType": "device",
"supportedDevices": [
{"os": "Android", "specs": ["KaiOS"]}
],
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -3,6 +3,10 @@
"name": "flipper-plugin-kaios-graphs",
"id": "kaios-graphs",
"version": "0.0.0",
"pluginType": "device",
"supportedDevices": [
{"os": "Android", "specs": ["KaiOS"]}
],
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",

View File

@@ -2,6 +2,12 @@
"$schema": "https://fbflipper.com/schemas/plugin-package/v2.json",
"name": "flipper-plugin-device-logs",
"id": "DeviceLogs",
"pluginType": "device",
"supportedDevices": [
{"os": "Android"},
{"os": "iOS", "type": "emulator"},
{"os": "Metro"}
],
"version": "0.0.0",
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",

View File

@@ -3,6 +3,10 @@
"name": "flipper-plugin-react-devtools",
"id": "React",
"version": "0.0.0",
"pluginType": "device",
"supportedDevices": [
{"os": "Metro", "archived": false}
],
"main": "dist/bundle.js",
"flipperBundlerEntry": "index.tsx",
"license": "MIT",