This year saw Apple face its biggest rival to the iPhone yet from Korean tech giants Samsung, while the US military introduced a new generation of drones.