Consistent platforms: Updated sample to use targetPlatform (new name for targetPlatforms)