Support version decoding on both platforms