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:
committed by
Facebook GitHub Bot
parent
1ce619af7e
commit
d7cfcb5d8e
@@ -87,6 +87,8 @@ function getPluginDetailsV1(packageJson: any): PluginDetails {
|
||||
category: packageJson.category,
|
||||
bugs: packageJson.bugs,
|
||||
flipperSDKVersion: packageJson?.peerDependencies?.['flipper-plugin'],
|
||||
pluginType: packageJson?.pluginType || 'client',
|
||||
supportedDevices: packageJson?.supportedDevices,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -107,6 +109,8 @@ function getPluginDetailsV2(packageJson: any): PluginDetails {
|
||||
category: packageJson.category,
|
||||
bugs: packageJson.bugs,
|
||||
flipperSDKVersion: packageJson?.peerDependencies?.['flipper-plugin'],
|
||||
pluginType: packageJson?.pluginType || 'client',
|
||||
supportedDevices: packageJson?.supportedDevices,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user