AppLovin shares soared in extended trading after the company beat first-quarter expectations and announced the sale of its mobile gaming business.