@Override public void afterCheckProject(@NonNull Context context) { if (context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { checkHandles(context); } }
@Override public void beforeCheckProject(@NonNull Context context) { // In incremental mode, or checking all files (full lint analysis) ? If the latter, // we should store state and look for deeper cycles if (context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { mReferences = Maps.newEnumMap(ResourceType.class); } }
@Override public void beforeCheckProject(@NonNull Context context) { // In incremental mode, or checking all files (full lint analysis) ? If the latter, // we should store state and look for deeper cycles if (context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { mReferences = Maps.newEnumMap(ResourceType.class); } }
@Override public void afterCheckProject(@NonNull Context context) { if (context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { checkHandles(context); } }
private static void checkResourceFolders(Context context, @NonNull Project project) { if (!context.getScope().contains(Scope.RESOURCE_FOLDER)) {
@Override public void afterCheckProject(@NonNull Context context) { if (context.getProject() == context.getMainProject() && // Full analysis? Don't tie check to any specific Gradle DSL element context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { checkConsistentPlayServices(context, null); checkConsistentSupportLibraries(context, null); checkConsistentWearableLibraries(context, null); } }
@Override public void afterCheckProject(@NonNull Context context) { if (context.getPhase() == 1) { boolean haveAllResources = context.getScope().contains(Scope.ALL_RESOURCE_FILES); if (!haveAllResources) { return;
@Override public void afterCheckProject(@NonNull Context context) { if (context.getPhase() == 1) { boolean haveAllResources = context.getScope().contains(Scope.ALL_RESOURCE_FILES); if (!haveAllResources) { return;
if (!context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { checkHandles(context);
if (!context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { checkHandles(context);
boolean checkSameLayout = context.isEnabled(UNKNOWN_ID_LAYOUT); boolean checkExists = context.isEnabled(UNKNOWN_ID); boolean projectScope = context.getScope().contains(Scope.ALL_RESOURCE_FILES); for (Pair<String, Handle> pair : mHandles) { String id = pair.getFirst();
boolean checkSameLayout = context.isEnabled(UNKNOWN_ID_LAYOUT); boolean checkExists = context.isEnabled(UNKNOWN_ID); boolean projectScope = context.getScope().contains(Scope.ALL_RESOURCE_FILES); for (Pair<String, Handle> pair : mHandles) { String id = pair.getFirst();
&& context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { IncludeGraph graph = new IncludeGraph(context); graph.check();
&& context.getScope().contains(Scope.ALL_RESOURCE_FILES)) { IncludeGraph graph = new IncludeGraph(context); graph.check();
if (!context.getScope().contains(Scope.ALL_RESOURCE_FILES)) {
if (context.getScope().size() > 1 && context.isEnabled(REMOTE_VERSION)) { PreciseRevision latest = getLatestVersion(context, dependency, dependency.isPreview()); if (latest != null && isOlderThan(dependency, latest.getMajor(), latest.getMinor(),
if (context.getScope().size() > 1 && context.isEnabled(REMOTE_VERSION)) { Revision latest = getLatestVersionFromRemoteRepo(context.getClient(), dependency, dependency.isPreview());