support library projects

support library projects by using the androidTest tasks to merge resources
ApplicationVariant is no longer used since you now use BaseVariant