Search in sources :

Example 1 with AtlasDependencyManager

use of com.android.build.gradle.internal.AtlasDependencyManager in project atlas by alibaba.

the class AtlasConfigurationHelper method configDependencies.

public void configDependencies(File awbConfigFile) {
    Set<String> awbs = getAwbs(awbConfigFile);
    AtlasDependencyManager atlasDependencyManager = new AtlasDependencyManager(project, new ExtraModelInfo(new ProjectOptions(project), project.getLogger()), awbs);
    VariantManager variantManager = getVariantManager();
    if (variantManager != null) {
        variantManager.getVariantScopes().stream().forEach(variantScope -> atlasDependencyManager.resolveDependencies(variantScope.getVariantDependencies()));
    }
}
Also used : ExtraModelInfo(com.android.build.gradle.internal.ExtraModelInfo) AtlasDependencyManager(com.android.build.gradle.internal.AtlasDependencyManager) ProjectOptions(com.android.build.gradle.options.ProjectOptions) VariantManager(com.android.build.gradle.internal.VariantManager)

Aggregations

AtlasDependencyManager (com.android.build.gradle.internal.AtlasDependencyManager)1 ExtraModelInfo (com.android.build.gradle.internal.ExtraModelInfo)1 VariantManager (com.android.build.gradle.internal.VariantManager)1 ProjectOptions (com.android.build.gradle.options.ProjectOptions)1