A messaging service may not seem like the obvious partner for the task, but Line joins a growing list of software companies entering the hardware space, including Facebook Inc’s acquisition of a virtual reality startup and Snap Inc’s camera spectacles.