added PlatformResolutionMiddleware

Signed-off-by: mark hellewell <mark.hellewell@icloud.com>