update git ignore so that we ignore gradle build directories
Update gradle build files to build Sample and library projects with correct dependancies