@Test public void projectLargeFile_containsOnlyLargeFileSuggestion() { fileData = FakeFileData.builder(PROJECT_BIN_FILE).setSize(LARGE_FILE_SIZE).build(); List<Suggestion> suggestions = new LargeFilesSuggester().processProjectEntry(GradleContext.create(1, false), fileData); assertThat(suggestions).hasSize(1); assertThat(suggestions) .containsExactly( Suggestion.create( Suggestion.IssueType.LARGE_FILES_DYNAMIC_FEATURE, Suggestion.Category.LARGE_FILES, Payload.getDefaultInstance(), "Place large file " + PROJECT_BIN_FILE + " inside an on demand dynamic-feature to avoid bundling in apk", LARGE_FILE_SIZE, null)); }
@Override public ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData) { return processFileEntry(context, fileData, isProjectAssetFile(fileData)); }
LargeFilesSuggester implements BundleEntrySuggester, ProjectTreeSuggester { @Override public ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData) { return processFileEntry(context, fileData, isProjectAssetFile(fileData)); } }
LargeFilesSuggester implements BundleEntrySuggester, ProjectTreeSuggester { @Override public ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData) { return processFileEntry(context, fileData, isProjectAssetFile(fileData)); } LargeFilesSuggester(); }
LargeFilesSuggester implements BundleEntrySuggester, ProjectTreeSuggester { @Override public ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData) { return processFileEntry(context, fileData, isProjectAssetFile(fileData)); } LargeFilesSuggester(); @Override ImmutableList<Suggestion> processBundleZipEntry(BundleContext context, FileData fileData); @Override ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData); }
LargeFilesSuggester implements BundleEntrySuggester, ProjectTreeSuggester { @Override public ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData) { return processFileEntry(context, fileData, isProjectAssetFile(fileData)); } LargeFilesSuggester(); @Override ImmutableList<Suggestion> processBundleZipEntry(BundleContext context, FileData fileData); @Override ImmutableList<Suggestion> processProjectEntry(GradleContext context, FileData fileData);  }