Refine search
public static Collection< Artifact > filterArtifacts( @NonNull Iterable< Artifact > artifacts, final boolean skipDependencies, @Nullable final Collection< String > includeArtifactTypes, @Nullable final Collection< String > excludeArtifactTypes, @Nullable final Collection< String > includeArtifactQualifiers, @Nullable final Collection< String > excludeArtifactQualifiers )
/** * Determine the method names we are interested in for this check. * * @return a list representing the method names to check */ @Nullable @Override public List<String> getApplicableMethodNames() { return Collections.singletonList(CHECK_METHOD_TO_EXCLUDE); }
@Override public void error( @Nullable Throwable throwable, @Nullable String s, Object... objects ) { if ( ( throwable != null ) && ( s != null ) ) { final Formatter formatter = new Formatter(); log.error( formatter.format( s, objects ).out().toString(), throwable ); } else if ( ( throwable == null ) && ( s == null ) ) { // do nothing. } else if ( throwable != null ) { log.error( throwable ); } else { final Formatter formatter = new Formatter(); log.error( formatter.format( s, objects ).out().toString() ); } }
public AndroidSdk( File sdkPath, String apiLevel, @Nullable String buildToolsVersion ) { this.sdkPath = sdkPath; this.buildToolsVersion = buildToolsVersion; this.progressIndicator = new ProgressIndicatorImpl(); if ( sdkPath != null ) { sdkManager = AndroidSdkHandler.getInstance( sdkPath ); platformToolsPath = new File( sdkPath, SdkConstants.FD_PLATFORM_TOOLS ); toolsPath = new File( sdkPath, SdkConstants.FD_TOOLS ); if ( sdkManager == null ) { throw invalidSdkException( sdkPath, apiLevel ); } } loadSDKToolsMajorVersion(); if ( apiLevel == null ) { apiLevel = DEFAULT_ANDROID_API_LEVEL; } androidTarget = findPlatformByApiLevel( apiLevel ); if ( androidTarget == null ) { throw invalidSdkException( sdkPath, apiLevel ); } }
/** * Parse the file pointed to by the given context and return as a Document * * @param context the context pointing to the file to be parsed, typically * via {@link Context#getContents()} but the file handle ( * {@link Context#file} can also be used to map to an existing * editor buffer in the surrounding tool, etc) * @return the parsed DOM document, or null if parsing fails */ @Nullable public abstract Document parseXml(@NonNull XmlContext context);
/** * Returns the fully qualified name of the parent view, or null if the view * is the root android.view.View class. * * @param fqcn the fully qualified class name of the view * @return the fully qualified class name of the parent view, or null */ @Nullable public abstract String getParentViewClass(@NonNull String fqcn);
/** * Sets the proguard output file. See * {@link AbstractAapt#validatePackageConfig(AaptPackageConfig)} for details on field rules. * * @param proguardOutputFile the proguard output file * @return {@code this} */ @NonNull public Builder setProguardOutputFile(@Nullable File proguardOutputFile) { mConfig.mProguardOutputFile = proguardOutputFile; return this; }
/** * Sets the build tool information. See * {@link AbstractAapt#validatePackageConfig(AaptPackageConfig)} for details on field rules. * * @param buildToolInfo the build tool information * @return {@code this} */ @NonNull public Builder setBuildToolInfo(@Nullable BuildToolInfo buildToolInfo) { mConfig.mBuildToolInfo = buildToolInfo; return this; }