updated gradle, support wifi and power constraints