adapt native build for new gradle versions (targetPlatforms -> model.platforms)