Search in sources :

Example 11 with SoLibrary

use of com.taobao.android.builder.dependency.model.SoLibrary in project atlas by alibaba.

the class PrepareAwoBundleTask method doFullTaskAction.

@TaskAction
public void doFullTaskAction() throws IOException {
    AwbBundle awbBundle = libVariantContext.getAwbBundle();
    prepare(awbBundle.getBundle(), awbBundle.getFolder(), true);
    List<SoLibrary> soLibraries = awbBundle.getSoLibraries();
    for (final SoLibrary soLibrary : soLibraries) {
        prepare(soLibrary.getSoLibFile(), soLibrary.getFolder(), false);
    }
    List<? extends AndroidLibrary> aarBundles = awbBundle.getLibraryDependencies();
    for (final AndroidLibrary libraryDependency : aarBundles) {
        if (libraryDependency instanceof AarBundle) {
            AarBundle aarBundle = (AarBundle) libraryDependency;
            prepare(aarBundle.getBundle(), aarBundle.getFolder(), true);
        }
    }
}
Also used : AndroidLibrary(com.android.builder.model.AndroidLibrary) AarBundle(com.taobao.android.builder.dependency.model.AarBundle) AwbBundle(com.taobao.android.builder.dependency.model.AwbBundle) SoLibrary(com.taobao.android.builder.dependency.model.SoLibrary) MtlBaseTaskAction(com.taobao.android.builder.tasks.manager.MtlBaseTaskAction) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

SoLibrary (com.taobao.android.builder.dependency.model.SoLibrary)11 AarBundle (com.taobao.android.builder.dependency.model.AarBundle)6 AwbBundle (com.taobao.android.builder.dependency.model.AwbBundle)6 AndroidLibrary (com.android.builder.model.AndroidLibrary)5 MtlBaseTaskAction (com.taobao.android.builder.tasks.manager.MtlBaseTaskAction)5 TaskAction (org.gradle.api.tasks.TaskAction)5 JarDependency (com.android.builder.dependency.JarDependency)3 JavaLibrary (com.android.builder.model.JavaLibrary)3 LibraryDependency (com.android.builder.dependency.LibraryDependency)2 File (java.io.File)2 ArrayList (java.util.ArrayList)2 MavenCoordinates (com.android.builder.model.MavenCoordinates)1 Multimap (com.google.common.collect.Multimap)1 AndroidDependencyTree (com.taobao.android.builder.dependency.AndroidDependencyTree)1 ApLibrary (com.taobao.android.builder.dependency.model.ApLibrary)1 ApkLibrary (com.taobao.android.builder.dependency.model.ApkLibrary)1 DependencyJson (com.taobao.android.builder.dependency.output.DependencyJson)1 ExecutorServicesHelper (com.taobao.android.builder.tools.concurrent.ExecutorServicesHelper)1 HashSet (java.util.HashSet)1 List (java.util.List)1