Apple bans mining of cryptocurrencies