Bayern Munich midfielder Joshua Kimmich signed a new four-year contract with the club on Thursday after long-running talks.