refactor media gate src folders for gradle build