Description
Plugin
share_plus
Use case
In Order to fullfill the MASVS-PLATFORM-1 requirement, one should, according to MASTG-TEST-0071 ensure that when sharing is used, only desired activity types are allowed.
For native iOS, this is done by adding the excluded ActivityTypes to UIActivityViewController.excludedActivityTypes before presenting the controller. However, the share_plus plugin currently does not allow to pass this information to the native implementation.
Proposal
I would propose to introduce a new optional named parameter iosExcludedActivityTypes
that takes a nullable list of a dart-mapped ActivityTypes
enum. This parameter can then be passed to the iOS implementation and be used there to populate the UIActivityViewController.excludedActivityTypes
. It would be a simple, non breaking change.