Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (C) 2014 The Android Open Source Project
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.android.builder.sdk;
A loader for the SDK. It's able to provide general SDK information (getSdkInfo(com.android.utils.ILogger), or getRepositories()), or target-specific information (getTargetInfo(java.lang.String,com.android.sdklib.repository.FullRevision,com.android.utils.ILogger)).
public interface SdkLoader {

    
Returns information about a build target. This requires loading/parsing the SDK.

Parameters:
targetHash the compilation target hash string.
buildToolRevision the build tools revision.
logger a logger to output messages.
Returns:
the target info.
    @NonNull
            @NonNull String targetHash,
            @NonNull FullRevision buildToolRevision,
            @NonNull ILogger logger);

    
Returns generic SDK information. This requires loading/parsing the SDK.

Parameters:
logger a logger to output messages.
Returns:
the sdk info.
    @NonNull
    SdkInfo getSdkInfo(@NonNull ILogger logger);

    
Returns the location of artifact repositories built-in the SDK.

Returns:
a non null list of repository folders.
    @NonNull
New to GrepCode? Check out our FAQ X